/*
Theme Name: Nexus News
Theme URI: https://nexusnews.com
Author: Nexus News Team
Author URI: https://nexusnews.com
Description: Özgün, modern ve unutulmaz bir haber teması. Koyu tonlar, cesur tipografi ve benzersiz layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexus-news
Tags: news, blog, magazine, dark, modern, responsive
*/

/* ============================================
   NEXUS NEWS - ÖZGÜN HABER TEMASI
   Renk Paleti: Koyu lacivert + Elektrik turuncu
   Fontlar: Space Grotesk (başlık) + Inter (gövde)
   ============================================ */

/* === Google Fonts Import === */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* === CSS Değişkenleri === */
:root {
    /* Ana Renkler */
    --nx-bg-deep:       #0A0E1A;        /* En derin arka plan */
    --nx-bg-dark:       #0F1628;        /* Koyu arka plan */
    --nx-bg-card:       #151D35;        /* Kart arka planı */
    --nx-bg-elevated:   #1A2440;        /* Yükseltilmiş elemanlar */
    --nx-border:        #1E2D4A;        /* Kenarlık */
    --nx-border-light:  #243356;        /* Açık kenarlık */

    /* Vurgu Renkleri */
    --nx-accent:        #FF6B2B;        /* Elektrik turuncu - ana vurgu */
    --nx-accent-hover:  #FF8C55;        /* Turuncu hover */
    --nx-accent-light:  rgba(255,107,43,0.12); /* Turuncu ışıltı */
    --nx-accent2:       #00D4FF;        /* Elektrik mavi - ikincil */
    --nx-accent2-light: rgba(0,212,255,0.10);

    /* Metin Renkleri */
    --nx-text-primary:  #F0F4FF;        /* Ana metin - parlak beyaz-mavi */
    --nx-text-secondary:#A8B5D8;        /* İkincil metin */
    --nx-text-tertiary: #5F718A;        /* Üçüncül metin */
    --nx-text-muted:    #3D5070;        /* Soluk metin */

    /* Tipografi */
    --nx-font-head:     'Space Grotesk', 'Segoe UI', sans-serif;
    --nx-font-body:     'Inter', 'Segoe UI', sans-serif;
    --nx-font-mono:     'Space Mono', 'Courier New', monospace;

    /* Boyutlar */
    --nx-container:     1440px;
    --nx-radius:        4px;
    --nx-radius-lg:     8px;

    /* Boşluklar */
    --nx-gap-xs:    6px;
    --nx-gap-sm:    12px;
    --nx-gap-md:    24px;
    --nx-gap-lg:    40px;
    --nx-gap-xl:    64px;

    /* Gölgeler */
    --nx-shadow:        0 4px 24px rgba(0,0,0,0.4);
    --nx-shadow-card:   0 2px 16px rgba(0,0,0,0.3);
    --nx-glow:          0 0 40px rgba(255,107,43,0.15);

    /* Geçişler */
    --nx-transition:    all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Temel === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden; /* Yatay kayma engelle */
}

body {
    font-family: var(--nx-font-body);
    font-size: 1rem;
    line-height: 1.7;
    background-color: var(--nx-bg-deep);
    color: var(--nx-text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Yatay kayma engelle */
    width: 100%;
    max-width: 100vw;
}

/* === Seçim Rengi === */
::selection {
    background: var(--nx-accent);
    color: #fff;
}

/* === Linkler === */
a {
    color: var(--nx-accent);
    text-decoration: none;
    transition: var(--nx-transition);
}

a:hover {
    color: var(--nx-accent-hover);
}

/* === Görseller === */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Başlıklar === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--nx-font-head);
    font-weight: 700;
    line-height: 1.25;
    color: var(--nx-text-primary);
}

/* === Listeler === */
ul, ol {
    list-style: none;
}

/* ============================================
   LAYOUT - CONTAINER
   ============================================ */
.container {
    max-width: var(--nx-container);
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* ============================================
   HEADER - ÜST BİLGİ
   ============================================ */
.nx-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nx-border);
}

/* Üst Şerit - Tarih & Sosyal */
.nx-topbar {
    background: var(--nx-bg-dark);
    border-bottom: 1px solid var(--nx-border);
    padding: 6px 0;
}

.nx-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--nx-gap-md);
}

.nx-topbar-date {
    font-family: var(--nx-font-mono);
    font-size: 0.72rem;
    color: var(--nx-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nx-topbar-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 0 var(--nx-gap-md);
}

.nx-ticker-label {
    display: inline-block;
    background: var(--nx-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 2px 8px;
    margin-right: 12px;
    vertical-align: middle;
    font-family: var(--nx-font-head);
}

.nx-ticker-text {
    font-size: 0.8rem;
    color: var(--nx-text-secondary);
    white-space: nowrap;
    animation: nx-ticker 30s linear infinite;
    display: inline-block;
}

@keyframes nx-ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.nx-topbar-social {
    display: flex;
    gap: var(--nx-gap-sm);
}

.nx-social-link {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nx-text-tertiary);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius);
    transition: var(--nx-transition);
    font-size: 0.75rem;
}

.nx-social-link:hover {
    color: var(--nx-accent);
    border-color: var(--nx-accent);
    background: var(--nx-accent-light);
}

/* Ana Header İçeriği */
.nx-header-main {
    padding: 16px 0;
}

.nx-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--nx-gap-md);
}

/* Logo */
.nx-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nx-logo img {
    max-height: 48px;
    width: auto;
}

