/* =========================================
   HOME.CSS - ANASAYFA ÖZEL STİLLERİ
   (Slider, Tablar, İstatistikler, Oyun Modları, Kategori Kartları)
   ========================================= */

/* -----------------------------------------------------------
   1. TAB MENÜ SİSTEMİ
   ----------------------------------------------------------- */

/* Kapsayıcı ve Hizalama */
.tabs-container .d-md-flex {
    width: 100%;
    justify-content: space-between;
    border-bottom: 2px solid var(--line-gray);
    position: relative;
    margin-bottom: 30px;
    height: 46px;
    display: flex;
    align-items: flex-end;
}

/* Liste Genişliği */
.custom-tabs {
    width: auto !important;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Tab Linkleri */
.tab-link {
    display: block;
    padding: 10px 0 12px 0 !important;
    margin-bottom: -2px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 3px solid transparent; 
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.tab-link:hover { color: var(--text-main); }

.tab-link.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
    z-index: 10;
}

/* "TÜMÜ" Linki - Sağa Yaslama */
.view-all-link {
    margin-left: auto !important;
    margin-bottom: 10px;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    transition: color 0.3s ease;
    white-space: nowrap;
}
.view-all-link:hover { color: var(--primary) !important; }

/* Mobil Dropdown (Responsive Tab) */
.mobile-tab-nav { 
    background: var(--bg-body); 
    padding: 8px; 
    border-radius: 8px; 
    margin-bottom: 15px; 
    border: 1px solid var(--border-color); 
}
.btn-pixel-tab { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    color: var(--text-main); 
    font-weight: 700; 
    padding: 10px; 
}
.btn-pixel-tab.active { 
    background: var(--primary) !important; 
    border-color: var(--primary) !important; 
    color: #fff !important; 
}
.pixel-select { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    color: var(--text-main); 
    padding: 0 10px; 
    font-weight: 700; 
}

/* Dark Mode Düzeltmeleri (Tablar İçin) */
[data-theme="dark"] .tab-link { color: rgba(255, 255, 255, 0.6) !important; }
[data-theme="dark"] .tab-link:hover { color: #fff !important; text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); }
[data-theme="dark"] .tab-link.active { color: var(--primary) !important; border-bottom-color: var(--primary) !important; }
[data-theme="dark"] .view-all-link { color: rgba(255, 255, 255, 0.5) !important; }


/* -----------------------------------------------------------
   2. HERO SLIDER ALANI
   ----------------------------------------------------------- */

/* Mobilde Gizle */
@media (max-width: 991px) { 
    .hero-area { display: none !important; } 
}

/* Ana Kapsayıcı */
.hero-area { 
    height: 520px; 
    margin-bottom: 40px; 
    overflow: visible; 
}

/* --- SOL BÜYÜK RESİM (MAIN SLIDER) --- */
.main-swiper { 
    width: 100%; height: 100%; 
    border-radius: 12px; overflow: hidden; 
    position: relative; transform: translateZ(0); 
    -webkit-mask-image: -webkit-radial-gradient(white, black); 
}

.main-slide-item { 
    width: 100%; height: 100%; 
    position: relative; display: block; 
}

.main-slide-item img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 6s ease; 
}

.swiper-slide-active .main-slide-item img { transform: scale(1.05); }

/* Slider Badge (Etiket) */
.slider-badge-top-right { 
    position: absolute; top: 20px; right: 20px; z-index: 10; 
}
.slider-badge-top-right .badge-static { 
    padding: 10px 10px !important; font-size: 1rem !important; letter-spacing: 1px; 
}

/* Slider Yazı Alanı (Overlay) */
.main-slide-overlay { 
    position: absolute; bottom: 0; left: 0; width: 100%; 
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, transparent 100%); 
    padding: 50px; z-index: 2; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.8); 
}

.slide-title { 
    color: #fff; font-size: 2.4rem; font-weight: 800; 
    line-height: 1.1; margin-bottom: 15px; 
}

.slide-desc { 
    color: rgba(255,255,255,0.9); font-size: 1.1rem; 
    max-width: 90%; line-height: 1.6; 
    display: -webkit-box; -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; overflow: hidden; 
}

/* --- SAĞ KÜÇÜK RESİMLER (THUMBNAILS) --- */
.thumbs-swiper { 
    height: 100%; padding-left: 15px; padding-bottom: 2px; 
}

.thumb-item { 
    position: relative; height: 100%; width: 100%; 
    border-radius: 12px; overflow: hidden; 
    background-size: cover; background-position: center; 
    border: 1px solid transparent; 
    transition: all 0.3s ease; cursor: pointer; 
    transform: translateZ(0); 
    -webkit-mask-image: -webkit-radial-gradient(white, black); 
}

