/* =========================================
   1. TEMEL AYARLAR VE DEĞİŞKENLER
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Renk Paleti */
    --bg-primary: #212121;
    --bg-secondary: #2d2d2d;
    --bg-card: #343541;
    --bg-hover: #40414f;
    
    --accent-primary: #10a37f;
    --accent-secondary: #565869;
    --accent-tertiary: #8e8ea0;
    
    --text-primary: #ececf1;
    --text-secondary: #c5c5d2;
    --text-muted: #8e8ea0;
    
    --border-color: #565869;
    --border-light: rgba(255,255,255,0.1);
    
    --success: #19c37d;
    --warning: #f1c40f;
    --error: #ef4146;
    
    /* Kart Ayarları */
    --card-height: 420px;
    --header-height: 70px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* Scrollbar Özelleştirme */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Metin Seçimi */
::selection {
    background: var(--accent-primary);
    color: #fff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden; /* Yatay kaymayı engelle */
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

html {
    overflow-x: hidden; /* Yatay kaymayı engelle */
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* =========================================
   2. HEADER & NAVİGASYON
   ========================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(33, 33, 33, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    overflow: visible; /* Nested dropdown'lar için */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-start !important; /* Sola yasla */
    gap: 3rem; /* Logo ile menü arası boşluk */
    height: 100%;
    width: 100%;
    position: relative;
}

/* Boş Reklam Alanları */
.ad-space:empty,
.ad-middle:empty,
.hero:empty {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    height: 0 !important;
    min-height: 0 !important;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), #2ac49c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
    text-decoration: none;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
    color: inherit;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 0.75rem;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative; /* Dropdown'lar için */
}

.nav-links > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links > li > a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links > li > a:hover,
.nav-links > li.active > a {
    color: var(--accent-primary);
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links > li > a:hover::after {
    width: 100%;
}

.nav-text {
    white-space: nowrap;
}

/* --- EKSİK OLAN KRİTİK SVG ve ICON AYARLARI --- */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}

/* SVG Genel Kısıtlama (Güvenlik İçin) */
svg {
    max-width: 100%;
    max-height: 100%;
}
/* ---------------------------------------------- */

/* Dropdown Menü */
.nav-item-has-children > a {
    padding-right: 1.2rem !important;
}

.nav-item-has-children > a::before {
    content: '▼';
    font-size: 0.6rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--nav-dropdown-bg, transparent) !important;
    border: var(--nav-dropdown-border, none) !important;
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 180px;
    max-width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--nav-dropdown-shadow, none) !important;
    z-index: 1000; /* Ana dropdown için z-index */
    overflow: visible; /* Nested dropdown'lar için */
}

/* Ana menüdeki dropdown'lar için özel stil */
.nav-links > li > .nav-dropdown {
    overflow: visible;
}

/* Ana dropdown içindeki li'ler relative olmalı */
.nav-dropdown > li {
    position: relative;
}

.nav-item-has-children:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Köşe Ok İşareti */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--nav-dropdown-bg, var(--bg-card));
    border-top: var(--nav-dropdown-border, 1px solid var(--border-color));
    border-left: var(--nav-dropdown-border, 1px solid var(--border-color));
    display: var(--nav-dropdown-arrow-display, block);
}

.nav-dropdown > li {
    display: block;
    position: relative; /* Nested dropdown'lar için gerekli */
    white-space: nowrap; /* Alt öğelerin taşmasını engelle */
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-dropdown a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    padding-left: 1.25rem; /* Hover efekti */
}

/* Nested Dropdown (Alt kategorilerin alt kategorileri) */
.nav-dropdown .nav-item-has-children {
    position: relative;
}

.nav-dropdown .nav-item-has-children > a::before {
    content: '▶';
    font-size: 0.6rem;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

/* Nested dropdown - parent li'ye göre konumlanmalı */
.nav-dropdown > li.nav-item-has-children {
    position: relative;
}

.nav-dropdown > li.nav-item-has-children > .nav-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0.5rem;
    transform: translateX(0) translateY(0);
    min-width: 160px;
    max-width: 220px;
    z-index: 1001; /* Üstte görünmesi için */
    background: var(--nav-dropdown-bg, var(--bg-card)) !important; /* Arka plan rengi */
    border: var(--nav-dropdown-border, 1px solid var(--border-color)) !important; /* Kenarlık */
    box-shadow: var(--nav-dropdown-shadow, 0 4px 12px rgba(0, 0, 0, 0.3)) !important; /* Gölge */
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    white-space: nowrap; /* İçerik taşmasını engelle */
    overflow: visible; /* İç içe dropdown'lar için */
}

