/* Özel Stiller - Glassmorphism & Modern UI */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-blue: #007AFF;
    --gray-900: #1D1D1F;
    --gray-100: #F5F5F7;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #F5F5F7;
    color: #1D1D1F;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 122, 255, 0.08), transparent 25%), 
        radial-gradient(circle at 85% 30%, rgba(0, 122, 255, 0.05), transparent 25%);
    background-attachment: fixed;
}

/* Glass Panel */
.vision-glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.vision-glass:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-5px) scale(1.005);
    box-shadow: 0 15px 40px -5px rgba(0, 122, 255, 0.15);
    border-color: #fff;
}

/* Navigasyon */
.nav-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Butonlar */
.btn-primary {
    background: #007AFF;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    background: #0063ce;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
    transform: scale(1.02);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #1D1D1F;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Scroll Animasyonları */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Skill Bar Animation */
.skill-fill {
    width: 0;
    transition: width 1.5s ease-out;
}

.skill-fill.animate {
    width: var(--target-width) !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F5F5F7;
}

::-webkit-scrollbar-thumb {
    background: #C1C1C5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #007AFF;
}

/* Modal */
.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F5F5F7;
    z-index: 100;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-modal.open {
    transform: translateY(0);
}

.modal-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 101;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-close-btn:hover {
    transform: scale(1.1);
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Prose - Blog içerikleri için */
.prose {
    max-width: 65ch;
    font-size: 1.125rem;
    line-height: 1.75;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose .lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #6B7280;
}

/* Admin Panel Stilleri */
.admin-sidebar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.admin-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 1.5rem;
}

.stat-card.blue {
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
}

.stat-card.green {
    background: linear-gradient(135deg, #34C759 0%, #248A3D 100%);
}

.stat-card.orange {
    background: linear-gradient(135deg, #FF9500 0%, #C76400 100%);
}

.stat-card.purple {
    background: linear-gradient(135deg, #AF52DE 0%, #7D3BAC 100%);
}

/* Form Stilleri */
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #D1D5DB;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #007AFF;
    background: rgba(0, 122, 255, 0.02);
}

.file-upload-area.drag-over {
    border-color: #007AFF;
    background: rgba(0, 122, 255, 0.05);
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead {
    background: #F9FAFB;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: #6B7280;
    border-bottom: 1px solid #E5E7EB;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #F3F4F6;
}

.data-table tbody tr:hover {
    background: #F9FAFB;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E0;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #007AFF;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Alert */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid #10B981;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border-left: 4px solid #F59E0B;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #F3F4F6;
    border-top: 3px solid #007AFF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Admin Panel Responsive İyileştirmeleri */
@media (max-width: 768px) {
    .admin-card {
        padding: 1rem;
    }
    
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px; /* iOS zoom engellemek için */
    }
    
    /* Sidebar mobile için */
    .admin-sidebar {
        width: 280px;
    }
    
    /* Stat cards mobile */
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    /* Alert mobile */
    .alert {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    /* Badge mobile */
    .badge {
        font-size: 0.625rem;
        padding: 0.125rem 0.5rem;
    }
    
    /* Grid responsive */
    .grid.grid-cols-2,
    .grid.grid-cols-3,
    .grid.grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    /* Button responsive */
    button,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    /* Modal responsive */
    .detail-modal {
        padding: 1rem;
    }
}

@media (min-width: 640px) {
    .grid.sm\\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .grid.md\\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid.md\\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    button,
    .btn-primary,
    .btn-secondary {
        width: auto;
    }
}

@media (min-width: 1024px) {
    .grid.lg\\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid.lg\\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Touch friendly */
@media (hover: none) {
    .vision-glass:hover {
        transform: none;
    }
    
    a:active {
        opacity: 0.7;
    }
}

/* Print styles */
@media print {
    .admin-sidebar,
    .mobile-overlay,
    button,
    .no-print {
        display: none !important;
    }
    
    .admin-card {
        page-break-inside: avoid;
    }
}