.nx-logo-text {
    font-family: var(--nx-font-head);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--nx-text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.nx-logo-text span {
    color: var(--nx-accent);
}

.nx-logo-tagline {
    font-size: 0.65rem;
    color: var(--nx-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: var(--nx-font-mono);
    display: block;
    margin-top: 2px;
}

/* Header Aksiyonları */
.nx-header-actions {
    display: flex;
    align-items: center;
    gap: var(--nx-gap-sm);
}

.nx-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--nx-border);
    color: var(--nx-text-secondary);
    cursor: pointer;
    border-radius: var(--nx-radius);
    transition: var(--nx-transition);
}

.nx-icon-btn:hover {
    color: var(--nx-accent);
    border-color: var(--nx-accent);
    background: var(--nx-accent-light);
}

.nx-icon-btn svg {
    width: 18px;
    height: 18px;
}

/* CTA Butonu */
.nx-cta-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--nx-accent);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--nx-font-head);
    border: none;
    border-radius: var(--nx-radius);
    cursor: pointer;
    transition: var(--nx-transition);
    text-decoration: none;
    white-space: nowrap;
}

.nx-cta-btn:hover {
    background: var(--nx-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255,107,43,0.35);
}

/* Hamburger Menü */
.nx-hamburger {
    width: 40px;
    height: 40px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius);
    cursor: pointer;
    padding: 8px;
    transition: var(--nx-transition);
}

.nx-hamburger:hover {
    border-color: var(--nx-accent);
    background: var(--nx-accent-light);
}

.nx-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--nx-text-secondary);
    border-radius: 2px;
    transition: var(--nx-transition);
}

@media (max-width: 900px) {
    .nx-hamburger {
        display: flex;
    }
}

/* Navigasyon */
.nx-nav {
    background: var(--nx-bg-dark);
    border-top: 1px solid var(--nx-border);
}

.nx-nav-inner {
    display: flex;
    align-items: stretch;
}

.nx-nav-menu {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.nx-nav-menu li {
    position: relative;
}

.nx-nav-menu > li > a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--nx-font-head);
    color: var(--nx-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: var(--nx-transition);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.nx-nav-menu > li > a:hover,
.nx-nav-menu > li.current-menu-item > a,
.nx-nav-menu > li.current_page_item > a {
    color: var(--nx-accent);
    border-bottom-color: var(--nx-accent);
}

/* Dropdown */
.nx-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--nx-bg-card);
    border: 1px solid var(--nx-border);
    border-top: 2px solid var(--nx-accent);
    box-shadow: var(--nx-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--nx-transition);
    z-index: 100;
    padding: 8px 0;
}

.nx-nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nx-nav-menu .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.82rem;
    color: var(--nx-text-secondary);
    border-left: 2px solid transparent;
    transition: var(--nx-transition);
}

.nx-nav-menu .sub-menu a:hover {
    color: var(--nx-accent);
    border-left-color: var(--nx-accent);
    background: var(--nx-accent-light);
    padding-left: 24px;
}

@media (max-width: 900px) {
    .nx-nav {
        display: none;
    }

    .nx-nav.active {
        display: block;
    }

    .nx-nav-menu {
        flex-direction: column;
    }

    .nx-nav-menu > li > a {
        border-bottom: 1px solid var(--nx-border);
        border-left: none;
        padding: 14px 16px;
    }

    .nx-nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        padding-left: 16px;
        background: transparent;
    }
}

/* Arama Paneli */
.nx-search-panel {
    background: var(--nx-bg-card);
    border-bottom: 1px solid var(--nx-border);
    padding: 20px 0;
    display: none;
    animation: nx-slide-down 0.2s ease;
}

@keyframes nx-slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nx-search-panel.active {
    display: block;
}

.nx-search-form {
    display: flex;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
}

.nx-search-form input {
    flex: 1;
    padding: 14px 20px;
    background: var(--nx-bg-elevated);
    border: 1px solid var(--nx-border);
    border-right: none;
    color: var(--nx-text-primary);
    font-family: var(--nx-font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--nx-transition);
}

.nx-search-form input:focus {
    border-color: var(--nx-accent);
    background: var(--nx-bg-dark);
}

.nx-search-form input::placeholder {
    color: var(--nx-text-muted);
}

.nx-search-form button {
    padding: 14px 24px;
    background: var(--nx-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--nx-font-head);
    transition: var(--nx-transition);
}

.nx-search-form button:hover {
    background: var(--nx-accent-hover);
}

/* ============================================
   OKUMA İLERLEME ÇUBUĞU
   ============================================ */
.nx-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--nx-accent), var(--nx-accent2));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(255,107,43,0.5);
}

/* ============================================
   ANA İÇERİK
   ============================================ */
.nx-main {
    min-height: 70vh;
    padding: var(--nx-gap-lg) 0;
}

/* ============================================
   ANA SAYFA - HERO (MANŞET)
   ============================================ */
.nx-hero {
    margin-bottom: var(--nx-gap-xl);
    position: relative;
}

.nx-hero-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2px;
    background: var(--nx-border);
}

.nx-hero-main {
    position: relative;
    overflow: hidden;
    background: var(--nx-bg-card);
}

/* 16:9 Görsel Oranı */
.nx-hero-img-wrap {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: var(--nx-bg-elevated);
}

.nx-hero-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.nx-hero-main:hover .nx-hero-img-wrap img {
    transform: scale(1.03);
}

.nx-hero-content {
    padding: var(--nx-gap-md) var(--nx-gap-lg) var(--nx-gap-lg);
    position: relative;
}

/* Köşe dekoru */
.nx-hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--nx-gap-lg);
    width: 40px;
    height: 3px;
    background: var(--nx-accent);
}

.nx-hero-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--nx-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 12px;
    margin-bottom: var(--nx-gap-sm);
    font-family: var(--nx-font-head);
}