.nav-dropdown > li.nav-item-has-children:hover > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0);
}

.nav-dropdown > li.nav-item-has-children > .nav-dropdown::before {
    display: none; /* Nested dropdown'larda ok işareti gerekmez */
}

/* İç içe nested dropdown'lar için (3. seviye ve üzeri) */
.nav-dropdown > li.nav-item-has-children > .nav-dropdown > li.nav-item-has-children > .nav-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0.5rem;
    z-index: 1002;
    background: var(--nav-dropdown-bg, var(--bg-card)) !important;
    border: var(--nav-dropdown-border, 1px solid var(--border-color)) !important;
    box-shadow: var(--nav-dropdown-shadow, 0 4px 12px rgba(0, 0, 0, 0.3)) !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    min-width: 160px;
    max-width: 220px;
    white-space: nowrap;
    overflow: visible;
}

.nav-dropdown > li.nav-item-has-children > .nav-dropdown > li.nav-item-has-children:hover > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0);
}

/* İç içe nested dropdown'lar için (3. seviye ve üzeri) */
.nav-dropdown > li.nav-item-has-children > .nav-dropdown > li.nav-item-has-children > .nav-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0.5rem;
    z-index: 1002;
}

/* Hamburger Menu - Stairs Görünümlü */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Stairs görünümü için her çizgiyi farklı genişlikte yap */
.hamburger-menu span:nth-child(1) {
    width: 100%;
}

.hamburger-menu span:nth-child(2) {
    width: 75%;
    margin-left: auto;
}

.hamburger-menu span:nth-child(3) {
    width: 50%;
    margin-left: auto;
}

.hamburger-menu:hover span {
    background: var(--accent-primary);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    width: 100%;
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    width: 100%;
}

/* Mobil Navigasyon Menüsü (Aşağı Açılır) */
.mobile-nav-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    list-style: none;
    margin: 0;
    padding: 0;
    height: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.mobile-nav-menu.active {
    padding: 1rem 0;
    height: calc(100vh - var(--header-height));
    max-height: calc(100vh - var(--header-height));
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
}

body.mobile-menu-open {
    overflow: hidden;
}

.header.mobile-menu-open {
    height: auto;
    align-items: flex-start;
}

.mobile-nav-menu li {
    display: block;
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    position: relative;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-nav-menu a:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
    padding-left: 2rem;
}

.mobile-nav-menu .nav-icon {
    margin-right: 0.75rem;
}

.mobile-nav-menu .nav-text {
    white-space: nowrap;
}

/* Mobil menüde dropdown */
.mobile-nav-menu .nav-item-has-children > a::before {
    content: '▼';
    font-size: 0.6rem;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.mobile-nav-menu .nav-item-has-children.active > a::before {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-nav-menu .nav-dropdown {
    position: static;
    transform: none;
    background: var(--bg-primary);
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: auto;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, padding 0.3s ease;
    box-shadow: none;
    margin-left: 1.5rem;
    border-left: 2px solid var(--border-color);
    display: block;
    list-style: none;
    margin-top: 0;
    margin-bottom: 0;
}

.mobile-nav-menu .nav-item-has-children.active .nav-dropdown {
    max-height: 1000px;
    opacity: 1;
    visibility: visible;
    padding: 0.5rem 0;
    display: block;
}

.mobile-nav-menu .nav-dropdown::before {
    display: none;
}

.mobile-nav-menu .nav-dropdown li {
    border-bottom: none;
    display: block;
    width: 100%;
}

.mobile-nav-menu .nav-dropdown a {
    padding: 0.75rem 1.5rem 0.75rem 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
    width: 100%;
}

.mobile-nav-menu .nav-dropdown a:hover {
    padding-left: 2.5rem;
}

/* Mobil Navigasyon - Text Görünür (Gizleme İptal Edildi) */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .nav {
        position: relative;
        justify-content: space-between;
    }
    
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
    
    .nav-links {
        display: none; /* Desktop nav-links mobilde gizli */
    }
    
    .mobile-nav-menu {
        display: block;
    }
    
    /* Text gizleme iptal edildi - artık görünür */
    .nav-text {
        display: inline !important;
    }
    
    .nav-icon {
        margin-right: 0.5rem !important;
    }
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    padding: 2rem 0; /* Boşluk azaltıldı */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:empty {
    display: none;
    padding: 0;
}

/* Arkaplan Efekti */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(16, 163, 127, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent-primary), #2ac49c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* Arama Kutusu */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 1.25rem 3.5rem 1.25rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: 50px; /* Tam yuvarlak */
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-card);
    box-shadow: 0 8px 30px rgba(16, 163, 127, 0.15);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.25rem;
    pointer-events: none;
}