.thumb-bg-img { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background-size: cover; background-position: center; z-index: 0; 
}

.thumb-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.4); transition: 0.3s; z-index: 1; 
}

.swiper-slide-thumb-active .thumb-overlay { 
    background: rgba(0,0,0,0.1); 
}

.thumb-item .badge-static { 
    position: absolute; top: 0; left: 0; margin: 0; 
    padding: 4px 10px !important; font-size: 0.7rem !important; 
    z-index: 10; border-radius: 0 0 6px 0 !important; 
}

.thumb-content { 
    position: relative; z-index: 5; height: 100%; 
    display: flex; flex-direction: column; justify-content: flex-end; 
    padding: 15px; 
}

.swiper-slide-thumb-active .thumb-item { 
    border-color: var(--primary); 
}

.thumb-title { 
    color: #ddd; font-size: 0.9rem; font-weight: 700; line-height: 1.3; 
    transition: color 0.3s; margin-top: 5px; 
    text-shadow: 0 1px 3px rgba(0,0,0,0.8); 
}

.swiper-slide-thumb-active .thumb-title { color: #fff; }

/* --- İLERLEME ÇUBUĞU ANİMASYONU --- */
.progress-container { 
    position: absolute; bottom: 0; left: 0; 
    width: 100%; height: 4px; 
    background: rgba(0,0,0,0.3); opacity: 0; z-index: 20; 
}

.swiper-slide-thumb-active .progress-container { opacity: 1; }

.swiper-slide-thumb-active .progress-bar { 
    animation: fillLine 5s linear forwards; 
    height: 100%; background: var(--primary); 
}

@keyframes fillLine { 
    from { width: 0%; } 
    to { width: 100%; } 
}

.hero-area .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
}
.hero-area .col-lg-8 { padding-right: 15px !important; }
.hero-area .col-lg-4 { padding-left: 15px !important; }


/* -----------------------------------------------------------
   3. İSTATİSTİK KARTLARI (Stats)
   ----------------------------------------------------------- */
.stat-card { display: flex; flex-direction: column; align-items: center; padding: 1rem; }
.stat-circle-wrapper { position: relative; width: 140px; height: 140px; display: flex; justify-content: center; align-items: center; }
.progress-ring { position: absolute; transform: rotate(-90deg); overflow: visible; }
.progress-ring__circle--bg { fill: transparent; stroke: rgba(0, 0, 0, 0.05); }
body.dark-mode .progress-ring__circle--bg { stroke: rgba(255, 255, 255, 0.1); }
.progress-ring__circle { fill: transparent; stroke-linecap: round; stroke-dasharray: 377; stroke-dashoffset: 377; transition: stroke-dashoffset 2s ease-out; }