.nx-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--nx-gap-sm);
    color: var(--nx-text-primary);
}

.nx-hero-title a {
    color: inherit;
}

.nx-hero-title a:hover {
    color: var(--nx-accent);
}

.nx-hero-excerpt {
    color: var(--nx-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--nx-gap-md);
}

.nx-hero-meta {
    display: flex;
    align-items: center;
    gap: var(--nx-gap-md);
    font-size: 0.78rem;
    color: var(--nx-text-tertiary);
    font-family: var(--nx-font-mono);
}

.nx-hero-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nx-hero-meta svg {
    width: 13px;
    height: 13px;
    opacity: 0.7;
}

/* Hero Yan Panel */
.nx-hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--nx-border);
}

.nx-hero-side-item {
    flex: 1;
    background: var(--nx-bg-card);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.nx-hero-side-item .nx-side-img {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    flex-shrink: 0;
}

.nx-hero-side-item .nx-side-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nx-hero-side-item:hover .nx-side-img img {
    transform: scale(1.05);
}

.nx-hero-side-content {
    padding: 14px 16px;
    flex: 1;
}

.nx-hero-side-cat {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nx-accent);
    font-family: var(--nx-font-head);
    margin-bottom: 6px;
    display: block;
}

.nx-hero-side-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--nx-text-primary);
    display: block;
}

.nx-hero-side-title:hover {
    color: var(--nx-accent);
}

.nx-hero-side-time {
    font-size: 0.72rem;
    color: var(--nx-text-muted);
    font-family: var(--nx-font-mono);
    margin-top: 8px;
    display: block;
}

@media (max-width: 1100px) {
    .nx-hero-inner {
        grid-template-columns: 1fr;
    }
    
    .nx-hero-sidebar {
        flex-direction: row;
    }
    
    .nx-hero-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 700px) {
    .nx-hero-sidebar {
        flex-direction: column;
    }
    
    .nx-hero-title {
        font-size: 1.4rem;
    }
}

/* ============================================
   KATEGORİ ETİKETİ ŞERT
   ============================================ */
.nx-section-label {
    display: flex;
    align-items: center;
    gap: var(--nx-gap-md);
    margin-bottom: var(--nx-gap-lg);
}

.nx-section-title {
    font-family: var(--nx-font-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--nx-text-tertiary);
    white-space: nowrap;
}

.nx-section-line {
    flex: 1;
    height: 1px;
    background: var(--nx-border);
    position: relative;
}

.nx-section-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    width: 60px;
    height: 3px;
    background: var(--nx-accent);
}

/* ============================================
   HABER KART IZGARASI
   ============================================ */
.nx-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--nx-border);
    margin-bottom: 2px;
}

/* 4'lü ızgara (opsiyonel) */
.nx-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Liste görünümü */
.nx-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--nx-border);
}

@media (max-width: 1100px) {
    .nx-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nx-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .nx-grid, .nx-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HABER KARTI
   ============================================ */
.nx-card {
    background: var(--nx-bg-card);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--nx-transition);
    position: relative;
}

.nx-card:hover {
    background: var(--nx-bg-elevated);
}

/* Kart Görsel - 16:9 */
.nx-card-img {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: var(--nx-bg-elevated);
    flex-shrink: 0;
}

.nx-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.nx-card-img a {
    position: absolute;
    inset: 0;
    display: block;
}

/* Kart Numara Rozeti */
.nx-card-num {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background: var(--nx-bg-deep);
    color: var(--nx-accent);
    font-family: var(--nx-font-head);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 1px solid var(--nx-accent);
}

/* Kart İçerik */
.nx-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.nx-card-cat {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nx-accent);
    font-family: var(--nx-font-head);
}

.nx-card-cat a {
    color: inherit;
}

.nx-card-cat a:hover {
    color: var(--nx-accent-hover);
}

.nx-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--nx-text-primary);
}

.nx-card-title a {
    color: inherit;
}

.nx-card-title a:hover {
    color: var(--nx-accent);
}

.nx-card-excerpt {
    font-size: 0.85rem;
    color: var(--nx-text-secondary);
    line-height: 1.65;
    flex: 1;
}

.nx-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--nx-border);
    font-size: 0.72rem;
    color: var(--nx-text-tertiary);
    font-family: var(--nx-font-mono);
    gap: var(--nx-gap-sm);
}

.nx-card-meta-left {
    display: flex;
    align-items: center;
    gap: var(--nx-gap-sm);
}

.nx-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nx-card-meta svg {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

/* ============================================
   LİSTE KARTI (Yatay)
   ============================================ */
.nx-list-card {
    background: var(--nx-bg-card);
    display: grid;
    grid-template-columns: 280px 1fr;
    overflow: hidden;
    transition: var(--nx-transition);
}

.nx-list-card:hover {
    background: var(--nx-bg-elevated);
}

.nx-list-card .nx-card-img {
    padding-bottom: 0;
    position: relative;
    height: 160px;
}

.nx-list-card .nx-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nx-list-card .nx-card-body {
    padding: 16px 20px;
}

.nx-list-card .nx-card-title {
    font-size: 1.05rem;
}

@media (max-width: 600px) {
    .nx-list-card {
        grid-template-columns: 1fr;
    }
    
    .nx-list-card .nx-card-img {
        height: auto;
        padding-bottom: 56.25%;
    }
}

/* ============================================
   İÇERİK + SIDEBAR DÜZENI
   ============================================ */
.nx-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--nx-gap-lg);
    align-items: start;
}

@media (max-width: 1000px) {
    .nx-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SIDEBAR
   ============================================ */
.nx-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: var(--nx-gap-lg);
}

