/* =========================================================
   ATÖLYE EOKULTV - MASTER CSS
   ========================================================= */

/* 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; }

/* Sayfa Arka Planı (Gri Ton) */
html {
    overflow-x: hidden; /* Taşmaları sadece HTML kökünde gizle */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    color: var(--t); 
    line-height: 1.6;
    background-color: #f1f5f9;
    /* width: 100%; ve overflow-x: hidden; buradan kaldırıldı */
}

/* YAZILI.EOKULTV TARZI BEYAZ KUTU ÇERÇEVE */
.site-content-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 5px 15px 5px 15px;
    margin: 0 auto;
    width: 100%;
    max-width: 1100px; /* Senin Master CSS genişliğin */
}

/* Mobilde çerçevenin taşmaması için */
@media (max-width: 1120px) {
    .site-content-box {
        margin: 0 5px; /* Kenarlarda boşluk bırakır */
        padding: 10px;
        width: auto;
    }
}

/* GENEL KONTEYNER AYARI */
.container { 
    max-width: var(--site-width); 
    margin: 0 auto; 
    padding: 8px 10px; 
    width: 100%; 
    /* height: 100%;  <-- Eğer varsa bu satırı silin veya etkisizleştirin */
}

/* HEADER ANA YAPI */
.site-header { 
    background: #0f172a; 
    height: var(--header-height); /* 74px */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); 
    border-bottom: 1px solid #1e293b;
    position: sticky; 
    top: 0; 
    z-index: 1000;
    display: flex; /* DİKEY ORTALAMA İÇİN */
    align-items: center; /* DİKEYDE TAM ORTA */
}

.header-inner { 
    display: flex; 
    justify-content: space-between; /* YATAYDA SAĞA VE SOLA YASLA */
    align-items: center; /* DİKEYDE TAM ORTA */
    width: 100%; /* Konteynere tam yayılması için */
    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;
    align-items: center;
    height: 100%;
}
.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Ü */
.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 & MENU */
.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 {
    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); }

.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; }

