/* RENK VE DEĞİŞKENLER */
:root { 
    --p: #2563eb;       /* Primary Blue */
    --p-dark: #1e40af;  /* Dark Blue */
    --accent: #f59e0b;  /* Orange Accent */
    --t: #1e293b;       /* Dark Text */
    --t-light: #64748b; /* Light Text */
    --bg: #f8fafc;      /* Background */
    --site-width: 1100px;
    --header-height: 74px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { background-color: var(--bg); font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--t); line-height: 1.6; margin: 0; }

/* LAYOUT */
.container { max-width: var(--site-width); margin: 0 auto; padding: 0 5px; width: 100%; height: 100%; }

/* ================= HEADER TASARIMI ================= */
.site-header { 
    background: #0f172a; height: var(--header-height); 
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); 
    border-bottom: 1px solid #e2e8f0;
    position: sticky; top: 0; z-index: 1000;
}

.header-inner { 
    display: flex; justify-content: space-between; align-items: center; 
    height: 100%; 
}

/* LOGO */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; user-select: none; }
.logo-icon { 
    background: #2563eb; 
    color: #fff; width: 38px; height: 38px; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 10px; font-family: sans-serif; font-weight: 800; font-size: 1.3rem;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}
.logo-text { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.logo-main { font-weight: 900; font-size: 1.3rem; color: #fff; letter-spacing: -0.5px; }
.logo-main span { color: var(--p); }
.logo-sub { font-size: 0.65rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* DESKTOP NAV */
.desktop-nav { display: flex; gap: 5px; height: 100%; align-items: center; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-link { 
    text-decoration: none; color: #fff; font-weight: 600; font-size: 0.95rem; 
    padding: 8px 14px; border-radius: 8px; display: flex; align-items: center; gap: 6px; 
    transition: all 0.2s; 
}
.nav-link:hover, .nav-item:hover .nav-link { color: var(--p); background: #eff6ff; }

.nav-arrow { width: 10px; height: 10px; opacity: 0.6; transition: transform 0.2s; }
.nav-item:hover .nav-arrow { transform: rotate(180deg); opacity: 1; }

/* DROPDOWN - MASAÜSTÜ (Sorunsuz Gizleme/Gösterme) */
.dropdown {
    position: absolute; top: calc(100% - 5px); left: 0; 
    background: #fff; min-width: 250px; 
    border: 1px solid #e2e8f0; border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 8px; z-index: 100;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }

.dropdown a { 
    display: flex; align-items: center; padding: 10px 14px; 
    text-decoration: none; color: var(--t-light); font-size: 0.9rem; font-weight: 500;
    border-radius: 8px; transition: all 0.1s;
}
.dropdown a:hover { background: #f8fafc; color: var(--p); transform: translateX(3px); }

/* MOBILE TOGGLE */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: #fff; }
.hamburger { width: 24px; height: 2px; background: currentColor; position: relative; display: block; transition: 0.3s; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: 0.3s; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* MOBILE MENU OVERLAY */
.mobile-menu-overlay {
    position: fixed; top: var(--header-height); left: 0; width: 100%; height: calc(100vh - var(--header-height));
    background: #fff; z-index: 999;
    transform: translateX(100%); transition: transform 0.3s ease;
    overflow-y: auto; padding-bottom: 40px;
}
.mobile-menu-overlay.active { transform: translateX(0); }

/* MOBILE ACCORDION (Sorunsuz Gizleme/Gösterme) */
.mob-list { list-style: none; padding: 0; margin: 0; }
.mob-item { border-bottom: 1px solid #f1f5f9; }
.mob-link-wrap { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; cursor: pointer; user-select: none; }
.mob-link { font-weight: 700; font-size: 1.05rem; color: var(--t); }
.mob-arrow { transition: transform 0.3s; color: var(--t-light); }
.mob-item.open .mob-arrow { transform: rotate(180deg); color: var(--p); }

.mob-dropdown { display: none; background: #f8fafc; padding: 10px 24px 20px 24px; }
.mob-item.open .mob-dropdown { display: block; } /* Tıklanınca açılır */

.mob-sub-link { display: block; padding: 10px 0; border-bottom: 1px dashed #e2e8f0; text-decoration: none; color: var(--t-light); font-size: 0.95rem; font-weight: 500; }
.mob-sub-link:hover { color: var(--p); }

@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .mobile-toggle { display: block; }
}

/* ================= GENEL İSKELET (WRAPPER) ================= */
.main-wrapper { 
    max-width: var(--site-width); margin: 0 auto; min-height: 400px;
}

.section-title { 
    margin-bottom: 20px; 
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* ================= KONU KARTLARI (4'LÜ PAKET) ================= */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.topic-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.topic-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.tc-meta { margin-bottom: 12px; }
.badge {
    background: #eff6ff;
    color: var(--p);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tc-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--t);
    margin-bottom: 20px;
    line-height: 1.4;
    text-decoration: none;
}
.tc-title:hover { color: var(--p); }

/* 4'LÜ PAKET BUTONLARI */
.tc-packages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 15px;
    margin-top: auto;
}

.pkg-btn {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--t);
    background: var(--bg);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s;
}

.pkg-btn:hover { transform: translateY(-2px); }
.pkg-not:hover { background: #fef3c7; border-color: #f59e0b; color: #d97706; }
.pkg-test:hover { background: #dcfce7; border-color: #22c55e; color: #166534; }
.pkg-soru:hover { background: #e0f2fe; border-color: #3b82f6; color: #1e40af; }
.pkg-etkinlik:hover { background: #f3e8ff; border-color: #a855f7; color: #6b21a8; }

@media (max-width: 768px) {
    .topic-grid { grid-template-columns: 1fr; }
    .tc-packages { grid-template-columns: 1fr; }
}

/* ================= FOOTER ================= */
.site-footer {
    background-color: #0f172a; 
    color: #94a3b8;            
    padding: 40px 0 20px;
    margin-top: 50px;          
    font-size: 0.95rem;
    border-top: 4px solid var(--p); 
    text-align: center;
}