.nx-widget {
    background: var(--nx-bg-card);
    border: 1px solid var(--nx-border);
    overflow: hidden;
}

.nx-widget-head {
    padding: 14px 20px;
    border-bottom: 1px solid var(--nx-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nx-widget-head::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--nx-accent);
    display: block;
    flex-shrink: 0;
}

.nx-widget-title {
    font-family: var(--nx-font-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nx-text-primary);
    margin: 0;
}

.nx-widget-body {
    padding: 16px 20px;
}

/* Widget Haber Listesi */
.nx-widget-posts {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nx-widget-post {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--nx-border);
    transition: var(--nx-transition);
}

.nx-widget-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nx-widget-post:first-child {
    padding-top: 0;
}

.nx-widget-post-img {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: var(--nx-bg-elevated);
}

.nx-widget-post-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nx-widget-post:hover .nx-widget-post-img img {
    transform: scale(1.06);
}

.nx-widget-post-cat {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nx-accent);
    font-family: var(--nx-font-head);
    margin-bottom: 4px;
    display: block;
}

.nx-widget-post-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--nx-text-primary);
    display: block;
}

.nx-widget-post-title:hover {
    color: var(--nx-accent);
}

.nx-widget-post-time {
    font-size: 0.68rem;
    color: var(--nx-text-muted);
    font-family: var(--nx-font-mono);
    margin-top: 5px;
    display: block;
}

/* ============================================
   TEKİL SAYFA (SINGLE POST)
   ============================================ */
.nx-single {
    max-width: 100%;
}

.nx-single-header {
    margin-bottom: var(--nx-gap-lg);
}

.nx-single-cats {
    display: flex;
    gap: var(--nx-gap-xs);
    margin-bottom: var(--nx-gap-sm);
    flex-wrap: wrap;
}

.nx-cat-badge {
    display: inline-flex;
    align-items: center;
    background: var(--nx-accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    font-family: var(--nx-font-head);
    transition: var(--nx-transition);
}

.nx-cat-badge:hover {
    background: var(--nx-accent-hover);
    color: #fff;
}

.nx-cat-badge.secondary {
    background: transparent;
    border: 1px solid var(--nx-border);
    color: var(--nx-text-secondary);
}

.nx-cat-badge.secondary:hover {
    border-color: var(--nx-accent);
    color: var(--nx-accent);
}

.nx-single-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--nx-text-primary);
    margin-bottom: var(--nx-gap-md);
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .nx-single-title {
        font-size: 1.7rem;
    }
}

.nx-single-meta {
    display: flex;
    align-items: center;
    gap: var(--nx-gap-md);
    padding: var(--nx-gap-sm) 0;
    border-top: 1px solid var(--nx-border);
    border-bottom: 1px solid var(--nx-border);
    margin-bottom: var(--nx-gap-lg);
    font-size: 0.8rem;
    color: var(--nx-text-tertiary);
    font-family: var(--nx-font-mono);
    flex-wrap: wrap;
    gap: var(--nx-gap-sm);
}

.nx-single-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nx-single-meta svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.nx-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--nx-border);
}

/* Öne Çıkan Görsel - Tekil */
.nx-single-featured {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: var(--nx-bg-elevated);
    margin-bottom: var(--nx-gap-lg);
}

.nx-single-featured img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nx-single-featured figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10,14,26,0.8));
    padding: 20px 16px 10px;
    font-size: 0.75rem;
    color: var(--nx-text-secondary);
    font-style: italic;
}

/* Makale İçeriği */
.nx-article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--nx-text-primary);
}

.nx-article-content p {
    margin-bottom: 1.5em;
}

.nx-article-content h2 {
    font-size: 1.6rem;
    margin: 2.5em 0 0.8em;
    color: var(--nx-text-primary);
    padding-bottom: 0.4em;
    border-bottom: 2px solid var(--nx-border);
}

.nx-article-content h2::before {
    content: '// ';
    color: var(--nx-accent);
    font-family: var(--nx-font-mono);
}

.nx-article-content h3 {
    font-size: 1.3rem;
    margin: 2em 0 0.7em;
}

.nx-article-content h4 {
    font-size: 1.1rem;
    margin: 1.5em 0 0.6em;
    color: var(--nx-accent);
}

.nx-article-content a {
    color: var(--nx-accent2);
    border-bottom: 1px solid rgba(0,212,255,0.3);
}

.nx-article-content a:hover {
    color: var(--nx-accent2);
    border-bottom-color: var(--nx-accent2);
}

.nx-article-content blockquote {
    border-left: 3px solid var(--nx-accent);
    padding: 20px 24px;
    margin: 2em 0;
    background: var(--nx-bg-card);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--nx-text-secondary);
    position: relative;
}

.nx-article-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--nx-accent);
    opacity: 0.3;
    line-height: 1;
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: Georgia, serif;
}

.nx-article-content ul,
.nx-article-content ol {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5em;
}

.nx-article-content ul li,
.nx-article-content ol li {
    padding: 8px 0 8px 24px;
    position: relative;
    border-bottom: 1px solid var(--nx-border);
    color: var(--nx-text-secondary);
}

.nx-article-content ul li::before {
    content: '▸';
    color: var(--nx-accent);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

.nx-article-content ol {
    counter-reset: nx-counter;
}

.nx-article-content ol li {
    counter-increment: nx-counter;
}

.nx-article-content ol li::before {
    content: counter(nx-counter, decimal-leading-zero);
    color: var(--nx-accent);
    position: absolute;
    left: 0;
    font-family: var(--nx-font-mono);
    font-size: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

.nx-article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
}

.nx-article-content figure {
    margin: 2em 0;
}

.nx-article-content figcaption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--nx-text-tertiary);
    margin-top: 8px;
    font-style: italic;
}