/* =========================================
   4. ANA SAYFA SLUG KARTLARI (DÜZELTİLMİŞ YAPI)
   ========================================= */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 3rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
}

.section-title::before {
    content: "";
    width: 6px;
    height: 2rem;
    background: var(--accent-primary);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(16, 163, 127, 0.5);
}

.slugs-grid-container {
    width: 100%;
    margin-bottom: 4rem;
}

.slugs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    width: 100%;
}

/* Kart Stili */
.slug-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: var(--card-height, 420px); /* Varsayılan */
}

.slug-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.slug-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* DESKTOP (min-width: 769px) */
@media (min-width: 769px) {
    /* Kart Yüksekliği Kesinlik */
    .slug-card {
        height: var(--card-height, 420px) !important;
        min-height: var(--card-height, 420px) !important;
        max-height: var(--card-height, 420px) !important;
    }
    
    /* Custom pages için özel boyutlar (ana sayfada) */
    .slug-card-custom {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    /* Sütun Hesaplamaları */
    div.slugs-grid[data-columns="1"] .slug-card { flex: 0 0 100%; max-width: 100%; }
    div.slugs-grid[data-columns="2"] .slug-card { flex: 0 0 calc((100% - 0.25rem) / 2); max-width: calc((100% - 0.25rem) / 2); }
    div.slugs-grid[data-columns="3"] .slug-card { flex: 0 0 calc((100% - 0.5rem) / 3); max-width: calc((100% - 0.5rem) / 3); }
    div.slugs-grid[data-columns="4"] .slug-card { flex: 0 0 calc((100% - 0.75rem) / 4); max-width: calc((100% - 0.75rem) / 4); }
    div.slugs-grid[data-columns="5"] .slug-card { flex: 0 0 calc((100% - 1rem) / 5); max-width: calc((100% - 1rem) / 5); }
    div.slugs-grid[data-columns="6"] .slug-card { flex: 0 0 calc((100% - 1.25rem) / 6); max-width: calc((100% - 1.25rem) / 6); }

    /* Görselli Kart Yapısı */
    .slug-card-image-text-layout {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .slug-card-image-container {
        width: 100%;
        height: 200px;
        margin-bottom: 1rem;
        border-radius: var(--radius-sm);
        overflow: hidden;
        flex-shrink: 0;
    }

    .slug-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

    .slug-card:hover .slug-card-image img {
        transform: scale(1.05);
    }

    .slug-card-text-container {
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow: hidden;
    }

    .slug-card-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
        text-align: center;
        color: var(--text-primary);
    }

    .slug-card-description {
        font-size: 0.95rem;
        color: var(--text-secondary);
        text-align: center;
        line-height: 1.5;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        flex: 1;
    }

    /* Görselsiz (Tam Çerçeve) Kart */
    .slug-card-full-frame {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: space-between;
    }

    .slug-card-full-frame .slug-card-description {
        -webkit-line-clamp: 11; /* Daha çok metin */
        line-clamp: 11;
    }

    /* Butonlar */
    .slug-card-buttons {
        margin-top: auto;
        display: flex;
        justify-content: center;
        padding-top: 1rem;
        flex-shrink: 0;
    }
}

/* --- MOBİL GÖRÜNÜM (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Kart Sabit Yükseklik */
    .slugs-grid-container {
        padding: 0;
        margin: 0;
    }

    .slugs-grid {
        flex-direction: column;
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .slug-card {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Custom pages için özel boyutlar (ana sayfada - mobil) */
    .slug-card-custom {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    
    /* Custom pages için data-mobile-style attribute'undan stilleri uygula */
    .slug-card-custom[data-mobile-style] {
        /* JavaScript ile uygulanacak */
    }

    .slug-card-content {
        padding: 0 !important;
        flex-direction: row !important;
    }

    /* Ortak Yapı: Görsel/Placeholder solda, metin sağda */
    .slug-card-image-text-layout,
    .slug-card-full-frame {
        display: flex !important;
        flex-direction: row !important;
        width: 100%;
        height: 100%;
        align-items: flex-start;
    }

    /* Görsel Alanı */
    .slug-card-image-container {
        width: 150px !important;
        height: 150px !important;
        flex-shrink: 0;
        margin: 0 !important;
        border-radius: 12px 0 0 12px;
    }

    .slug-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover !important;
        object-position: center !important;
    }

    /* Metin Alanı */
    .slug-card-text-container,
    .slug-card-full-frame {
        display: flex !important;
        flex-direction: column !important;
        flex: 1;
        padding: 0.75rem !important;
        overflow: hidden;
        justify-content: flex-start;
        text-align: left !important;
        align-items: flex-start !important;
}

    /* Görselsiz Kart (Tam Çerçeve) */
    .slug-card-full-frame {
        padding: 1rem !important;
        align-items: center !important; /* Yatayda ortala */
    }

    .slug-card-title {
        font-size: 1rem;
        font-weight: 600;
        margin: 0 0 0.25rem 0 !important;
        padding: 0 !important;
        text-align: left !important;
        line-height: 1.2;
        flex-shrink: 0;
        color: var(--text-primary);
    }

    /* Görselsiz kart başlığı ortala */
    .slug-card-full-frame .slug-card-title {
        text-align: center !important;
        width: 100%;
    }

    .slug-card-description {
        font-size: 0.85rem;
        color: var(--text-secondary);
        text-align: left !important;
        margin: 0 !important;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        line-clamp: 5;
        -webkit-box-orient: vertical;
        line-height: 1.3;
    }

    /* Görselsiz kart açıklaması ortala */
    .slug-card-full-frame .slug-card-description {
        text-align: center !important;
    }

    /* Butonlar Mobil'de Gizli */
    .slug-card-buttons {
        display: none !important;
    }
}

/* =========================================
   5. DİĞER GRIDLER (OYUNLAR & BLOG)
   ========================================= */
.games-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Oyun Kartı */
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.game-image {
    height: 180px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.game-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 163, 127, 0.1);
    color: var(--accent-primary);
    border-radius: 50px;
    font-weight: 600;
}

/* Blog Kartı */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.blog-image {
    height: 220px;
    background: var(--bg-secondary);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* =========================================
   6. BUTONLAR & ETKİLEŞİM
   ========================================= */
.btn, .slug-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    background: var(--accent-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    gap: 0.5rem;
}

.btn:hover, .slug-card-button:hover {
    background: #0d8a6a;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(16, 163, 127, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--text-primary);
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: #fff;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 4rem 0;
}

.pagination-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.pagination-link:hover,
.pagination-current {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.pagination-current {
    pointer-events: none;
    font-weight: 700;
}

/* =========================================
   7. SAYFA İÇERİK DETAYLARI (Dynamic, Contact, FAQ)
   ========================================= */
   
/* Dinamik Sayfa Şablonu */
.dynamic-page-content {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.dynamic-page-content h1 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.dynamic-page-content .page-image-text-layout {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .dynamic-page-content .page-image-text-layout {
        flex-direction: column;
    }
    .dynamic-page-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

.dynamic-page-content .page-image-container {
    flex: 0 0 40%;
}

.dynamic-page-content .page-image-container img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.dynamic-page-content .page-text-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* İletişim Formu Stilleri */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* SSS (Accordion) Stilleri */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-header {
    padding: 1.5rem;
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.2s;
}

.faq-header:hover {
    background: var(--bg-hover);
}

.faq-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--bg-secondary);
}

.faq-item.active .faq-content {
    padding: 1.5rem;
    max-height: 500px; /* Yeterince büyük */
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180px);
}

/* Tablo Stilleri */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--accent-primary);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--bg-hover);
}