.blue-stroke { stroke: #3b82f6; filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.4)); }
.red-stroke { stroke: #ef4444; filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.4)); }
.green-stroke { stroke: #22c55e; filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.4)); }
.bg-blue { background-color: #3b82f6; } .bg-red { background-color: #ef4444; } .bg-green { background-color: #22c55e; }

.stat-content { z-index: 2; text-align: center; }
.stat-number { font-size: 2rem; font-weight: 700; margin: 0; }
.unit { font-size: 1rem; font-weight: 600; opacity: 0.7; }
.stat-label { font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; margin-bottom: 0.5rem; opacity: 0.8; }

.progress-decoration { display: flex; justify-content: center; }
.progress-bar-bg { width: 60px; height: 4px; background-color: rgba(0, 0, 0, 0.1); border-radius: 4px; overflow: hidden; position: relative; }
body.dark-mode .progress-bar-bg { background-color: rgba(255, 255, 255, 0.1); }
.progress-bar-fill { height: 100%; width: 0%; border-radius: 4px; transition: width 2s ease-out; }


/* -----------------------------------------------------------
   4. KATEGORİ KUTULARI (GÜNCELLENEN NETFLIX TARZI KARTLAR)
   ----------------------------------------------------------- */

/* A. BÜYÜK KART (NETFLIX STYLE) */
.netflix-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    position: relative;
    border: 1px solid var(--border-color);
}

.netflix-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #222;
    overflow: hidden;
}

.card-image-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Platform Rozeti (Sağ Üst) */
.badge-platform {
    position: absolute;
    top: 10px; right: 10px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
}

/* Alt Overlay (Gradyan) */
.card-overlay-bar {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 12px;
    box-sizing: border-box;
    z-index: 5;
}

/* Tür (Mod/Dublaj) */
.meta-left .badge-type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 6px;
    border-radius: 3px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Rajdhani', sans-serif;
}

/* Durum (Güncellendi/Sürüm) */
.meta-right span {
    font-size: 11px;
    font-weight: 700;
    text-shadow: 0 1px 2px #000;
    font-family: 'Rajdhani', sans-serif;
}
.text-updated { color: #2ecc71; display: flex; align-items: center; gap: 4px; }
.text-version { color: #ecf0f1; opacity: 0.9; }

/* Kart İçerik Alanı */
.card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    background-color: var(--bg-card);
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

.netflix-card:hover .card-title { color: var(--primary); }

.card-footer-info {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    margin-top: auto;
}
.download-count i, .date-info i { margin-right: 4px; }

/* B. KÜÇÜK LİSTE (SMALL LIST) - Korunuyor */
.cat-small-list { list-style: none; padding: 0; margin: 0; }
.cat-small-item { padding: 10px 0; border-bottom: 1px solid var(--border-color); display: flex; align-items: flex-start; gap: 10px; }
.cat-small-item:last-child { border: none; }
.cat-small-link { text-decoration: none; color: var(--text-main); font-size: 0.9rem; font-weight: 600; line-height: 1.4; transition: 0.2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-small-link:hover { color: var(--primary); }
.cat-meta { font-size: 0.75rem; color: var(--text-muted); display: block; margin-top: 3px; }

/* Dark Mode (Yeni Kartlar İçin) */
[data-theme="dark"] .netflix-card { background-color: var(--bg-card); border-color: var(--border-color); }
[data-theme="dark"] .card-footer-info { border-top-color: rgba(255,255,255,0.1); }


/* -----------------------------------------------------------
   5. OYUN MODLARI (Mods Section)
   ----------------------------------------------------------- */
.mods-section { position: relative; }
.slider-nav-buttons { margin-bottom: 5px; }
.nav-btn { width: 36px; height: 36px; background-color: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-main); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; font-size: 0.9rem; border-radius: 0; }
.nav-btn:hover { background-color: #9b59b6; color: #fff; border-color: #9b59b6; box-shadow: 0 0 10px rgba(155, 89, 182, 0.4); }
.nav-btn.swiper-button-disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; background-color: transparent; color: var(--text-muted); }

.mods-swiper .swiper-slide { height: auto !important; display: flex; }
.mod-card { display: flex; flex-direction: column; width: 100%; height: 100%; background: var(--bg-card); border: 1px solid var(--border-color); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; border-radius: 0px; }
.mod-card:hover { transform: translateY(-5px); border-color: #9b59b6; box-shadow: 0 10px 20px rgba(155, 89, 182, 0.15); }

.mod-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; display: block; border-bottom: 1px solid transparent; }
.mod-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mod-card:hover .mod-thumb img { transform: scale(1.1); }
.mod-card:hover .mod-thumb { border-bottom-color: #9b59b6; }

.mod-badge { position: absolute; top: 0; left: 0; background-color: #9b59b6; color: #fff; font-size: 0.7rem; font-weight: 800; padding: 4px 10px; text-transform: uppercase; z-index: 2; font-family: 'Rajdhani', sans-serif; border-radius: 0; }

.mod-content-compact { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; background: var(--bg-card); height: auto; min-height: 80px; }
.mod-title-compact { margin: 0; font-size: 1rem; font-weight: 700; font-family: 'Rajdhani', sans-serif; color: var(--text-main); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-right: 10px; }
.mod-card:hover .mod-title-compact { color: #9b59b6; }
[data-theme="dark"] .mod-card:hover .mod-title-compact { color: var(--primary); }

.mod-arrow-compact { font-size: 1.2rem; color: var(--text-muted); transition: 0.3s; flex-shrink: 0; }
.mod-card:hover .mod-arrow-compact { color: var(--primary); transform: translateX(5px); }

.mod-header-wrapper { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #e0e0e0; margin-bottom: 25px; padding-bottom: 0; position: relative; }
.mod-title-box { position: relative; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; z-index: 5; border-bottom: none; margin-bottom: 0; }
.mod-title-box::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 4px; background-color: #9b59b6 !important; z-index: 10; box-shadow: 0 2px 4px rgba(155, 89, 182, 0.3); }
.mod-section-title { font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--text-main); margin: 0; line-height: 1; }
.mod-date-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 8px 15px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: #fff; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; gap: 6px; z-index: 5; font-family: 'Inter', sans-serif; }

[data-theme="dark"] .mod-card { background-color: #1a1a1a !important; border-color: #333 !important; }
[data-theme="dark"] .mod-card:hover { border-color: var(--primary) !important; box-shadow: 0 10px 25px rgba(255, 180, 0, 0.15) !important; }
[data-theme="dark"] .mod-card:hover .mod-title a { color: var(--primary) !important; }


/* -----------------------------------------------------------
   6. DİĞER BİLEŞENLER (Anasayfaya Özel)
   ----------------------------------------------------------- */

/* Reklam Alanları */
.ad-container { width: 100%; min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 20px; text-align: center; background-color: rgba(0,0,0,0.02); background-image: radial-gradient(var(--border-color) 1px, transparent 1px); background-size: 20px 20px; border: 1px dashed var(--border-color); border-radius: 8px; position: relative; transition: all 0.3s ease; }
.ad-slot-wrapper { width: 100%; margin: 20px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: rgba(0,0,0,0.02); border-radius: 8px; position: relative; overflow: hidden; }
@media (min-width: 992px) { .ad-slot-wrapper { min-height: 110px; } }
@media (max-width: 991px) { .ad-slot-wrapper { min-height: 270px; } }
.ad-fallback-simple { display: none; text-align: center; padding: 15px; }
.ad-container ins.adsbygoogle { display: block !important; width: 100% !important; min-width: 300px; z-index: 2; }
.ad-container span.text-muted { z-index: 2; background: var(--bg-body); padding: 0 5px; border-radius: 4px; }

/* Badge */
.badge-static { display: inline-flex; align-items: center; justify-content: center; font-family: 'Rajdhani', sans-serif; font-weight: 800; text-transform: uppercase; color: #ffffff !important; border-radius: 0px !important; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 5; line-height: 1; }

/* Sidebar Widget */
.sidebar-widget { background: transparent; border: none; box-shadow: none; margin-bottom: 30px; }
.widget-content { background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }

/* Başlık Stili */
.pixel-heading { position: relative; border-bottom: 2px solid var(--line-gray); margin-bottom: 20px; height: 46px; display: flex; align-items: flex-end; }
.pixel-heading h5 { margin: 0; padding-bottom: 12px; font-family: 'Rajdhani', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 1.1rem; color: var(--text-main); position: relative; letter-spacing: 0.5px; }
.pixel-heading h5::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background-color: var(--heading-color, var(--primary)); box-shadow: 0 0 10px var(--heading-color); z-index: 10; }

/* Top Downloads */
.top-download-item { display: flex; align-items: center; padding: 12px 15px; text-decoration: none; border-bottom: 1px solid var(--border-color); transition: background-color 0.2s; }
.top-download-item:hover { background-color: rgba(0,0,0,0.02); }
.top-download-item:first-child { border-top: none; }
.top-download-item:last-child { border-bottom: none; }
.count-badge { width: 28px; height: 28px; background-color: #eee; color: #555; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: 'Rajdhani', sans-serif; margin-right: 12px; font-size: 1rem; flex-shrink: 0; }
.top-download-item:nth-child(1) .count-badge { background-color: #FFD700; color: #000; }
.top-download-item:nth-child(2) .count-badge { background-color: #C0C0C0; color: #000; }
.top-download-item:nth-child(3) .count-badge { background-color: #CD7F32; color: #fff; }
.item-info h6 { margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--text-main); line-height: 1.3; }
.item-info small { color: var(--text-muted); font-size: 0.8rem; }

/* =========================================
   SWIPER KART BOYU EŞİTLEME (KESİN ÇÖZÜM)
   ========================================= */

/* 1. Swiper Slide'ın kendisini esnek yap ve yüksekliği otomatiğe al */
.mods-swiper .swiper-slide {
    height: auto !important; /* En uzun olan slaytın boyunu baz al */
    display: flex !important; /* İçindeki kartı esnetebilmesi için şart */
    align-items: stretch !important; /* İçeriği yukarıdan aşağıya ger */
}

/* 2. Kartın kendisini %100 yüksekliğe zorla */
.mods-swiper .netflix-card {
    height: 100% !important; /* Slide ne kadar uzarsa bu da o kadar uzasın */
    width: 100%; /* Genişlik tam olsun */
    display: flex !important;
    flex-direction: column !important;
}

/* 3. Resim alanı sabit kalsın (Asla küçülmesin) */
.mods-swiper .card-image-wrapper {
    flex-shrink: 0; 
}

/* 4. Beyaz yazı alanı (Content) kalan tüm boşluğu kaplasın */
.mods-swiper .card-content {
    flex: 1 1 auto !important; /* Büyü, küçül ve alanı doldur */
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important; /* Başlık üstte, Footer altta */
}

/* 5. Footer (İndirme/Tarih) kısmını en alta çivile */
.mods-swiper .card-footer-info {
    margin-top: auto !important; /* Sihirli kod: Yukarıdaki boşluğu iterek en alta yapışır */
    width: 100%;
}