.nx-article-content pre,
.nx-article-content code {
    font-family: var(--nx-font-mono);
    font-size: 0.88rem;
}

.nx-article-content pre {
    background: var(--nx-bg-card);
    border: 1px solid var(--nx-border);
    border-left: 3px solid var(--nx-accent2);
    padding: 20px;
    overflow-x: auto;
    margin: 1.5em 0;
    line-height: 1.6;
    color: var(--nx-accent2);
}

.nx-article-content code {
    background: var(--nx-bg-card);
    padding: 2px 6px;
    color: var(--nx-accent);
    border: 1px solid var(--nx-border);
}

.nx-article-content pre code {
    background: none;
    padding: 0;
    border: none;
    color: inherit;
}

/* ============================================
   ETİKETLER
   ============================================ */
.nx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: var(--nx-gap-lg) 0;
    padding: var(--nx-gap-md) 0;
    border-top: 1px solid var(--nx-border);
}

.nx-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: var(--nx-bg-elevated);
    border: 1px solid var(--nx-border);
    color: var(--nx-text-secondary);
    font-size: 0.75rem;
    font-family: var(--nx-font-mono);
    transition: var(--nx-transition);
}

.nx-tag::before {
    content: '#';
    color: var(--nx-accent);
    margin-right: 2px;
}

.nx-tag:hover {
    border-color: var(--nx-accent);
    color: var(--nx-accent);
    background: var(--nx-accent-light);
}

/* ============================================
   PAYLAŞIM BUTONLARI
   ============================================ */
.nx-share {
    display: flex;
    align-items: center;
    gap: var(--nx-gap-sm);
    flex-wrap: wrap;
    padding: var(--nx-gap-md) 0;
    border-bottom: 1px solid var(--nx-border);
    margin-bottom: var(--nx-gap-lg);
}

.nx-share-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--nx-text-tertiary);
    font-family: var(--nx-font-head);
}

.nx-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--nx-radius);
    cursor: pointer;
    transition: var(--nx-transition);
    text-decoration: none;
    border: none;
    font-family: var(--nx-font-head);
}

.nx-share-btn svg {
    width: 14px;
    height: 14px;
}

.nx-share-btn.twitter {
    background: #1DA1F2;
    color: #fff;
}

.nx-share-btn.twitter:hover {
    background: #0d8bd0;
    color: #fff;
}

.nx-share-btn.facebook {
    background: #1877F2;
    color: #fff;
}

.nx-share-btn.facebook:hover {
    background: #0d63d0;
    color: #fff;
}

.nx-share-btn.whatsapp {
    background: #25D366;
    color: #fff;
}

.nx-share-btn.whatsapp:hover {
    background: #1ab850;
    color: #fff;
}

.nx-share-btn.copy {
    background: var(--nx-bg-elevated);
    color: var(--nx-text-secondary);
    border: 1px solid var(--nx-border);
}

.nx-share-btn.copy:hover {
    border-color: var(--nx-accent);
    color: var(--nx-accent);
}

/* ============================================
   YAZAR KUTUSU
   ============================================ */
.nx-author-box {
    background: var(--nx-bg-card);
    border: 1px solid var(--nx-border);
    padding: var(--nx-gap-md);
    display: flex;
    gap: var(--nx-gap-md);
    margin: var(--nx-gap-lg) 0;
    position: relative;
}

.nx-author-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--nx-accent), var(--nx-accent2));
}

.nx-author-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--nx-border);
    flex-shrink: 0;
}

.nx-author-info-name {
    font-family: var(--nx-font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--nx-text-primary);
    margin-bottom: 4px;
}

.nx-author-info-role {
    font-size: 0.72rem;
    color: var(--nx-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--nx-font-mono);
    margin-bottom: 8px;
}

.nx-author-info-bio {
    font-size: 0.88rem;
    color: var(--nx-text-secondary);
    line-height: 1.6;
}

/* ============================================
   İLGİLİ HABERLER
   ============================================ */
.nx-related {
    margin-top: var(--nx-gap-xl);
}

/* ============================================
   YORUMLAR
   ============================================ */
.nx-comments {
    margin-top: var(--nx-gap-xl);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list li {
    margin-bottom: var(--nx-gap-md);
}

.comment-body {
    background: var(--nx-bg-card);
    border: 1px solid var(--nx-border);
    padding: var(--nx-gap-md);
    position: relative;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: var(--nx-gap-sm);
    margin-bottom: var(--nx-gap-sm);
    font-size: 0.8rem;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--nx-text-primary);
    font-family: var(--nx-font-head);
}

.comment-date {
    color: var(--nx-text-muted);
    font-family: var(--nx-font-mono);
    font-size: 0.72rem;
}

.comment-content {
    font-size: 0.9rem;
    color: var(--nx-text-secondary);
    line-height: 1.7;
}

.reply a {
    font-size: 0.75rem;
    color: var(--nx-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--nx-font-mono);
}

.comment-respond {
    margin-top: var(--nx-gap-lg);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--nx-bg-card);
    border: 1px solid var(--nx-border);
    color: var(--nx-text-primary);
    font-family: var(--nx-font-body);
    font-size: 0.9rem;
    outline: none;
    margin-bottom: var(--nx-gap-sm);
    transition: var(--nx-transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--nx-accent);
    background: var(--nx-bg-elevated);
}

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

.comment-form input[type="submit"] {
    width: auto;
    background: var(--nx-accent);
    color: #fff;
    font-weight: 600;
    font-family: var(--nx-font-head);
    cursor: pointer;
    padding: 12px 32px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.comment-form input[type="submit"]:hover {
    background: var(--nx-accent-hover);
}

/* ============================================
   SAYFALAMA
   ============================================ */
.nx-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: var(--nx-gap-lg) 0;
}

