/* ==========================================================================
   WEB SINAV - Modern UI System
   ========================================================================== */
:root {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --secondary: #4f46e5;
    --accent: #f59e0b;
    --success: #10b981;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* LAYOUT CONTAINER */
.site-container, #tumalan {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   HEADER & NAVIGATION (Görseldeki İki Seviyeli Layout)
   ========================================================================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.header-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 1. Üst Katman: Sola Dayalı Logo + Menü Linkleri */
.header-top-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-container img {
    height: 38px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    transition: color 0.2s;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary);
}

/* 2. Alt Katman: Sağa Dayalı Giriş Butonları */
.header-bottom-right {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-header {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff !important;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: #f1f5f9;
    color: var(--text-main);
}

.btn-outline:hover {
    background: #e2e8f0;
}

/* Mobil Hamburger Butonu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main);
}

/* ==========================================================================
   HERO / BANNER
   ========================================================================== */
.hero-wrapper {
    margin: 25px 0;
}

.hero-card {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-text h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero-text p {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 6px;
}

.hero-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #ffffff;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.hero-image img {
    max-height: 140px;
    width: auto;
}

/* ==========================================================================
   HIZLI PUAN HESAPLAMA BUTONLARI
   ========================================================================== */
.puan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.puan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: var(--radius-md);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.puan-btn-bursluluk { background: linear-gradient(135deg, #10b981, #059669); }
.puan-btn-lgs { background: linear-gradient(135deg, #6366f1, #4f46e5); }

.puan-btn:hover { transform: translateY(-3px); }

/* ==========================================================================
   SEKSİYONLAR VE GRID KARTLARI
   ========================================================================== */
.section-box {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.section-denemeler {
    background-color: #f0f9ff;
    border-color: #bae6fd;
}
.section-denemeler .section-title {
    color: #0369a1;
    border-bottom-color: #e0f2fe;
}

.section-testler {
    background-color: #faf5ff;
    border-color: #e9d5ff;
}
.section-testler .section-title {
    color: #6b21a8;
    border-bottom-color: #f3e8ff;
}

.section-videolar {
    background-color: #fffbeb;
    border-color: #fde68a;
}
.section-videolar .section-title {
    color: #b45309;
    border-bottom-color: #fef3c7;
}

.section-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.tags-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag-item {
    background: #ffffff;
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.tag-item:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.card-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s;
}

.card-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: #e0f2fe;
    padding: 4px 8px;
    border-radius: 4px;
    width: fit-content;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.card-action-btn {
    background: var(--primary);
    color: #ffffff !important;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    font-size: 13px;
    display: block;
    transition: background 0.2s;
}

.card-action-btn:hover { background: var(--primary-hover); }

.video-card-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    background: #fff;
    transition: transform 0.2s;
}
.video-card-item:hover { transform: translateY(-3px); }
.video-card-item img {
    border-radius: 6px;
    width: 100%;
    height: 140px; /* Sabit yükseklik */
    object-fit: contain; /* Görseli kırmadan, oranını koruyarak alana sığdırır */
    background-color: #0f172a; /* Görsel arkasında kalan boşluklar için şık koyu zemin */
    margin-bottom: 10px;
}
/* Wordwall ve Dış Kaynak Görsel Dizginleme */
.video-card-item object {
    width: 100%;
    height: 140px;
    display: block;
    pointer-events: none; /* Kart tıklamasını engellememesi için */
    overflow: hidden;
}

.video-card-item object img,
.video-card-item img {
    width: 100%;
    height: 140px;
    object-fit: cover; /* Görsel oranını bozmadan alanı doldurur */
    display: block;
    border-radius: var(--radius-sm, 6px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--dark-bg);
    color: #ffffff;
    padding: 40px 0 20px 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    border-bottom: 1px solid #334155;
    padding-bottom: 30px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 12px;
}

.footer-col p, .footer-col li {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 13px;
    color: #64748b;
}


/* ==========================================================================
   DENEME SINAVI SAYFALARI
   ========================================================================== */

.seo-metin-alani { width: 95%; margin: 20px auto; background-color: #f8faff; border-left: 4px solid #009acd; padding: 20px; border-radius: 6px; font-family: arial, sans-serif; box-sizing: border-box; }
.seo-metin-alani h1 { margin: 0 0 15px 0; font-size: 24px; color: #1c0f45; line-height: 1.3; }
.seo-metin-alani p { margin: 0 0 10px 0; font-size: 15px; color: #444; line-height: 1.6; }
.seo-metin-alani p:last-child { margin-bottom: 0; }

.sinif-blogu { width: 95%; margin: 30px auto; font-family: arial, sans-serif; }
.sinif-blogu h2 { font-size: 20px; color: #1c0f45; border-bottom: 2px solid #e0e0e0; padding-bottom: 8px; margin-bottom: 18px; }

.deneme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.deneme-kart { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.04); transition: all 0.3s ease; display: flex; align-items: center; justify-content: space-between; }
.deneme-kart:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.1); border-color: #009acd; }
.deneme-kart a { padding: 14px 16px; text-decoration: none; color: #333; font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; align-items: center; width: 100%; box-sizing: border-box; }
.deneme-kart:hover a { color: #009acd; }

.soru-rozet { background-color: #eef2ff; color: #4f46e5; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; white-space: nowrap; margin-left: 10px; }

.diger-siniflar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 15px; }
.diger-sinif-kutu { background: #1c0f45; border-radius: 6px; text-align: center; transition: background 0.2s ease; }
.diger-sinif-kutu:hover { background: #009acd; }
.diger-sinif-kutu a { display: block; padding: 12px; color: #fff; text-decoration: none; font-weight: bold; font-size: 14px; }

.baglantilar-blogu { background: #fdfdfd; border: 1px solid #eee; padding: 15px; border-radius: 8px; margin-bottom: 25px; }
.baglantilar-blogu h3 { font-size: 17px; color: #1c0f45; margin: 0 0 12px 0; padding-bottom: 5px; border-bottom: 1px solid #ddd; }
.link-listesi { display: flex; flex-wrap: wrap; gap: 10px; }
.link-listesi a { background: #fff; border: 1px solid #cbd5e1; padding: 8px 12px; border-radius: 6px; color: #334155; text-decoration: none; font-size: 13px; font-weight: 600; transition: all 0.2s ease; }
.link-listesi a:hover { background: #009acd; color: #fff; border-color: #009acd; }

.uyari-kutusu { background-color: #fff5f5; border: 1px solid #feb2b2; color: #c53030; padding: 15px; border-radius: 6px; font-size: 14px; }

/* ==========================================================================
   RESPONSIVE (Mobil Ekranlar)
   ========================================================================== */
@media (max-width: 992px) {
    .header-layout {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .main-nav, .header-bottom-right {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }

    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        gap: 15px;
        align-items: flex-start;
    }

    .hero-card {
        flex-direction: column;
        text-align: center;
    }

    .hero-image img {
        display: none;
    }
}