/* ===================================================================
   NEXUS THEME v2 - BİRLEŞTİRİLMİŞ STİL DOSYASI
   Ana Sayfa ve Makale Sayfası Stillerini İçerir
   =================================================================== */

/* ===================================================================
   1. BÖLÜM: TEMEL DEĞİŞKENLER VE GLOBAL STİLLER
   =================================================================== */

:root {
    /* Renk Paleti (Dinamik ve Enerjik) */
    --c-bg: #0A0A0B;
    --c-surface: #121214;
    --c-border: rgba(255, 255, 255, 0.1);
    
    --c-text-primary: #ECECEC;
    --c-text-secondary: #A9A9B2;
    --c-text-muted: #6B6C72;

    /* VURGU SİSTEMİ */
    --c-brand-red: #FF2D55;
    --c-brand-purple: #AF52DE;
    --c-brand-gradient: linear-gradient(120deg, var(--c-brand-red), var(--c-brand-purple));

    /* Kategori Renkleri */
    --c-cat-jeux: #00E676;       /* Yeşil */
    --c-cat-voyage: #3498DB;     /* Mavi */
    --c-cat-actualites: #FFC300; /* Sarı */
    --c-cat-films: #AF52DE;      /* Mor */
    --c-cat-technologie: #E67E22; /* Turuncu */

    /* Tipografi */
    --f-body: 'Barlow', sans-serif;
    --f-heading: 'Barlow Condensed', sans-serif;

    /* Layout & Spacing */
    --header-h: 70px;
    --container-w: 1300px; /* Ana konteyner genişliği */
    --article-width: 840px;   /* Makale metin genişliği */
    --sidebar-width: 340px;   /* Makale kenar çubuğu genişliği */
    --sp: 1rem;
    --radius: 16px;

    /* Transitions */
    --trans-smooth: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    --trans-fast: 0.3s ease;
}

/* --- Reset & Temel Stiller --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--f-body);
    background-color: var(--c-bg);
    color: var(--c-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 calc(var(--sp) * 1.5); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Temel Tipografi --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-heading);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

/* ===================================================================
   2. BÖLÜM: SİTE GENELİ BİLEŞENLER (HEADER, FOOTER)
   =================================================================== */