.nx-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nx-bg-card);
    border: 1px solid var(--nx-border);
    color: var(--nx-text-secondary);
    font-size: 0.85rem;
    font-family: var(--nx-font-mono);
    transition: var(--nx-transition);
    text-decoration: none;
}

.nx-pagination .page-numbers:hover,
.nx-pagination .page-numbers.current {
    background: var(--nx-accent);
    border-color: var(--nx-accent);
    color: #fff;
}

.nx-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

/* ============================================
   404 SAYFASI
   ============================================ */
.nx-404 {
    text-align: center;
    padding: var(--nx-gap-xl) var(--nx-gap-md);
}

.nx-404-code {
    font-family: var(--nx-font-head);
    font-size: 8rem;
    font-weight: 700;
    color: var(--nx-accent);
    line-height: 1;
    opacity: 0.3;
    margin-bottom: var(--nx-gap-md);
}

.nx-404-title {
    font-size: 1.5rem;
    margin-bottom: var(--nx-gap-sm);
    color: var(--nx-text-primary);
}

.nx-404-text {
    color: var(--nx-text-secondary);
    margin-bottom: var(--nx-gap-lg);
}

/* ============================================
   ARAMA SAYFASI
   ============================================ */
.nx-search-header {
    padding: var(--nx-gap-lg) 0;
    border-bottom: 1px solid var(--nx-border);
    margin-bottom: var(--nx-gap-lg);
}

.nx-search-query {
    font-size: 0.85rem;
    color: var(--nx-text-tertiary);
    font-family: var(--nx-font-mono);
    margin-bottom: var(--nx-gap-sm);
}

.nx-search-query span {
    color: var(--nx-accent);
}

.nx-search-count {
    font-size: 0.78rem;
    color: var(--nx-text-muted);
    font-family: var(--nx-font-mono);
}

/* ============================================
   FOOTER - ALT BİLGİ
   ============================================ */
.nx-footer {
    background: var(--nx-bg-dark);
    border-top: 1px solid var(--nx-border);
    margin-top: var(--nx-gap-xl);
}

.nx-footer-main {
    padding: var(--nx-gap-xl) 0;
    display: grid;
    grid-template-columns: 320px 1fr 1fr 1fr;
    gap: var(--nx-gap-xl);
}

@media (max-width: 1100px) {
    .nx-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: var(--nx-gap-lg);
    }
}

@media (max-width: 600px) {
    .nx-footer-main {
        grid-template-columns: 1fr;
    }
}

.nx-footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--nx-gap-sm);
}

.nx-footer-logo {
    font-family: var(--nx-font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nx-text-primary);
    text-decoration: none;
}

.nx-footer-logo span {
    color: var(--nx-accent);
}

.nx-footer-tagline {
    font-size: 0.82rem;
    color: var(--nx-text-tertiary);
    line-height: 1.6;
}

.nx-footer-social {
    display: flex;
    gap: var(--nx-gap-xs);
    margin-top: var(--nx-gap-sm);
}

.nx-footer-col-title {
    font-family: var(--nx-font-head);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nx-text-primary);
    margin-bottom: var(--nx-gap-md);
    padding-bottom: var(--nx-gap-sm);
    border-bottom: 2px solid var(--nx-border);
    position: relative;
}

.nx-footer-col-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--nx-accent);
}

.nx-footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nx-footer-links a {
    font-size: 0.85rem;
    color: var(--nx-text-tertiary);
    transition: var(--nx-transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nx-footer-links a::before {
    content: '→';
    color: var(--nx-accent);
    font-size: 0.75rem;
    transition: var(--nx-transition);
}

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

/* Footer Alt Çizgi */
.nx-footer-bottom {
    border-top: 1px solid var(--nx-border);
    padding: var(--nx-gap-md) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--nx-gap-md);
    flex-wrap: wrap;
}

.nx-footer-copyright {
    font-size: 0.78rem;
    color: var(--nx-text-muted);
    font-family: var(--nx-font-mono);
}

.nx-footer-bottom-links {
    display: flex;
    gap: var(--nx-gap-md);
}

.nx-footer-bottom-links a {
    font-size: 0.78rem;
    color: var(--nx-text-muted);
    font-family: var(--nx-font-mono);
    transition: var(--nx-transition);
}

.nx-footer-bottom-links a:hover {
    color: var(--nx-accent);
}

/* ============================================
   YUKARIYA ÇIK
   ============================================ */
.nx-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--nx-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--nx-transition);
    box-shadow: 0 4px 20px rgba(255,107,43,0.4);
}

.nx-back-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.nx-back-top:hover {
    background: var(--nx-accent-hover);
    transform: translateY(-3px);
}

.nx-back-top svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   MOBIL OVERLAY
   ============================================ */
.nx-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--nx-transition);
    backdrop-filter: blur(4px);
}

.nx-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   WORDPRES VARSAYILAN BLOKLARI
   ============================================ */
