/* HEM KURS - Premium Tasarım Sistemi & CSS Arayüz Dosyası */

/* Google Fonts Yükleme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Özel Değişkenleri */
:root {
    --bg-main: #0b0f19;          /* Daha zengin, derin uzay koyusu */
    --bg-card: rgba(22, 30, 49, 0.65); /* Modern Glassmorphism temeli */
    --bg-hover: rgba(34, 46, 73, 0.8);
    --border-color: rgba(255, 255, 255, 0.08); /* Yumuşak şeffaf kenarlıklar */
    --text-main: #f8fafc;        /* Slate 50 */
    --text-muted: #94a3b8;       /* Slate 400 */
    
    --color-primary: #6366f1;    /* Indigo 500 */
    --color-secondary: #06b6d4;  /* Cyan 500 */
    --color-success: #10b981;    /* Emerald 500 */
    --color-danger: #ef4444;     /* Red 500 */
    --color-warning: #f59e0b;    /* Amber 500 */
    
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-glow: linear-gradient(90deg, #6366f1, #06b6d4, #a855f7, #6366f1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.3), 0 2px 8px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
    --shadow-glow-cyan: 0 0 25px rgba(6, 182, 212, 0.25);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-sm: 10px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Özel Scrollbar (Koyu ve Uyumlu) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Genel Sıfırlama ve Temel Kurallar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary);
}

/* Layout Yapısı */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Arka Plan Dekoratif Işık Küreleri */
.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    animation: floatAnimation 12s ease-in-out infinite;
}

@keyframes floatAnimation {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-25px) scale(1.15); }
    100% { transform: translateY(0px) scale(1); }
}

/* Header & Menü Tasarımı (Glassmorphism) */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    background: linear-gradient(to right, #818cf8, #06b6d4, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.03);
}

.logo i {
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.03);
}

.auth-btn-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buton Tasarımları */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45), var(--shadow-glow);
    color: #fff;
}

.btn-secondary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.45), var(--shadow-glow-cyan);
    color: #fff;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-danger {
    background: var(--gradient-danger);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Kahraman (Hero) Bölümü */
.hero-section {
    padding: 100px 0 80px 0;
    text-align: center;
    position: relative;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 100px;
    color: #818cf8;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.05); }
    100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.2); }
}

.hero-title {
    font-size: 56px;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 36px auto;
    font-weight: 400;
}

/* Grid Kart Yapıları */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
    margin-bottom: 50px;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Cam Efekti Kart Işık Yansıması */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
}
.card:hover::after {
    left: 150%;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover .card-icon {
    background: var(--gradient-primary);
    color: #fff;
    transform: scale(1.05) rotate(5deg);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 14.5px;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Form Tasarımları */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    padding: 14px 18px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    background-color: rgba(15, 23, 42, 0.85);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15), var(--shadow-glow-cyan);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 44px;
}

/* Checkbox & Switcher Seçenekleri */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.checkbox-group:hover {
    background: rgba(255, 255, 255, 0.03);
}

.checkbox-group input {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* Haftalık Saat Seçim Paneli Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.schedule-day-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.schedule-day-box:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
}

.schedule-day-box.selected {
    border-color: var(--color-primary);
    background-color: rgba(99, 102, 241, 0.08);
    box-shadow: var(--shadow-glow);
}

/* Üye Girişi & Kayıt Form Sayfaları (Görsel Odaklı) */
.auth-container {
    display: flex;
    min-height: calc(100vh - 80px);
    align-items: center;
    justify-content: center;
    padding: 50px 24px;
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 45px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 14.5px;
}

/* Bildirim Kutuları (Alerts) */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 14.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #a7f3d0;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fde047;
}

/* Sihirbaz & Takvim Planlayıcı Arayüzü */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.05);
    z-index: 1;
    transform: translateY(-50%);
}

.step-item {
    background-color: #161e31;
    border: 3px solid #334155;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-heading);
    z-index: 2;
    transition: var(--transition);
    color: var(--text-muted);
}

.step-item.active {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    transform: scale(1.1);
}

.step-item.completed {
    border-color: var(--color-success);
    background-color: var(--color-success);
    color: #fff;
    transform: scale(1.05);
}

.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
    animation: fadeIn 0.45s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tablo Arayüzleri */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(22, 30, 49, 0.3);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14.5px;
    text-align: left;
}

.table th, .table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.4);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Profil & Bakiye Detay Kartı */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 40px;
    align-items: start;
}

.balance-card {
    background: linear-gradient(135deg, #161e31 0%, #0b0f19 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.balance-amount {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 800;
    color: var(--color-secondary);
    margin: 20px 0;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

/* Yönetim Paneli (Admin Layout) */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.admin-sidebar {
    width: 280px;
    background-color: rgba(22, 30, 49, 0.8);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--border-color);
    padding: 40px 24px;
}

.admin-sidebar-menu {
    list-style: none;
}

.admin-sidebar-menu li {
    margin-bottom: 12px;
}

.admin-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.admin-sidebar-menu a:hover, .admin-sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.admin-content {
    flex: 1;
    padding: 50px;
    background: rgba(11, 15, 25, 0.2);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin-top: 12px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer Alt Bilgi */
footer {
    border-top: 1px solid var(--border-color);
    padding: 50px 0;
    margin-top: 80px;
    background-color: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    color: var(--text-muted);
    font-size: 14px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 24px;
}

/* Mobil Menü Hamburger ve Responsive Uyum */
@media (max-width: 991px) {
    .nav-links {
        display: none;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 24px;
    }
    .admin-content {
        padding: 24px;
    }
    .hero-title {
        font-size: 40px;
    }
}

.glass-panel {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}
.glass-panel:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(99, 102, 241, 0.1);
}

/* ==========================================================================
   YAZDIRMA VE PDF ÇIKTI ALMA (Print CSS) STİLİ
   ========================================================================== */
@media print {
    /* Yazdırılırken ekrandaki tüm menüleri, butonları ve footer'ı gizle */
    header, footer, .btn, .no-print, .wizard-steps, form, .alert, .admin-sidebar, .glow-sphere {
        display: none !important;
    }
    
    body {
        background-color: #fff !important;
        color: #000 !important;
        font-family: 'Times New Roman', Times, serif !important;
        font-size: 12pt !important;
        line-height: 1.4 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .content-page, .print-plan-area {
        background: #fff !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }
    
    /* Resmi Kurs Planı Tablo Tasarımı */
    .table {
        color: #000 !important;
        border: 1px solid #000 !important;
        border-collapse: collapse !important;
        font-size: 10pt !important;
        margin-top: 20px !important;
    }
    
    .table th, .table td {
        border: 1px solid #000 !important;
        padding: 6px 10px !important;
        background-color: transparent !important;
        color: #000 !important;
    }
    
    .table th {
        font-weight: bold !important;
        text-transform: uppercase !important;
        text-align: center !important;
    }
    
    /* Resmi İmza Bölümleri */
    .print-signature-section {
        display: flex !important;
        justify-content: space-between !important;
        margin-top: 50px !important;
        page-break-inside: avoid !important;
    }
    
    .signature-box {
        text-align: center !important;
        width: 200px !important;
        font-size: 11pt !important;
    }
    
    .signature-line {
        margin-top: 40px !important;
        border-top: 1px solid #000 !important;
        padding-top: 5px !important;
    }
    
    /* Sayfa Sonu Kuralları */
    tr {
        page-break-inside: avoid !important;
    }
    thead {
        display: table-header-group !important;
    }
}