.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 ================= */
.main-wrapper { max-width: var(--site-width); margin: 0 auto; min-height: 400px; padding: 20px 0; }
.section-title { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 2px solid #e2e8f0; }

/* ================= BREADCRUMB (YOL HARİTASI) ================= */
.breadcrumb-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Satır dolduğunda aşağı kaymasını sağlar */
    row-gap: 8px;    /* Alt satıra kaydığında aradaki dikey boşluk */
    column-gap: 8px; /* Yan yana öğeler arası boşluk */
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
    margin-top: 8px;
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* Kelimelerin veya isimlerin ortadan ikiye bölünmesini engeller */
.breadcrumb-container a, 
.breadcrumb-container span {
    white-space: nowrap; 
}

.breadcrumb-container a { 
    color: var(--p); 
    text-decoration: none; 
    font-weight: 600; 
    transition: 0.2s; 
}
.breadcrumb-container a:hover { 
    color: var(--p-dark); 
    text-decoration: underline; 
}
.breadcrumb-container .sep { 
    color: #cbd5e1; 
    font-weight: 300; 
}
.breadcrumb-container .active { 
    color: #64748b; 
    font-weight: 500; 
}

/* =========================================================
   MODERN SAYFA BAŞLIĞI (HEADER) TASARIMI
   ========================================================= */
.page-header-card {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.ph-content {
    flex: 1;
}

.ph-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ph-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ph-badge-class {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.ph-badge-lesson {
    background: #eff6ff;
    color: var(--p);
    border: 1px solid #dbeafe;
}

.ph-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.8px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Sayfa özelinde ikon renkleri */
.ph-icon-soru { color: #f59e0b; }
.ph-icon-not { color: #10b981; }
.ph-icon-test { color: #3b82f6; }
.ph-icon-etkinlik { color: #8b5cf6; }

/* Mobil Uyum */
@media (max-width: 768px) {
    .page-header-card {
        padding: 25px 20px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .ph-title {
        font-size: 1.6rem;
    }
	
.main-wrapper {margin: 0px 5px; }
}


/* KUSURSUZ BOŞ DURUM TASARIMI */
.empty-state-wrapper { 
    padding: 40px 20px; 
    text-align: center; 
    background: #f8fafc; 
    border-radius: 16px; 
    border: 2px dashed #cbd5e1; 
    margin: 0; 
    box-sizing: border-box; 
    width: 100%;
}
.detail-card, .not-metni {
    overflow: visible !important;
}
.empty-icon-ring { width: 80px; height: 80px; margin: 0 auto 20px; background: #eff6ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #3b82f6; box-shadow: 0 0 0 10px rgba(59, 130, 246, 0.1); }
.empty-title { font-size: 1.6rem; font-weight: 800; color: #1e293b; margin-bottom: 10px; }
.empty-desc { font-size: 1.1rem; color: #64748b; max-width: 500px; margin: 0 auto 30px; line-height: 1.6; }
.btn-smart-magic { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); color: #fff; border: none; padding: 16px 35px; border-radius: 12px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: all 0.3s; box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4); display: inline-flex; align-items: center; gap: 10px; }
.btn-smart-magic:hover { transform: translateY(-3px); box-shadow: 0 15px 25px -5px rgba(79, 70, 229, 0.5); }


/* =========================================================
   ORTAK İÇERİK YAPISI (DERS NOTU & TEST)
   ========================================================= */
.test-page-grid {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 15px;
    align-items: start;
    margin-top: 10px;
}

.detail-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
}

/* DERS NOTU METİN ALANI ŞIKLAŞTIRMA */
.not-metni {
    font-size: 1.15rem;
    line-height: 2;
    color: #334155;
}

.not-metni h2 { 
    font-size: 1.8rem; color: var(--t); margin-top: 25px; margin-bottom: 20px; 
    border-left: 6px solid var(--p); padding-left: 15px; font-weight: 800;line-height: 1.3
}
.ornek-metni h2 { 
    font-size: 1.8rem; color: var(--t); margin-top: 25px; margin-bottom: 20px; 
    border-left: 6px solid var(--p); padding-left: 15px; font-weight: 800;line-height: 1.3;
}

.not-metni h3 { font-size: 1.45rem; color: var(--p-dark); margin-top: 20px; margin-bottom: 13px; font-weight: 700; }

.not-metni ul, .not-metni ol { margin-bottom: 25px; padding-left: 25px; }
.not-metni li { margin-bottom: 8px; }
.not-metni ul li { list-style-type: none; position: relative; }
.not-metni ul li::before { content: "•"; color: var(--p); font-weight: bold; position: absolute; left: -20px; }

.not-metni table { width: 100%; border-collapse: collapse; margin: 25px 0; background: #fcfcfc; }
.not-metni th, .not-metni td { border: 1px solid #e2e8f0; padding: 12px 15px; text-align: left; }
.not-metni th { background: #f1f5f9; color: var(--t); font-weight: 700; }
.not-metni tr:nth-child(even) { background: #f8fafc; }

.not-metni blockquote { 
    background: #eff6ff; border-left: 4px solid var(--p); 
    padding: 20px; margin: 25px 0; font-style: italic; border-radius: 0 8px 8px 0;
}

/* SIDEBAR & NAVİGASYON */
.sidebar-sticky { position: sticky; top: 90px; }
.sidebar-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; margin-bottom: 20px; }

.nav-btn {
    display: flex;
    align-items: center; gap: 10px; padding: 12px;
    border-radius: 8px; text-decoration: none; font-weight: 700;
    font-size: 0.95rem; color: var(--t); background: #f8fafc;
    transition: 0.2s; margin-bottom: 8px;
}
.nav-btn.active { background: #081E54; color: #fff; }
.btn-print { font-size:16px;background:#f1f5f9; border:1px solid #cbd5e1; padding:10px 20px; border-radius:10px; cursor:pointer; font-weight:800; display:flex; align-items:center; gap:8px; width: 100%; justify-content: center; margin-bottom: 15px; }

@media (max-width: 991px) {
    .test-page-grid { grid-template-columns: 1fr; }
    .detail-card { padding: 10px; }
}


/* ================= KONU KARTLARI ================= */
.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; }

/* ================= ONLINE TEST ARAYÜZÜ (YENİ EKLENEN) ================= */
.online-test-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.question-text-box {
    font-size: 1.15rem;
    color: var(--t);
    line-height: 1.8;
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e2e8f0;
}

/* Seçenekler Konteyneri (Esnek Yapı - Yan Yana) */
.options-inline-container {
    display: flex;
    gap: 15px; /* Seçenekler arası boşluk */
    flex-wrap: nowrap; /* Desktopta tek satırda zorla */
}

/* Her Bir Seçenek Butonu */
.option-btn {
    flex: 1; /* Hepsine eşit genişlik ver */
    text-align: center;
    padding: 15px 10px;
    background: var(--bg);
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 1rem;
    font-weight: 600;
    color: var(--t);
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover Durumu */
.option-btn:hover {
    border-color: var(--p);
    background: #eff6ff;
    color: var(--p);
    transform: translateY(-2px);
}

/* Doğru/Yanlış Seçilme Durumları (İleride JS ile eklenecek sınıflar) */
.option-btn.selected-correct {
    background: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}
.option-btn.selected-wrong {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

/* ================= RESPONSIVE (MOBİL UYUM) ================= */
@media (max-width: 991px) {
    /* Test Seçenekleri Mobilde 2x2 veya Alt Alta */
    .options-inline-container {
        flex-wrap: wrap; 
        gap: 10px;
    }
    .option-btn {
        flex: 1 1 calc(50% - 10px); /* Mobilde 2 sütun yap */
        font-size: 0.95rem;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .topic-grid { grid-template-columns: 1fr; }
    .tc-packages { grid-template-columns: 1fr; }
    
    /* Çok küçük ekranda test seçenekleri alt alta dökülsün */
    .option-btn { flex: 1 1 100%; }

    /* --- ETKİNLİK SAYFASI YENİ MOBİL DÜZELTMELER --- */
    
    /* 1. Kavram Eşleştirme (Select kutusu metnin altına tam genişlikte gelsin) */
    .esl-item {
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .esl-select {
        width: 100% !important;
        font-size: 1rem !important;
    }

    /* 2. Kontrol ve Çözüm Butonları (Mobilde tam genişlikte ve alt alta gelsin) */
    #btn-kontrol, 
    #btn-cozum, 
    #btn-tekrar {
        display: block !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 12px !important;
        box-sizing: border-box;
    }
}

/* ================= FOOTER ================= */
.site-footer {
    background: linear-gradient(to bottom, #0f172a, #0b1120); /* Hafif ve şık karanlık degrade */
    color: #94a3b8;            
    padding: 25px 0; /* Alt ve üst boşluklar eşitlendi (Kusursuz dikey hizalama) */
    margin-top: 5px; /* İçerikle arasına biraz daha nefes alma payı bırakıldı */ 
	margin-bottom:100px;
    font-size: 0.95rem;
    border-top: 3px solid var(--p); /* Üstteki kalın çizgiyi biraz zarifleştirdik */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); /* Premium hissiyatı veren iç gölge */
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.site-footer p {
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.3px; /* Okunabilirliği artıran harf arası boşluğu */
}

/* Marka ismini parlatma ve modernleştirme */
.site-footer .brand {
    color: #ffffff;
    font-weight: 700;
    padding: 0 4px;
    transition: color 0.2s ease;
    cursor: default;
}

.site-footer .brand:hover {
    color: var(--p); /* Üzerine gelince tatlı bir tema rengine dönüşür */
}

/* Genel metinlerin dışarı taşmasını engeller */
.ornek-metni, .not-metni {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* Tabloların ekranı taşırmasını engeller */
.ornek-metni table, .not-metni table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    word-break: normal;
}
.ornek-metni svg, .not-metni svg {
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

/* Uzun matematik formüllerinin ekranı patlatmasını engeller */
.MathJax_Display, .MathJax {
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

/* =========================================================
   SİLO VE İÇERİK SAYFALARI (MERKEZİLEŞTİRİLMİŞ)
   ========================================================= */
/* 1. SINIF VE DERS SAYFALARI */
.page-hero { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; padding: 0 5px; }
.hero-icon { background: var(--p); color: #fff; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.4rem; box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2); }
.hero-text h1 { font-size: 1.6rem; font-weight: 800; color: var(--t); margin: 0; }
.hero-text p { color: var(--t-light); font-size: 0.95rem; margin: 0; }

.page-hero-ders { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; padding: 10px 5px; }
.ders-hero-icon { background: #f0f7ff; color: var(--p); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.6rem; border: 1px solid #e2e8f0; }
.ders-hero-text h1 { font-size: 1.7rem; font-weight: 800; color: var(--t); margin: 0; }
.ders-hero-text p { color: var(--t-light); font-size: 0.95rem; margin: 0; }

.ders-listesi { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 20px; }
.ders-item { background: #fff; border: 1px solid #e2e8f0; padding: 20px; border-radius: 15px; display: flex; align-items: center; gap: 15px; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.ders-item:hover { border-color: var(--p); transform: translateY(-4px); box-shadow: 0 12px 20px -5px rgba(0,0,0,0.1); }
.di-icon { background: #f0f7ff; color: var(--p); min-width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.5rem; transition: 0.3s; }
.ders-item:hover .di-icon { background: var(--p); color: #fff; }
.di-content h3 { font-size: 1.15rem; color: var(--t); font-weight: 700; margin: 0 0 4px 0; }
.di-content span { font-size: 0.85rem; color: var(--p); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.konu-listesi { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 25px; margin-bottom: 20px; }
.empty-state { grid-column: 1 / -1; background: #fff; border: 2px dashed #e2e8f0; border-radius: 16px; padding: 60px 20px; text-align: center; color: var(--t-light); }
.empty-state i { font-size: 3rem; display: block; margin-bottom: 15px; opacity: 0.5; }

.detail-info-section { margin-top: 20px; background: #fff; border-radius: 16px; border: 1px solid #e2e8f0; overflow: hidden; }
.detail-header { background: #f8fafc; padding: 15px 15px; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--t); font-size: 0.95rem; }
.detail-body { padding: 15px; color: #475569; line-height: 1.8; font-size: 1.05rem; }

/* 2. PAKET SAYFASI (paket.php) */
.paket-header { padding:10px }
.paket-header h1 { font-size: 2rem; font-weight: 850; color: var(--t); margin-bottom: 15px; letter-spacing: -0.5px; }
.paket-detay-box { background: #f8fafc; border-radius: 12px; padding: 25px; color: #475569; line-height: 1.8; font-size: 1.05rem; border-left: 5px solid var(--p); margin-bottom: 15px; }
.materyal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* MATERYAL KARTLARI VE DURUM ROZETLERİ */
.m-card { 
    background: #fff; 
    border: 1px solid #e2e8f0; 
    border-radius: 16px; 
    padding: 45px 20px 30px 20px; /* Rozet için üst boşluk 45px'e çıkarıldı */
    text-align: center; 
    transition: all 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    position: relative; /* Rozetin kart dışına taşmaması için zorunlu */
}
.m-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}

/* KART DURUM ROZETLERİ */
.m-status {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.status-ready { 
    background: #dcfce7; 
    color: #166534; 
    border: 1px solid #bbf7d0; 
}
.status-pending { 
    background: #f1f5f9; 
    color: #64748b; 
    border: 1px dashed #cbd5e1; 
}

.m-icon { font-size: 2.5rem; margin-bottom: 15px; }
.m-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 20px; display: block; }
.btn-m { display: block; padding: 12px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: 0.2s; cursor: pointer; border: none; width: 100%; }
.btn-go { color: #fff; }
.btn-go:hover { opacity: 0.9; transform: scale(1.02); }
.btn-generate { background: #fff; border: 2px dashed #cbd5e1; color: var(--t-light); }
.btn-generate:hover { border-color: var(--p); color: var(--p); background: #f0f7ff; }
.m-not { border-bottom: 4px solid #f59e0b; } .m-not .m-title { color: #d97706; } .m-not .btn-go { background: #a55d09; }
.m-test { border-bottom: 4px solid #22c55e; } .m-test .m-title { color: #166534; } .m-test .btn-go { background: #166534; }
.m-soru { border-bottom: 4px solid #3b82f6; } .m-soru .m-title { color: #1e40af; } .m-soru .btn-go { background: #1e40af; }
.m-etkinlik { border-bottom: 4px solid #a855f7; } .m-etkinlik .m-title { color: #6b21a8; } .m-etkinlik .btn-go { background: #6b21a8; }

/* 3. YÜKLEME EKRANLARI VE SİHİRBAZ YÜKLEME (Ortak) */
#loadingOverlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); z-index: 9999; display: none; align-items: center; justify-content: center; }
.loader-card { background: #fff; padding: 48px; border-radius: 32px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15); text-align: center; max-width: 450px; width: 90%; border: 1px solid rgba(255,255,255,0.5); }
.spinner-box { width: 60px; height: 60px; margin: 0 auto 24px; }
.circular-loader { width: 100%; height: 100%; border-radius: 50%; border: 4px solid #E0E7FF; border-top-color: var(--p); animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.smart-loading-overlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(255,255,255,0.95); z-index:9999; align-items:center; justify-content:center; flex-direction:column; }
.smart-spinner { width: 100%; height: 100%; border-radius: 50%; border: 5px solid #e0e7ff; border-top-color: var(--p); animation: spin 1s linear infinite; }

/* 4. İÇERİK SAYFALARI ORTAK YAPI VE TEST (icerik_test.php vb.) */
.test-page-grid > main { min-width: 0; }
.q-text { font-size: 1.25rem; line-height: 1.8; color: #334155; margin-bottom: 30px; }
.opt-container { display: flex; gap: 15px; margin-bottom: 25px; }
.opt-label { flex: 1; cursor: pointer; } 
.opt-label input { display: none; }
.opt-box { display: flex; align-items: center; justify-content: center; height: 60px; background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px; font-weight: 800; color: #64748b; font-size: 1.2rem; transition: 0.2s; }
.opt-label input:checked + .opt-box { background: #eff6ff; border-color: var(--p); color: var(--p); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); }
.top-q-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px dashed #e2e8f0; }
.nav-dot { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 2px solid #e2e8f0; text-decoration: none; font-weight: 700; font-size: 0.85rem; color: #64748b; }
.nav-dot.active { border-color: var(--p); color: var(--p); background: #fff; transform: scale(1.1); }
.nav-dot.filled { background: #dbeafe; border-color: #bfdbfe; color: #1e40af; }
.test-intro-panel { position: relative; text-align: center; padding: 20px 5px !important; border-radius: 24px; background: #fff; border: 1px solid #eef2f6; box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05); overflow: hidden; }
.intro-icon-box { width: 100px; height: 100px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.2); border: 4px solid #eff6ff; }
.intro-icon { font-size: 3.5rem; animation: bounce 2.5s infinite ease-in-out; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.intro-title { font-size: 2.0rem; font-weight: 900; color: #0f172a; margin-bottom: 15px; }
.intro-desc { font-size: 1.15rem; color: #475569; margin-bottom: 20px; }
.intro-stats-grid { display: flex; justify-content: center; gap: 7px; margin-bottom: 25px; }
.intro-stat-pill { background: #f8fafc; border: 1px solid #e2e8f0; padding: 10px 20px; border-radius: 40px; font-weight: 700; color: #334155; }
.btn-start-test { display: inline-flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: #fff; padding: 18px 50px; border-radius: 100px; font-size: 1.2rem; font-weight: 800; text-decoration: none; transition: all 0.3s; }

.result-summary { text-align: center; padding: 40px 20px; }
.score-circle { width: 140px; height: 140px; border-radius: 50%; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto 25px; border: 6px solid #fff; }
.score-circle .val { font-size: 3.5rem; font-weight: 900; line-height: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-box { flex: 1; min-width: 120px; background: #fff; border: 1px solid #e2e8f0; padding: 20px; border-radius: 16px; text-align: center; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); position: relative; overflow: hidden; }
.stat-box:nth-child(1) { border-bottom: 4px solid #10b981; } 
.stat-box:nth-child(2) { border-bottom: 4px solid #ef4444; } 
.stat-box:nth-child(3) { border-bottom: 4px solid #94a3b8; } 
.stat-box .val { display: block; font-size: 2.5rem; font-weight: 900; line-height: 1; margin-bottom: 5px; }
.stat-box .lbl { display: block; font-size: 0.9rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 1px; }

.btn-reset { display: inline-flex; align-items: center; gap: 8px; background: #f1f5f9; color: #475569; padding: 14px 30px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid #cbd5e1; }
.action-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 30px; border-top: 1px dashed #e2e8f0; padding-top: 25px; }
.btn-act { flex: 1; padding: 14px 20px; border-radius: 10px; border: none; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; }
.btn-prev { background: #f1f5f9; color: #64748b; } .btn-next { background: var(--p); color: white; } .btn-sol { background: #fff7ed; color: #ea580c; border: 1px dashed #fdba74; }

.ans-card { position: relative; overflow: hidden; padding: 25px !important; }
.ans-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px dashed #e2e8f0; }
.ans-badge { padding: 6px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: 800; }
.badge-correct { background: #d1fae5; color: #047857; } .badge-wrong { background: #fee2e2; color: #b91c1c; } .badge-empty { background: #f1f5f9; color: #64748b; }
.ans-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; margin-top: 20px; }
.ans-opt { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 8px; border: 2px solid #e2e8f0; text-align: center; font-weight: 800; color: #64748b; background: #f8fafc; font-size: 1.1rem; opacity: 0.6; }
.ans-opt.is-correct { border-color: #10b981; background: #ecfdf5; color: #047857; opacity: 1; box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1); }
.ans-opt.is-wrong { border-color: #ef4444; background: #fef2f2; color: #b91c1c; opacity: 1; text-decoration: line-through; }
.ans-sol { margin-top: 20px; padding: 15px 20px; background: #fffbeb; border-radius: 10px; border-left: 4px solid #f59e0b; color: #92400e; font-size: 1.05rem; line-height: 1.7; }

/* =========================================================
   YAZDIRMA (PRINT) MERKEZİ STİLİ - NİHAİ ÇÖZÜM
   ========================================================= */
@media print {
    @page { size: auto; margin: 1cm; }

    html, body {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 1. GİZLENECEK ALANLAR VE REKLAMLAR */
    header, nav, aside, footer, .site-header, .breadcrumb-container, .page-header-card,
    .sidebar-sticky, .site-footer, .detail-card, .ad-wrapper, .banner-container, .test-intro-panel,
    ins, iframe, .adsbygoogle, .google-auto-placed, [id^="google_ads_"],
    .nokta-display-ad, .nokta-tower, .nokta-right-tower, .nokta-left-tower {
        display: none !important;
        position: absolute !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }

    /* 2. DIŞ KASALARI HAYALET YAP */
    .main-wrapper, #main-content, .site-content-box, .container, .test-page-grid, main {
        display: contents !important;
    }

    #print-area, .content-area {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .content-area h1, .content-area h2, .content-area h3 {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* =========================================================
       3. TABLO TAŞMA SORUNUNU KÖKTEN ÇÖZEN KISIM (GÜNCELLENDİ)
       ========================================================= */
    #print-area table, .ornek-metni table, .not-metni table {
        display: table !important;
        width: 98% !important; /* Tarayıcı hatasını atlatmak için %100 yerine %98 */
        max-width: 98% !important;
        table-layout: fixed !important; 
        border-collapse: collapse !important;
        margin: 15px auto !important; /* Tabloyu kağıtta ortalar, sağdan-soldan güvenli pay bırakır */
        box-sizing: border-box !important;
    }

    #print-area th, #print-area td, .ornek-metni th, .ornek-metni td, .not-metni th, .not-metni td {
        display: table-cell !important;
        border: 1px solid #000 !important;
        padding: 6px !important; 
        text-align: left !important;
        word-wrap: break-word !important;
        word-break: break-word !important; /* İçerideki uzun formül/metinleri zorla böler, tabloyu şişirtmez */
        white-space: normal !important;
        box-sizing: border-box !important;
        min-width: 0 !important; /* Hücrenin zorla büyümesini engeller */
    }

    #print-area th, .ornek-metni th, .not-metni th {
        background-color: #f1f5f9 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    #print-area tr, .ornek-metni tr, .not-metni tr {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
	
	/* =========================================================
       MATHJAX (LATEX) KALINLIK VE ŞİŞME ENGELLEYİCİ
       ========================================================= */
    #print-area mjx-container, 
    #print-area .MathJax {
        font-weight: normal !important;
    }

    /* Yazıcının SVG çizimlerine kafasına göre dış çizgi (kalınlık) vermesini yasaklar */
    #print-area mjx-container svg, 
    #print-area mjx-container svg path,
    #print-area mjx-container svg use {
        stroke: none !important; 
        stroke-width: 0 !important; 
        fill: #1e293b !important; /* Sitedeki normal metin rengin (koyu antrasit) */
        opacity: 1 !important;
    }

    /* Güçlü/Kalın etiketlerin içindeki LaTeX formüllerinin bile şişmesini engeller */
    strong mjx-container svg *, b mjx-container svg * {
        stroke: none !important;
        stroke-width: 0 !important;
    }
    
    mjx-container {
        -webkit-text-stroke: 0 transparent !important;
    }

}

/* =========================================================
   6. ETKİNLİK SAYFASI ÖZEL STİLLERİ (icerik_etkinlik.php)
   ========================================================= */
.etkinlik-baslik { color: var(--p); border-bottom: 2px solid #f1f5f9; padding-bottom: 8px; margin-top: 35px; font-size: 1.4rem; }
h2.etkinlik-baslik {font-size: 1.5rem; }

.etkinlik-baslik:first-child { margin-top: 0; }

.dy-btn { flex: 1; padding: 12px; font-weight: 700; font-size: 1rem; border: 1px solid #cbd5e1; border-radius: 8px; cursor: pointer; background: #fff; color: #475569; transition: all 0.2s; }
.dy-btn:hover { background: #f1f5f9; }
.dy-btn.selected { background: var(--p); color: #fff; border-color: var(--p); }

.bosluk-input { border: 1px dashed #94a3b8; border-radius: 6px; padding: 4px 8px; min-width: 140px; text-align: center; font-weight: bold; color: var(--p); background: #fff; }
.bosluk-input:focus { border-style: solid; border-color: var(--p); outline: none; }
.cs-label:hover { border-color: #94a3b8 !important; background: #f8fafc !important; }

/* Etkinlik Sayfası Yazdırma (Print) Eklemeleri */
@media print {
    #print-area { line-height: 2 !important; }
    .content-area h3 { margin-top: 35px !important; margin-bottom: 15px !important; border-bottom: 1px solid #000; padding-bottom: 5px; font-size: 14pt; }
    .content-area ol li { margin-bottom: 15px !important; }
}

/* Reklamı içine hapseden kesin çözüm */
.banner-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important; /* Taşanı keser */
    clear: both;                 /* Yanlarda bir şey bırakmaz */
    margin: 10px auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
	min-height: 100px;
}

/* AdSense'in kendi iç etiketine (ins) mobilde ayar çekiyoruz */
.banner-container ins {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important; /* Div'den geniş olamazsın emri */
}

/* =========================================================
   YAPAY ZEKA YÖNLENDİRME (CTA) ALANLARI
   ========================================================= */
/* Ana Sayfa Banner'ı */
.ai-cta-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px; padding: 35px 40px; margin-bottom: 40px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    position: relative; overflow: hidden;
}
.ai-cta-banner::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}
.ai-cta-text { flex: 1; min-width: 300px; z-index: 1; }
.ai-cta-text h2 { color: #fff; font-size: 2rem; margin-bottom: 12px; font-weight: 900; letter-spacing: -0.5px; }
.ai-cta-text p { color: #cbd5e1; font-size: 1.15rem; line-height: 1.6; margin: 0; font-weight: 400; }

/* Menüdeki Parlayan Buton */
.btn-ai-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #fff !important; padding: 8px 20px !important; border-radius: 50px !important;
    margin-left: 15px; font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-ai-header:hover { color: #000 !important;transform: translateY(-2px); box-shadow: 0 6px 15px rgba(139, 92, 246, 0.4); }

/* =========================================================
   TAM EKRAN YATAY PREMİUM ÜRETİM BANNER'I
   ========================================================= */
.ai-banner-card {
    grid-column: 1 / -1; /* Izgarada sağdaki boşluğu ezer, %100 yatay kaplar */
    position: relative;
    background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%);
    border: 2px dashed #a78bfa;
    display: flex;
    flex-direction: row; /* İçerikleri yatay dizmeye zorlar */
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    text-decoration: none;
    padding: 15px 20px;
	margin-bottom:20px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px -5px rgba(139, 92, 246, 0.1);
    z-index: 1;
    overflow: hidden;
}

/* Arka plandan geçen gizli ışık huzmesi */
.ai-banner-card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.15), transparent);
    transition: all 0.6s ease; z-index: -1;
}

/* Hover (Üzerine Gelme) Efekti */
.ai-banner-card:hover {
    border-color: #7c3aed;
    border-style: solid; /* Kesik çizgi dümdüz, sağlam olur */
    background: #f5f3ff;
    transform: translateY(-4px); /* Kart tatlıca yukarı kalkar */
    box-shadow: 0 15px 35px -5px rgba(139, 92, 246, 0.3);
}

.ai-banner-card:hover::before { left: 100%; }

/* Sol Taraf (İkon ve Metinler) */
.ai-banner-card .banner-content {
    display: flex; align-items: center; gap: 25px; flex: 1; min-width: 280px;
}

.ai-banner-card .icon {
    font-size: 3.5rem; margin: 0;
    animation: floatIcon 3s ease-in-out infinite; /* İkon havada süzülür */
    filter: drop-shadow(0 5px 5px rgba(139, 92, 246, 0.3));
}

.ai-banner-card h3 {
    color: #4c1d95; font-size: 1.5rem; margin: 0 0 8px 0; font-weight: 900; letter-spacing: -0.5px;
}

.ai-banner-card p {
    color: #64748b; font-size: 1.05rem; font-weight: 500; margin: 0; line-height: 1.5;
}

/* Sağ Taraf (Buton) */
.ai-banner-card .action-btn {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    color: #fff; padding: 15px 35px; border-radius: 50px; font-weight: 800; font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(126, 34, 206, 0.3); white-space: nowrap; text-align: center; transition: 0.3s;
}

.ai-banner-card:hover .action-btn {
    transform: scale(1.05); box-shadow: 0 8px 25px rgba(126, 34, 206, 0.5);
}

@keyframes floatIcon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
    .ai-banner-card {
        padding: 25px 20px; /* Mobilde kenar boşluklarını biraz daraltıp ferahlatır */
    }
    
    .ai-banner-card .action-btn {
        width: 100%; /* Butonu mobilde %100 genişliğe zorlar */
        box-sizing: border-box;
        margin-top: 5px;
    }
}