.wp-block-image {
    margin: 2em 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.wp-block-image figcaption {
    font-size: 0.78rem;
    color: var(--nx-text-tertiary);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.wp-block-quote {
    border-left: 3px solid var(--nx-accent);
    padding: 20px 24px;
    margin: 2em 0;
    background: var(--nx-bg-card);
    font-style: italic;
    color: var(--nx-text-secondary);
}

.wp-block-separator {
    border: none;
    border-top: 1px solid var(--nx-border);
    margin: 3em 0;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

.alignwide {
    margin-left: -80px;
    margin-right: -80px;
}

@media (max-width: 768px) {
    .alignwide {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ============================================
   LOADING EFEKTI
   ============================================ */
@keyframes nx-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.nx-skeleton {
    background: var(--nx-bg-elevated);
    animation: nx-pulse 1.5s ease infinite;
}

/* ============================================
   ÖZEL SAYFA (PAGE.PHP)
   ============================================ */
.nx-page-header {
    padding: var(--nx-gap-xl) 0 var(--nx-gap-lg);
    border-bottom: 2px solid var(--nx-border);
    margin-bottom: var(--nx-gap-xl);
    position: relative;
}

.nx-page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--nx-accent);
}

.nx-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--nx-text-primary);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.nx-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--nx-transition);
}

.nx-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.nx-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 80px rgba(0,0,0,0.8);
}

.nx-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: var(--nx-radius);
    transition: var(--nx-transition);
}

.nx-lightbox-close:hover {
    background: var(--nx-accent);
    border-color: var(--nx-accent);
}

/* ============================================
   UTILITY SINIFLAR
   ============================================ */
.nx-hidden { display: none !important; }
.nx-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================
   WP ALIGN
   ============================================ */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignright { float: right; margin-left: 20px; }
.alignleft { float: left; margin-right: 20px; }

/* ============================================
   STICKY
   ============================================ */
.sticky .nx-card-body::before {
    content: '📌 SABIT';
    font-size: 0.62rem;
    background: var(--nx-accent2);
    color: #fff;
    padding: 2px 8px;
    font-family: var(--nx-font-mono);
    letter-spacing: 0.08em;
    display: inline-block;
    margin-bottom: 6px;
}

/* ============================================
   SONSUZ KAYDIRMA (INFINITE SCROLL)
   ============================================ */

/* Ana sarmalayıcı - sidebar yok, tam genişlik ortalanmış */
.nx-infinite-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px var(--nx-gap-xl);
}

/* Her haber arasındaki ayırıcı çizgi */
.nx-infinite-separator {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: var(--nx-gap-xl) 0 var(--nx-gap-lg);
    padding-top: var(--nx-gap-xl);
    border-top: 2px solid var(--nx-border);
}

.nx-infinite-separator span {
    font-family: var(--nx-font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nx-accent);
    background: var(--nx-bg-deep);
    padding: 4px 12px;
    border: 1px solid var(--nx-accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.nx-infinite-separator::before,
.nx-infinite-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--nx-border);
}

/* YÜKLENİYOR */
#nx-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    gap: 8px;
}

.nx-loader-inner {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nx-loader-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--nx-accent);
    animation: nx-bounce 1.2s ease-in-out infinite;
}

.nx-loader-dot:nth-child(2) { animation-delay: 0.2s; }
.nx-loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes nx-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%            { transform: scale(1);   opacity: 1; }
}

/* AKIŞ BİTTİ */
#nx-feed-end {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 0 48px;
}

#nx-feed-end span {
    font-family: var(--nx-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nx-text-tertiary);
    padding: 8px 20px;
    border: 1px solid var(--nx-border);
}

/* Sentinel - görünmez tetikleyici */
#nx-sentinel {
    height: 1px;
    width: 100%;
}

/* Tekil haber - sonsuz kaydırmada tam genişlik */
.nx-single-post-item {
    width: 100%;
}

/* Görseller sonsuz akışta da tam genişlik */
.nx-single-post-item .nx-single-featured {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--nx-radius-lg);
    margin: var(--nx-gap-md) 0 var(--nx-gap-lg);
}

.nx-single-post-item .nx-single-featured img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* İçerik alanı sonsuz akışta */
.nx-single-post-item .nx-article-content {
    padding-top: var(--nx-gap-sm);
}

/* Etiketler sonsuz akışta */
.nx-single-post-item .nx-tags {
    margin-top: var(--nx-gap-md);
    padding-top: var(--nx-gap-md);
    border-top: 1px solid var(--nx-border);
}

/* Mobil - sonsuz kaydırma */
@media (max-width: 600px) {
    .nx-infinite-wrap {
        padding: 0 12px var(--nx-gap-lg);
    }

    .nx-infinite-separator {
        margin: var(--nx-gap-lg) 0 var(--nx-gap-md);
        padding-top: var(--nx-gap-lg);
    }
}

/* ============================================
   TAŞMA ÖNLEME - TÜM ELEMANLAR
   ============================================ */