/* --- Header --- */
.site-header {
    position: fixed; top: 0; width: 100%; height: var(--header-h); z-index: 1000;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
    transition: background-color var(--trans-fast);
}
.site-header::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, -50%), rgba(255, 45, 85, 0.15), transparent 40%);
    opacity: 0; transition: opacity var(--trans-smooth); pointer-events: none;
}
.site-header:hover::before { opacity: 1; }
.header-content { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.header-logo { font-family: var(--f-heading); font-weight: 800; font-size: 1.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.header-logo span { background: var(--c-brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.main-nav ul { display: flex; gap: var(--sp); list-style: none; }
.nav-link { font-family: var(--f-heading); font-size: 1.1rem; text-transform: uppercase; padding: 0.5rem 1rem; color: var(--c-text-secondary); position: relative; transition: color var(--trans-fast); }
.nav-link:hover, .nav-link.is-active { color: var(--c-text-primary); }
.nav-link::after, .nav-link::before {
    content: attr(data-text); position: absolute; top: 50%; left: 1rem; transform: translateY(-50%);
    color: var(--c-text-primary); overflow: hidden; clip-path: inset(50% 0 50% 0); transition: clip-path var(--trans-fast); opacity: 0;
}
.nav-link::before { text-shadow: -1px 0 var(--c-brand-red); }
.nav-link::after { text-shadow: 1px 0 var(--c-brand-purple); }
.nav-link:hover::before, .nav-link:hover::after { clip-path: inset(0 0 0 0); opacity: 1; }
.header-actions { display: flex; gap: var(--sp); }
.action-button {
    width: 44px; height: 44px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 50%;
    color: var(--c-text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--trans-fast);
}
.action-button:hover { color: var(--c-text-primary); background-color: var(--c-brand-red); border-color: var(--c-brand-red); box-shadow: 0 0 20px rgba(255, 45, 85, 0.4); }

/* --- Mobil Navigasyon --- */
.mobile-nav-toggle { display: none; width: 44px; height: 44px; background: transparent; border: none; cursor: pointer; z-index: 1010; position: relative; }
.mobile-nav-toggle .line { display: block; width: 24px; height: 2px; background-color: var(--c-text-primary); margin: 6px auto; transition: all 0.3s ease-in-out; }

/* --- Footer --- */
.site-footer {
    background-color: var(--c-bg); padding: calc(var(--sp) * 4) 0 calc(var(--sp) * 2); border-top: 1px solid var(--c-border); position: relative; overflow: hidden;
}
.site-footer::before {
    content: ''; position: absolute; bottom: -150px; left: 50%; transform: translateX(-50%); width: 800px; height: 300px;
    background: radial-gradient(ellipse at center, rgba(175, 82, 222, 0.1), transparent 70%); filter: blur(80px); pointer-events: none;
}
.footer__main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr); gap: calc(var(--sp) * 4); margin-bottom: calc(var(--sp) * 3); }
.footer__brand { display: flex; flex-direction: column; gap: 1.25rem; }
.footer__logo { font-family: var(--f-heading); font-size: 2rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.footer__logo span { background: var(--c-brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer__about { color: var(--c-text-secondary); line-height: 1.6; max-width: 350px; }
.footer__social { display: flex; gap: 1rem; }
.social-link {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background-color: var(--c-surface);
    border: 1px solid var(--c-border); border-radius: 50%; color: var(--c-text-secondary); font-size: 1.1rem; transition: all var(--trans-fast);
}
.social-link:hover { color: var(--c-text-primary); background-color: var(--c-brand-red); border-color: var(--c-brand-red); transform: translateY(-4px); box-shadow: 0 5px 15px rgba(255, 45, 85, 0.4); }
.footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: calc(var(--sp) * 2); }
.footer__column { display: flex; flex-direction: column; }
.footer__title { font-family: var(--f-heading); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; color: var(--c-text-primary); position: relative; }
.footer__title::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 25px; height: 2px; background: var(--c-brand-gradient); }
.footer__links { display: flex; flex-direction: column; gap: 0.8rem; list-style: none; }
.footer__link { color: var(--c-text-secondary); transition: color var(--trans-fast), padding-left var(--trans-fast); }
.footer__link:hover { color: var(--c-text-primary); padding-left: 5px; }
.footer__bottom { margin-top: calc(var(--sp) * 3); padding-top: calc(var(--sp) * 2); border-top: 1px solid var(--c-border); text-align: center; color: var(--c-text-muted); font-size: 0.9rem; }


/* ===================================================================
   3. BÖLÜM: ANA SAYFA BÖLÜMLERİ
   =================================================================== */

/* --- Ortak Bölüm Başlığı --- */
.section-header {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: calc(var(--sp) * 2.5); padding-bottom: var(--sp); border-bottom: 1px solid var(--c-border);
}
.section-header__title { font-family: var(--f-heading); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; text-transform: uppercase; letter-spacing: -1px; }
.section-header__title span { background: var(--c-brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-header__link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--c-text-secondary); font-weight: 600; transition: color var(--trans-fast); }
.section-header__link:hover { color: var(--c-text-primary); }
.section-header__link i { transition: transform var(--trans-fast); }
.section-header__link:hover i { transform: translateX(5px); }

/*
   ============================================================
   === HERO BÖLÜMÜ - YENİ MOBİL-ÖNCELİKLİ TASARIM ===
   ============================================================
*/

.hero-section {
    padding: calc(var(--header-h) + var(--sp) * 2) 0;
    position: relative;
    overflow: hidden;
}

.hero-background-glow {
    position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    width: 120%; height: 800px;
    background: radial-gradient(ellipse at 50% 0%, rgba(175, 82, 222, 0.1) 0%, transparent 60%);
    filter: blur(100px); pointer-events: none; z-index: 0;
}

/* MOBİL-ÖNCELİKLİ YAKLAŞIM: TEK BÜTÜN KART */
/* hero-container mobil cihazlarda her şeyi saran ana karttır. */
.hero-container {
    position: relative; z-index: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden; /* İçeriğin köşelerden taşmasını önler */
    animation: fadeInUp 0.8s var(--trans-smooth) both;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* MOBİLDE Öne Çıkan Kart stilleri sıfırlanır, çünkü artık ana konteynerin bir parçası. */
.hero__featured-card {
    position: relative;
}
.hero__featured-link {
    display: block;
    position: relative;
    transition: transform var(--trans-fast); /* Hover için basit bir efekt */
}
.hero__featured-link:hover {
    transform: scale(1.02);
}
.hero__featured-image-wrapper {
    position: relative; /* Gradyan için referans noktası */
    aspect-ratio: 16 / 10;
}
.hero__featured-image {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero__featured-content {
    /* Resmin üzerine değil, resmin altına yerleştirildi. */
    position: relative;
    padding: calc(var(--sp) * 1.5);
    background-color: var(--c-surface); /* Temiz bir zemin */
}
.hero__category {
    font-family: var(--f-heading); font-weight: 700; font-size: 0.8rem;
    padding: 0.4rem 1rem; border-radius: 30px; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.05); /* Daha zarif bir arka plan */
    border: 1px solid var(--c-border);
    width: fit-content;
    transition: all var(--trans-fast);
}
.hero__featured-link:hover .hero__category {
    background: var(--c-brand-red);
    border-color: var(--c-brand-red);
    color: white;
}
.hero__title {
    font-size: clamp(1.6rem, 6vw, 2.2rem); /* Mobil için optimize edilmiş boyut */
    font-weight: 800; line-height: 1.15;
    letter-spacing: -0.5px;
}

/* MOBİLDE Kenar Çubuğu, ana kartın alt bölümü olur. */
.hero__sidebar {
    padding: 0 calc(var(--sp) * 1.5) calc(var(--sp) * 1.5); /* Üst padding yok, çünkü içerikten geliyor */
    border-top: 1px solid var(--c-border); /* Öne çıkan makaleden ayırıcı çizgi */
}
.sidebar__title {
    font-size: 1.1rem;
    padding-top: calc(var(--sp) * 1.5); /* Çizginin üstünde boşluk bırakır */
    margin-bottom: var(--sp);
    display: flex; align-items: center; gap: 0.75rem;
}
.sidebar__title i {
    background: var(--c-brand-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    font-size: 1.3rem;
}
.sidebar__post-list {
    display: flex; flex-direction: column;
    gap: 0; /* Boşluklar padding ile yönetilecek */
}
.sidebar__post-item {
    display: flex; align-items: center; gap: var(--sp);
    padding: var(--sp) 0; /* Dikey padding */
    border-top: 1px solid var(--c-border);
    transition: opacity var(--trans-fast);
}
.sidebar__post-list .sidebar__post-item:first-child {
    border-top: none; /* Listenin ilk elemanında üst çizgi olmasın */
}
.sidebar__post-item:hover {
    opacity: 0.7;
}
.sidebar__post-image-wrapper {
    width: 70px; height: 55px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}
.sidebar__post-image {
    width: 100%; height: 100%; object-fit: cover;
}
.sidebar__post-content {
    display: flex; flex-direction: column;
}
.sidebar__post-category {
    font-family: var(--f-heading); font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    margin-bottom: 0.25rem; display: block; opacity: 0.7;
}
.sidebar__post-category[data-category="jeux"] { color: var(--c-cat-jeux); }
.sidebar__post-category[data-category="voyage"] { color: var(--c-cat-voyage); }
.sidebar__post-category[data-category="actualites"] { color: var(--c-cat-actualites); }
.sidebar__post-title {
    font-size: 0.95rem; font-weight: 600; line-height: 1.3;
    color: var(--c-text-secondary);
}
.sidebar__post-item:hover .sidebar__post-title {
    color: var(--c-text-primary);
}


/* --- Content Section (İçerik Gridleri) --- */
.content-section.nexus-bg { padding: calc(var(--sp) * 4) 0; background-color: var(--c-surface); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.content-grid { display: grid; grid-template-columns: 1fr; gap: calc(var(--sp) * 2.5); align-items: start; }
.post-grid { display: grid; grid-template-columns: 1fr; gap: calc(var(--sp) * 2); }

/* --- Genel Post Kart Stili (Ana Sayfa ve İlgili Yazılar için Ortak) --- */
.post-card {
    display: flex; flex-direction: column; background-color: var(--c-bg); border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--c-border); transition: transform var(--trans-smooth), box-shadow var(--trans-smooth);
}
.post-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.3); }
.post-card__image-wrapper { aspect-ratio: 16 / 9; overflow: hidden; }
.post-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform var(--trans-smooth); }
.post-card:hover .post-card__image { transform: scale(1.05); }
.post-card__content { padding: calc(var(--sp) * 1.5); display: flex; flex-direction: column; flex-grow: 1; }
.post-card__category { font-family: var(--f-heading); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.75rem; }
.post-card__category[data-category*="jeux"] { color: var(--c-cat-jeux); }
.post-card__category[data-category*="voyage"] { color: var(--c-cat-voyage); }
.post-card__category[data-category*="actualites"] { color: var(--c-cat-actualites); }
.post-card__category[data-category*="films"] { color: var(--c-cat-films); }
.post-card__category[data-category*="technologie"] { color: var(--c-cat-technologie); }
.post-card__title { font-family: var(--f-heading); font-size: 1.3rem; font-weight: 700; line-height: 1.25; text-transform: uppercase; letter-spacing: -0.5px; margin-bottom: 1rem; flex-grow: 1; }
.post-card__excerpt { color: var(--c-text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.post-card__meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--c-text-muted); margin-top: auto; }
.meta-dot { width: 3px; height: 3px; background: var(--c-text-muted); border-radius: 50%; }

/* --- Content Sidebar --- */
.content-sidebar { position: static; }
.sidebar-module { background-color: var(--c-bg); padding: calc(var(--sp) * 1.5); border-radius: var(--radius); border: 1px solid var(--c-border); }
.sidebar-module__title { font-family: var(--f-heading); font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1.2rem; position: relative; padding-bottom: 0.5rem; }
.sidebar-module__title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; background: var(--c-brand-gradient); }
.recommended-list { display: flex; flex-direction: column; gap: var(--sp); }
.recommended-item { display: flex; gap: var(--sp); align-items: center; padding: var(--sp); border-radius: calc(var(--radius) / 2); transition: background-color var(--trans-fast); }
.recommended-item:hover { background-color: var(--c-surface); }
.recommended-item__image-wrapper { width: 90px; height: 70px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.recommended-item__image { width: 100%; height: 100%; object-fit: cover; transition: transform var(--trans-smooth); }
.recommended-item:hover .recommended-item__image { transform: scale(1.1); }
.recommended-item__content { flex-grow: 1; }
.recommended-item__category { font-family: var(--f-heading); font-size: 0.7rem; text-transform: uppercase; font-weight: 700; color: var(--c-text-muted); margin-bottom: 0.25rem; display: block; }
.recommended-item__title { font-size: 0.95rem; font-weight: 600; line-height: 1.4; }

/* ===================================================================
   5. BÖLÜM: RESPONSIVE DÜZENLEMELER
   =================================================================== */

/* === BÜYÜK EKRANLAR (TABLET ÜSTÜ / DESKTOP) === */
@media (min-width: 1024px) {
    /* === MASAÜSTÜ İÇİN HERO BÖLÜMÜNÜ ORİJİNAL TASARIMA DÖNDÜR === */
    .hero-container {
        display: grid;
        grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
        align-items: start;
        gap: calc(var(--sp) * 2);
        /* Birleşik kart stillerini sıfırla */
        background-color: transparent;
        border: none;
        border-radius: 0;
        animation: none;
    }

    .hero__featured-card {
        animation: fadeInUp 0.8s var(--trans-smooth) both;
    }

    /* Öne çıkan kartı tekrar bağımsız bir kart yap */
    .hero__featured-link {
        border-radius: var(--radius);
        overflow: hidden;
        aspect-ratio: 16 / 10.5;
        background: var(--c-surface);
        border: 1px solid var(--c-border);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    .hero__featured-link:hover {
        transform: translateY(-12px);
        box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    }
    .hero__featured-image-wrapper {
        position: absolute; inset: 0;
    }
    .hero__featured-link:hover .hero__featured-image {
        transform: scale(1.05);
    }
    /* İçeriği tekrar resmin üzerine bindir */
    .hero__featured-content {
        position: absolute; bottom: 0; left: 0; right: 0;
        padding: calc(var(--sp) * 2.5);
        background: linear-gradient(to top, rgba(10,10,11,1) 10%, rgba(10,10,11,0.7) 50%, transparent 100%);
        height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
    }
    .hero__title {
        font-size: clamp(2.2rem, 5vw, 3.5rem);
    }

    /* Kenar çubuğunu tekrar bağımsız bir kart yap */
    .hero__sidebar {
        background: var(--c-surface);
        border-radius: var(--radius);
        border: 1px solid var(--c-border);
        padding: calc(var(--sp) * 1.5);
        height: 100%;
        animation: fadeInUp 0.8s var(--trans-smooth) 0.2s both;
        border-top: 1px solid var(--c-border); /* Mobilden kalan çizgiyi düzeltir */
    }
    .sidebar__title {
        padding-top: 0;
    }
    .sidebar__post-item {
        padding: var(--sp);
        border-radius: calc(var(--radius) / 1.5);
        border-top: none; /* Mobilden kalan çizgiyi kaldır */
    }
    .sidebar__post-item:hover {
        background-color: rgba(255, 255, 255, 0.03);
        opacity: 1; /* Mobil hover efektini sıfırla */
    }

    /* --- Diğer Masaüstü Düzenlemeleri --- */
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .content-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
    .content-sidebar { position: sticky; top: calc(var(--header-h) + var(--sp) * 2); }
    .article-sidebar { position: sticky; }
}

@media (max-width: 992px) {
    /* --- Header & Mobil Menu --- */
    .header-actions, .main-nav { display: none; }
    .mobile-nav-toggle { display: block; }
    .main-nav {
        display: block; position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(10, 10, 11, 0.9); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid var(--c-border); padding: var(--sp) 0;
        opacity: 0; visibility: hidden; transform: translateY(-10px) scale(0.98);
        transform-origin: top center; transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }
    .main-nav ul { flex-direction: column; align-items: center; }
    .nav-link { font-size: 1.25rem; padding: 0.75rem 1.5rem; }
    .nav-link::after, .nav-link::before { left: 50%; transform: translate(-50%, -50%); }
    .site-header.is-menu-open .main-nav { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
    .site-header.is-menu-open .mobile-nav-toggle .line-1 { transform: rotate(45deg) translate(5px, 6px); }
    .site-header.is-menu-open .mobile-nav-toggle .line-2 { opacity: 0; }
    .site-header.is-menu-open .mobile-nav-toggle .line-3 { transform: rotate(-45deg) translate(5px, -6px); }
    /* --- Footer --- */
    .footer__main { grid-template-columns: 1fr; gap: calc(var(--sp) * 3); }
    .footer__brand { align-items: center; text-align: center; }
}

@media (max-width: 768px) {
    :root { --header-h: 60px; }
    .post-grid { grid-template-columns: 1fr; }
    .video-showcase { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .article-container { padding: 2rem 1rem; }
    .article-title { font-size: 2.2rem; letter-spacing: -1px; }
    .article-text { font-size: 1rem; }
    .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .footer__nav { grid-template-columns: 1fr 1fr; }
    .footer__column { margin-bottom: 2rem; }
}

/* Not: Makale sayfası stilleri ve diğer bölümlerin stilleri bu dosyanın devamında yer almalıdır.
   Bu kod bloğu, talep üzerine sadece hero bölümünü yeniden tasarlayıp tüm stilleri eksiksiz olarak sunmaktadır. */