/* =========================================
   8. REKLAM ALANLARI & DİĞER BİLEŞENLER
   ========================================= */
.ad-space {
    width: 100%;
    margin: 1.5rem auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    text-align: center;
    display: block;
}

.ad-space img,
.ad-space iframe {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.native-ad {
    border-color: var(--accent-primary) !important;
    background: linear-gradient(to bottom right, rgba(16, 163, 127, 0.05), transparent);
}

.sponsored-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--warning);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

/* 404 Sayfası */
.error-page {
    text-align: center;
    padding: 5rem 1rem;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 1rem;
}

/* Splash / Popup Ads */
.splash-ad-wrapper {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1rem;
    width: min(var(--splash-width, 600px), calc(100% - 2rem));
    z-index: 9999;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.splash-ad-wrapper.fullscreen {
    inset: 0;
    transform: none;
    width: auto;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    padding: 1.5rem;
    pointer-events: auto;
}

.splash-ad-card {
    width: 100%;
    max-height: calc(100vh - 2rem);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    padding: 1.25rem 1.5rem 1rem;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
}

.splash-ad-card.bottom {
    height: var(--splash-height, auto);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.splash-ad-card.fullscreen {
    max-width: min(var(--splash-width, 700px), 100%);
    margin: 0 auto;
    height: auto;
}

.splash-ad-content {
    width: 100%;
    height: 100%;
    overflow: auto;
    color: var(--text-primary);
}

.splash-ad-close {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.splash-ad-close:hover {
    background: rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .splash-ad-wrapper {
        width: calc(100% - 1.5rem);
        bottom: 0.75rem;
    }
    
    .splash-ad-card {
        padding: 1rem;
        border-radius: 14px;
    }
    
    .splash-ad-card.fullscreen {
        height: auto;
    }
}

/* =========================================
   9. FOOTER (DETAYLI)
   ========================================= */
.footer {
    background: #151515;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem;
    margin-top: auto; /* Footer'ı en alta it */
}

/* Footer Grid (JS tarafından footer-columns sınıfı ile oluşturuluyor) */
.footer-columns, .footer-grid {
    display: grid;
    grid-template-columns: repeat(var(--footer-column-count, 4), 1fr); /* Varsayılan 4 */
    gap: 3rem;
    margin-bottom: 4rem;
    width: 100%;
}

/* Desktop Hizalama */
@media (min-width: 769px) {
    .footer-column:first-child { text-align: left; }
    .footer-column:last-child { text-align: right; }
    .footer-column:not(:first-child):not(:last-child) { text-align: center; }
}

/* Mobil Hizalama */
@media (max-width: 768px) {
    .footer-columns, .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }

    .footer-column:nth-child(odd) { 
        text-align: left; 
        justify-self: start; 
    }

    .footer-column:nth-child(even) { 
        text-align: right; 
        justify-self: end; 
    }
    
    /* Tek kalan son eleman */
    .footer-column:last-child:nth-child(odd) {
        grid-column: span 2;
        text-align: center;
        justify-self: center;
    }
}

.footer-info p {
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0.7;
}

.footer-column h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1.5rem;
    }

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

/* Statik Sayfalar Linkleri (Özel İstek) */
.static-pages-links .footer-column ul {
    padding: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 576px) {
    .social-links {
        justify-content: center;
    }
}

.social-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--accent-primary);
    transform: translateY(-3px);
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
    }
}

/* =========================================
   10. YARDIMCI SINIFLAR (UTILITIES)
   ========================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

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

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.hidden { display: none !important; }

/* Animasyonlar */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

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

/* Loading Spinner */
.loading-spinner {
    border: 4px solid rgba(255,255,255,0.1);
    border-left-color: var(--accent-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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