#nx-wrapper,
.nx-header,
.nx-main,
.nx-footer,
.nx-topbar,
.nx-nav,
.nx-hero,
.nx-homepage {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ticket overflow fix */
.nx-topbar-ticker {
    overflow: hidden;
    max-width: calc(100vw - 400px);
}

/* alignwide/alignfull override - mobilde taşma engelle */
.alignwide {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

.alignfull {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* ============================================
   RESPONSIVE - BÜYÜK EKRAN (1200px+)
   ============================================ */
@media (min-width: 1200px) {
    .nx-hero-title {
        font-size: 2.4rem;
    }
}

/* ============================================
   RESPONSIVE - ORTA EKRAN (768px - 1100px)
   ============================================ */
@media (max-width: 1100px) {
    :root {
        --nx-gap-xl: 48px;
        --nx-gap-lg: 32px;
    }

    .nx-topbar-ticker {
        max-width: calc(100vw - 300px);
    }

    .nx-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: var(--nx-gap-lg);
    }

    .nx-layout {
        grid-template-columns: 1fr;
    }

    .nx-sidebar {
        position: static;
    }
}

/* ============================================
   RESPONSIVE - TABLET (768px)
   ============================================ */
@media (max-width: 900px) {

    :root {
        --nx-gap-xl: 40px;
        --nx-gap-lg: 28px;
        --nx-gap-md: 20px;
    }

    /* Topbar sadeleştir */
    .nx-topbar-ticker {
        display: none;
    }

    .nx-topbar-date {
        font-size: 0.68rem;
    }

    .nx-topbar-social {
        gap: 4px;
    }

    /* Header */
    .nx-header-main {
        padding: 12px 0;
    }

    .nx-logo-text {
        font-size: 1.4rem;
    }

    .nx-logo-tagline {
        display: none;
    }

    .nx-cta-btn {
        display: none !important;
    }

    /* Hero */
    .nx-hero-inner {
        grid-template-columns: 1fr;
    }

    .nx-hero-sidebar {
        flex-direction: row;
    }

    .nx-hero-title {
        font-size: 1.5rem;
    }

    .nx-hero-content {
        padding: var(--nx-gap-sm) var(--nx-gap-md) var(--nx-gap-md);
    }

    /* Grid */
    .nx-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nx-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* List card */
    .nx-list-card {
        grid-template-columns: 180px 1fr;
    }

    .nx-list-card .nx-card-img {
        height: 120px;
    }

    /* Single */
    .nx-single-title {
        font-size: 1.7rem;
    }

    .nx-single-meta {
        gap: 8px;
    }

    /* Footer */
    .nx-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: var(--nx-gap-md);
        padding: var(--nx-gap-lg) 0;
    }

    /* Pagination */
    .nx-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    /* Author box */
    .nx-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ============================================
   RESPONSIVE - MOBİL (480px)
   ============================================ */
@media (max-width: 600px) {

    :root {
        --nx-gap-xl: 32px;
        --nx-gap-lg: 24px;
        --nx-gap-md: 16px;
        --nx-gap-sm: 10px;
    }

    /* Container daha az padding */
    .container {
        padding: 0 12px;
    }

    /* Topbar */
    .nx-topbar-inner {
        justify-content: space-between;
    }

    .nx-topbar-social {
        gap: 3px;
    }

    .nx-social-link {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }

    /* Header */
    .nx-logo-text {
        font-size: 1.25rem;
    }

    .nx-icon-btn {
        width: 36px;
        height: 36px;
    }

    .nx-hamburger {
        width: 36px;
        height: 36px;
    }

    /* Hero */
    .nx-hero-inner {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    .nx-hero-sidebar {
        flex-direction: column;
        gap: 1px;
    }

    .nx-hero-title {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .nx-hero-excerpt {
        display: none; /* Mobilde kısa tut */
    }

    .nx-hero-meta {
        gap: 8px;
        flex-wrap: wrap;
        font-size: 0.68rem;
    }

    /* Section label */
    .nx-section-title {
        font-size: 0.7rem;
    }

    /* Grid - tek sütun */
    .nx-grid {
        grid-template-columns: 1fr;
    }

    .nx-grid-4 {
        grid-template-columns: 1fr;
    }

    /* List card - dikey */
    .nx-list-card {
        grid-template-columns: 1fr;
    }

    .nx-list-card .nx-card-img {
        padding-bottom: 56.25%;
        height: auto;
    }

    .nx-list-card .nx-card-img img {
        position: absolute;
    }

    /* Card */
    .nx-card-title {
        font-size: 0.95rem;
    }

    .nx-card-excerpt {
        display: none; /* Mobilde özet gizle */
    }

    .nx-card-meta {
        font-size: 0.68rem;
    }

    /* Single post */
    .nx-single-title {
        font-size: 1.4rem;
        letter-spacing: -0.01em;
    }

    .nx-single-meta {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 0.7rem;
    }

    .nx-single-meta .nx-author-avatar {
        display: none;
    }

    .nx-article-content {
        font-size: 0.97rem;
    }

    .nx-article-content h2 {
        font-size: 1.25rem;
    }

    .nx-article-content h3 {
        font-size: 1.1rem;
    }

    /* Share butonları */
    .nx-share {
        flex-wrap: wrap;
        gap: 6px;
    }

    .nx-share-btn {
        font-size: 0.72rem;
        padding: 6px 10px;
    }

    /* Tags */
    .nx-tag {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    /* Page title */
    .nx-page-title {
        font-size: 1.7rem;
    }

    /* 404 */
    .nx-404-code {
        font-size: 5rem;
    }

    /* Footer */
    .nx-footer-main {
        grid-template-columns: 1fr;
        gap: var(--nx-gap-lg);
    }

    .nx-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Sidebar */
    .nx-sidebar {
        position: static;
    }

    /* Pagination */
    .nx-pagination {
        gap: 2px;
    }

    .nx-pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    /* Back to top */
    .nx-back-top {
        bottom: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
    }

    /* Nav menu */
    .nx-nav-menu > li > a {
        padding: 12px 16px;
        font-size: 0.82rem;
    }

    /* Widget */
    .nx-widget-post {
        grid-template-columns: 70px 1fr;
        gap: 8px;
    }

    /* Hero side item */
    .nx-hero-side-title {
        font-size: 0.88rem;
    }

    /* Author box */
    .nx-author-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nx-author-pic {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   RESPONSIVE - ÇOK KÜÇÜK MOBİL (360px)
   ============================================ */
@media (max-width: 360px) {
    :root {
        --nx-gap-md: 12px;
    }

    .container {
        padding: 0 10px;
    }

    .nx-logo-text {
        font-size: 1.1rem;
    }

    .nx-single-title {
        font-size: 1.2rem;
    }

    .nx-hero-title {
        font-size: 1.1rem;
    }

    .nx-topbar-social {
        display: none;
    }
}
