/* ==========================================================================
   TUFI MOR HABER - TASARIM SİSTEMİ & CSS STİLLERİ
   ========================================================================== */

/* 1. THEME VARIABLES (CSS CUSTOM PROPERTIES) */
:root, [data-theme="royal-purple"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #ffffff;
    
    /* Mor Vurgular (Signature Purple) */
    --brand-purple: #581c87;
    --brand-purple-light: #7e22ce;
    --brand-purple-dark: #3b0764;
    --accent-purple: #9333ea;
    --accent-glow: rgba(147, 51, 234, 0.15);
    
    --topbar-bg: #4c1d95;
    --topbar-text: #f3e8ff;
    --nav-bg: #581c87;
    --nav-hover: #6b21a8;
    --nav-active-border: #d8b4fe;
    
    --border-color: #e2e8f0;
    --border-purple: #d8b4fe;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(88, 28, 135, 0.08);
    --shadow-lg: 0 10px 25px rgba(88, 28, 135, 0.15);
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    --ticker-bg: #fae8ff;
    --ticker-badge: #7e22ce;
    --badge-text: #ffffff;
    
    --icon-filter: brightness(0) opacity(0.85);

    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Theme 2: Gece Moru (Velvet Dark) */
[data-theme="velvet-dark"] {
    --bg-primary: #0b0712;
    --bg-secondary: #130c21;
    --bg-card: #181029;
    --bg-hover: #22173a;
    
    --text-primary: #f3e8ff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #ffffff;
    
    --brand-purple: #a855f7;
    --brand-purple-light: #c084fc;
    --brand-purple-dark: #6b21a8;
    --accent-purple: #c084fc;
    --accent-glow: rgba(192, 132, 252, 0.25);
    
    --topbar-bg: #15092b;
    --topbar-text: #e9d5ff;
    --nav-bg: #1e103b;
    --nav-hover: #2e1757;
    --nav-active-border: #c084fc;
    
    --border-color: #2a1b4e;
    --border-purple: #6b21a8;
    
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 30px rgba(168, 85, 247, 0.15);
    
    --glass-bg: rgba(24, 16, 41, 0.85);
    --glass-border: rgba(168, 85, 247, 0.2);
    
    --ticker-bg: #271442;
    --ticker-badge: #a855f7;
    --badge-text: #0b0712;

    --icon-filter: brightness(0) invert(1);
}

/* Theme 3: Siber Amethist (Cyber Amoled) */
[data-theme="cyber-amethyst"] {
    --bg-primary: #030206;
    --bg-secondary: #0a0512;
    --bg-card: #0f071a;
    --bg-hover: #1c0e30;
    
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #a1a1aa;
    --text-light: #ffffff;
    
    --brand-purple: #e879f9;
    --brand-purple-light: #f0abfc;
    --brand-purple-dark: #a21caf;
    --accent-purple: #f0abfc;
    --accent-glow: rgba(240, 171, 252, 0.35);
    
    --topbar-bg: #000000;
    --topbar-text: #f5d0fe;
    --nav-bg: #120324;
    --nav-hover: #270747;
    --nav-active-border: #f0abfc;
    
    --border-color: #3b0764;
    --border-purple: #e879f9;
    
    --shadow-sm: 0 0 10px rgba(232, 121, 249, 0.1);
    --shadow-md: 0 0 20px rgba(232, 121, 249, 0.2);
    --shadow-lg: 0 0 35px rgba(240, 171, 252, 0.3);
    
    --glass-bg: rgba(15, 7, 26, 0.9);
    --glass-border: rgba(240, 171, 252, 0.3);
    
    --ticker-bg: #1e0536;
    --ticker-badge: #f0abfc;
    --badge-text: #000000;

    --icon-filter: brightness(0) invert(1);
}

/* Theme 4: Klasik TUFI Kırmızı (Klasik Karşılaştırma) */
[data-theme="classic-red"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #ffffff;
    
    --brand-purple: #bb1919;
    --brand-purple-light: #dc2626;
    --brand-purple-dark: #991b1b;
    --accent-purple: #ef4444;
    --accent-glow: rgba(239, 68, 68, 0.15);
    
    --topbar-bg: #bb1919;
    --topbar-text: #ffffff;
    --nav-bg: #991b1b;
    --nav-hover: #b91c1c;
    --nav-active-border: #fca5a5;
    
    --border-color: #e5e7eb;
    --border-purple: #fca5a5;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(187, 25, 25, 0.08);
    --shadow-lg: 0 10px 25px rgba(187, 25, 25, 0.15);
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    --ticker-bg: #fee2e2;
    --ticker-badge: #ef4444;
    --badge-text: #ffffff;

    --icon-filter: brightness(0) opacity(0.85);
}

/* Theme 5: Dark Obsidian */
[data-theme="dark-obsidian"] {
    --bg-primary: #09090b;
    --bg-secondary: #18181b;
    --bg-card: #27272a;
    --bg-hover: #3f3f46;
    
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-light: #ffffff;
    
    --brand-purple: #e4e4e7;
    --brand-purple-light: #ffffff;
    --brand-purple-dark: #71717a;
    --accent-purple: #3f3f46;
    --accent-glow: rgba(255, 255, 255, 0.15);
    
    --topbar-bg: #18181b;
    --topbar-text: #f4f4f5;
    --nav-bg: #27272a;
    --nav-hover: #3f3f46;
    --nav-active-border: #ffffff;
    
    --border-color: #3f3f46;
    --border-purple: #71717a;
    
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.9);
    
    --glass-bg: rgba(24, 24, 27, 0.88);
    --glass-border: rgba(255, 255, 255, 0.15);
    
    --ticker-bg: #27272a;
    --ticker-badge: #e4e4e7;
    --badge-text: #09090b;

    --icon-filter: brightness(0) invert(1);
}

/* Theme 6: Midnight Blue */
[data-theme="midnight-blue"] {
    --bg-primary: #0b1329;
    --bg-secondary: #0f172a;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-light: #ffffff;
    
    --brand-purple: #38bdf8;
    --brand-purple-light: #7dd3fc;
    --brand-purple-dark: #0284c7;
    --accent-purple: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.2);
    
    --topbar-bg: #0f172a;
    --topbar-text: #e0f2fe;
    --nav-bg: #1e293b;
    --nav-hover: #334155;
    --nav-active-border: #38bdf8;
    
    --border-color: #334155;
    --border-purple: #0284c7;
    
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 30px rgba(56, 189, 248, 0.15);
    
    --glass-bg: rgba(15, 23, 42, 0.88);
    --glass-border: rgba(56, 189, 248, 0.2);
    
    --ticker-bg: #1e293b;
    --ticker-badge: #38bdf8;
    --badge-text: #0b1329;

    --icon-filter: brightness(0) invert(1);
}

/* Theme 7: Cyberpunk Neon */
[data-theme="cyberpunk-neon"] {
    --bg-primary: #0d0714;
    --bg-secondary: #180828;
    --bg-card: #230c3a;
    --bg-hover: #341256;
    
    --text-primary: #ffffff;
    --text-secondary: #f472b6;
    --text-muted: #a21caf;
    --text-light: #ffffff;
    
    --brand-purple: #ec4899;
    --brand-purple-light: #f472b6;
    --brand-purple-dark: #be185d;
    --accent-purple: #22d3ee;
    --accent-glow: rgba(236, 72, 153, 0.3);
    
    --topbar-bg: #180828;
    --topbar-text: #fbcfe8;
    --nav-bg: #230c3a;
    --nav-hover: #341256;
    --nav-active-border: #22d3ee;
    
    --border-color: #341256;
    --border-purple: #ec4899;
    
    --shadow-sm: 0 0 10px rgba(236, 72, 153, 0.2);
    --shadow-md: 0 0 20px rgba(236, 72, 153, 0.35);
    --shadow-lg: 0 0 35px rgba(34, 211, 238, 0.4);
    
    --glass-bg: rgba(24, 8, 40, 0.9);
    --glass-border: rgba(236, 72, 153, 0.3);
    
    --ticker-bg: #230c3a;
    --ticker-badge: #ec4899;
    --badge-text: #ffffff;

    --icon-filter: brightness(0) invert(1);
}

/* Theme 8: Emerald Forest */
[data-theme="emerald-forest"] {
    --bg-primary: #04140f;
    --bg-secondary: #082119;
    --bg-card: #0f3327;
    --bg-hover: #164837;
    
    --text-primary: #ecfdf5;
    --text-secondary: #6ee7b7;
    --text-muted: #34d399;
    --text-light: #ffffff;
    
    --brand-purple: #10b981;
    --brand-purple-light: #34d399;
    --brand-purple-dark: #047857;
    --accent-purple: #6ee7b7;
    --accent-glow: rgba(16, 185, 129, 0.25);
    
    --topbar-bg: #082119;
    --topbar-text: #d1fae5;
    --nav-bg: #0f3327;
    --nav-hover: #164837;
    --nav-active-border: #34d399;
    
    --border-color: #164837;
    --border-purple: #10b981;
    
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 30px rgba(16, 185, 129, 0.2);
    
    --glass-bg: rgba(8, 33, 25, 0.88);
    --glass-border: rgba(16, 185, 129, 0.25);
    
    --ticker-bg: #0f3327;
    --ticker-badge: #10b981;
    --badge-text: #04140f;

    --icon-filter: brightness(0) invert(1);
}

/* RESET & GENERAL */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

/* 2. TOP UTILITY BAR (WEATHER, FINANCE, TIME, LIVE) */
.top-bar {
    background-color: var(--topbar-bg);
    color: var(--topbar-text);
    font-size: 0.825rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ef4444;
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.weather-widget {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weather-select {
    background: transparent;
    border: none;
    color: var(--topbar-text);
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
}

.weather-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.finance-ticker {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.finance-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.finance-change.up { color: #4ade80; }
.finance-change.down { color: #f87171; }

.current-time {
    font-weight: 500;
    opacity: 0.9;
}

/* 3. MAIN HEADER & BRANDING BAR */
.main-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
}

/* TUFI Block Logo */
.bbc-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.bbc-blocks {
    display: flex;
    gap: 3px;
}

.bbc-block {
    width: 36px;
    height: 36px;
    background-color: var(--brand-purple);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.bbc-logo-wrapper:hover .bbc-block {
    transform: translateY(-2px);
}

.bbc-subbrand {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 1px;
    color: var(--brand-purple);
    line-height: 1.1;
}

.brand-tagline {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* 3D Voxel Bunny Mouse Tracking & Interactive Styles */
.pixel-bunny-3d-container {
    perspective: 800px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    flex-shrink: 0 !important;
    margin-left: 0.45rem;
    position: relative;
    user-select: none;
    cursor: pointer;
    overflow: visible;
}

.pixel-bunny-3d {
    width: 48px !important;
    height: 48px !important;
    transform-style: preserve-3d;
    will-change: transform;
    filter: drop-shadow(0 4px 10px rgba(88, 28, 135, 0.4));
    transition: filter 0.3s ease;
}

.pixel-bunny-3d-container:hover .pixel-bunny-3d {
    filter: drop-shadow(0 10px 22px rgba(168, 85, 247, 0.6));
}

#bunnyEyeLeft, #bunnyEyeRight {
    transition: transform 0.1s ease-out;
}

.voxel-ear {
    transform-origin: bottom center;
    transition: transform 0.3s ease;
}

.pixel-bunny-3d-container:hover .voxel-ear-left {
    transform: rotateZ(-8deg);
}

.pixel-bunny-3d-container:hover .voxel-ear-right {
    transform: rotateZ(8deg);
}

/* Floating Heart Particle Effect on Bunny Click */
.heart-particle {
    position: fixed;
    pointer-events: none;
    font-size: 1.25rem;
    z-index: 99999;
    user-select: none;
    animation: floatHeart 1.1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes floatHeart {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
    }
    40% {
        opacity: 1;
        transform: translate(calc(-50% + var(--dx)), calc(-50% - 35px)) scale(1.4) rotate(var(--rot));
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx) * 1.5), calc(-50% - 75px)) scale(0.9) rotate(var(--rot));
    }
}

/* Search & Action Controls */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 210px;
    padding: 0.5rem 0.85rem 0.5rem 2.2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.search-input:focus {
    outline: none;
    width: 260px;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    position: relative;
}

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

.bookmark-count-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--brand-purple);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 4. THEME SELECTOR DROPDOWN & MENU */
.theme-selector-wrapper {
    position: relative;
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 230px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 200;
    backdrop-filter: blur(10px);
}

.theme-dropdown.show {
    display: flex;
    animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.theme-dropdown-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.6rem;
}

.theme-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s ease;
}

.theme-option:hover {
    background-color: var(--bg-hover);
}

.theme-option.active {
    background-color: var(--accent-glow);
    color: var(--brand-purple);
    font-weight: 700;
}

.theme-color-preview {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* 5. CATEGORY NAVIGATION BAR */
.cat-nav {
    background-color: var(--nav-bg);
    border-bottom: 2px solid var(--brand-purple-dark);
    transition: background-color 0.3s ease;
}

.cat-nav-list {
    display: flex;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.cat-nav-list::-webkit-scrollbar {
    display: none;
}

.cat-nav-item a {
    display: block;
    padding: 0.75rem 1.15rem;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
    opacity: 0.9;
}

.cat-nav-item a:hover,
.cat-nav-item.active a {
    opacity: 1;
    background-color: var(--nav-hover);
}

.cat-nav-item.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--nav-active-border);
}

/* 6. BREAKING NEWS TICKER */
.ticker-section {
    background-color: var(--ticker-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    transition: background-color 0.3s ease;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}

.ticker-badge {
    background-color: var(--ticker-badge);
    color: var(--badge-text);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.ticker-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 35s linear infinite;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 1.5rem;
    cursor: pointer;
}

.ticker-item:hover {
    color: var(--brand-purple);
    text-decoration: underline;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* 7. MAIN CONTENT & TUFI EDITORIAL GRID */
.main-content {
    padding: 1.75rem 0 3rem 0;
}

.news-grid-container {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 1.75rem;
}

/* Hero Section */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.hero-main-card {
    grid-column: 1 / -1;
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.3s ease;
    cursor: pointer;
}

.hero-main-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-purple);
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-main-card:hover .hero-image-wrapper img {
    transform: scale(1.03);
}

.category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--brand-purple);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-content {
    padding: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.65rem;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.hero-summary {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.meta-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.bookmark-btn {
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 0.2rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.bookmark-btn:hover, .bookmark-btn.active {
    color: #eab308;
    transform: scale(1.15);
}

/* Secondary Hero Cards */
.sub-hero-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.sub-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--border-purple);
}

.sub-hero-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.sub-hero-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.sub-hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* 8. TRENDING SIDEBAR ("EN ÇOK OKUNANLAR") */
.trending-sidebar {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--brand-purple);
    border-bottom: 2px solid var(--border-purple);
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.trending-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    cursor: pointer;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trending-item:hover {
    transform: translateX(4px);
}

.trending-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--brand-purple);
    opacity: 0.7;
    min-width: 32px;
}

.trending-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.trending-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}

.trending-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 9. CATEGORIZED NEWS SECTIONS & GRID */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2.5rem 0 1.25rem 0;
    border-bottom: 2px solid var(--border-purple);
    padding-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--brand-purple);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-more-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.section-more-link:hover {
    text-decoration: underline;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.news-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-purple);
}

.news-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.news-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img-wrapper img {
    transform: scale(1.04);
}

.news-card-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.news-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.news-card-summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================
   DISCORD-STYLE SETTINGS MODAL
   ========================================== */
/* ==========================================
   ULTRA-MODERN GLASSMORPHISM SETTINGS MODAL
   ========================================== */
.discord-settings-modal {
    width: 92%;
    max-width: 980px;
    height: 84vh;
    max-height: 700px;
    background: rgba(15, 16, 22, 0.88);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.8), 0 0 50px rgba(168, 85, 247, 0.15);
    display: flex;
    overflow: hidden;
    color: #f2f3f5;
    animation: discordModalEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes discordModalEntrance {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Sidebar (Left) */
.discord-settings-sidebar {
    width: 270px;
    background: rgba(22, 24, 34, 0.7);
    padding: 1.75rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.discord-user-profile-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.discord-user-profile-header:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(168, 85, 247, 0.3);
}

.discord-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-purple), #7e22ce);
    color: #ffffff;
    font-weight: 900;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(126, 34, 206, 0.4);
}

.discord-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.discord-user-name {
    font-weight: 800;
    font-size: 0.94rem;
    color: #ffffff;
}

.discord-user-sub {
    font-size: 0.73rem;
    color: var(--brand-purple-light, #c084fc);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.discord-user-sub:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.discord-nav-section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.discord-section-title {
    font-size: 0.68rem;
    font-weight: 800;
    color: #949ba4;
    letter-spacing: 0.8px;
    padding: 0.4rem 0.6rem;
    text-transform: uppercase;
}

.discord-nav-item {
    width: 100%;
    text-align: left;
    padding: 0.7rem 0.95rem;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #949ba4;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: all 0.2s ease;
    position: relative;
}

.discord-nav-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    transform: translateX(2px);
}

.discord-nav-item.active {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.2), rgba(126, 34, 206, 0.1));
    color: #ffffff;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Discord Nested Tree Navigation */
.discord-nav-header {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
    padding: 0.7rem 0.95rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.discord-tree-subgroup {
    display: flex;
    position: relative;
    padding-left: 0.75rem;
    margin-bottom: 0.5rem;
}

.discord-tree-line {
    width: 2px;
    background: linear-gradient(to bottom, rgba(168, 85, 247, 0.6), rgba(255, 255, 255, 0.1));
    border-radius: 2px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.discord-tree-items {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.discord-tree-items .discord-nav-item {
    font-size: 0.88rem;
    font-weight: 600;
    color: #949ba4;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    position: relative;
}

.discord-tree-items .discord-nav-item:hover {
    color: #f2f3f5;
    background: rgba(255, 255, 255, 0.06);
}

.discord-tree-items .discord-nav-item.active {
    color: #ffffff;
    font-weight: 800;
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.35);
}

/* Right Content Area */
.discord-settings-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(19, 20, 28, 0.6);
    overflow: hidden;
}

.discord-content-header {
    padding: 1.5rem 2.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.discord-content-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.esc-kbd-badge {
    font-size: 0.68rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.discord-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #b5bac1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.discord-close-btn:hover {
    background: #ef4444;
    border-color: transparent;
    color: #ffffff;
    transform: scale(1.08) rotate(90deg);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.discord-content-body {
    flex: 1;
    padding: 2.25rem;
    overflow-y: auto;
}

.discord-group-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.discord-group-sub {
    font-size: 0.85rem;
    color: #949ba4;
    margin-bottom: 1.75rem;
}

/* Theme Cards Grid */
.discord-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.25rem;
}

.discord-theme-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.9rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
}

.discord-theme-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.discord-theme-card.active {
    border-color: #c084fc;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.35), 0 0 0 2px #c084fc;
    background: rgba(168, 85, 247, 0.08);
}

.theme-card-preview {
    height: 95px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.active-theme-checkmark {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #c084fc;
    color: #000000;
    font-weight: 900;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.discord-theme-card.active .active-theme-checkmark {
    opacity: 1;
    transform: scale(1);
}

.royal-purple-preview {
    background: linear-gradient(135deg, #130b26, #7e22ce);
}

.velvet-dark-preview {
    background: linear-gradient(135deg, #0b0712, #a855f7);
}

.cyber-amethyst-preview {
    background: linear-gradient(135deg, #030206, #e879f9);
}

.dark-obsidian-preview {
    background: linear-gradient(135deg, #09090b, #27272a);
}

.midnight-blue-preview {
    background: linear-gradient(135deg, #0b1329, #38bdf8);
}

.cyberpunk-neon-preview {
    background: linear-gradient(135deg, #180828, #ec4899);
}

.emerald-forest-preview {
    background: linear-gradient(135deg, #04140f, #10b981);
}

.classic-red-preview {
    background: linear-gradient(135deg, #450a0a, #dc2626);
}

.theme-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.theme-card-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: #ffffff;
}

.theme-card-desc {
    font-size: 0.78rem;
    color: #949ba4;
}

/* Modern Settings List & iOS Switches */
.modern-settings-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 620px;
}

.modern-setting-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    padding: 1.15rem 1.4rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.25s ease;
}

.modern-setting-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(168, 85, 247, 0.35);
    transform: translateX(3px);
}

.setting-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.setting-card-title {
    font-weight: 800;
    color: #ffffff;
    font-size: 0.96rem;
}

.setting-card-desc {
    font-size: 0.8rem;
    color: #949ba4;
    line-height: 1.35;
}

/* Custom Sleek iOS Switch */
.modern-ios-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.modern-ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ios-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ios-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.modern-ios-switch input:checked + .ios-slider {
    background: linear-gradient(135deg, var(--brand-purple, #a855f7), #7e22ce);
    border-color: transparent;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
}

.modern-ios-switch input:checked + .ios-slider:before {
    transform: translateX(24px);
}

.settings-save-row {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.modern-save-btn {
    background: linear-gradient(135deg, var(--brand-purple, #a855f7), #7e22ce);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 6px 20px rgba(126, 34, 206, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-save-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 28px rgba(168, 85, 247, 0.5);
}

/* ==========================================
   DIGITAL ID CARD UI STYLES
   ========================================== */
.id-card-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 680px;
}

.digital-id-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 2px solid rgba(168, 85, 247, 0.35);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(168, 85, 247, 0.1);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}

.digital-id-card:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 0 35px rgba(168, 85, 247, 0.18);
}

.id-card-banner {
    background: linear-gradient(90deg, #1e0536, #7e22ce, #3b0764);
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.id-banner-title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
}

.id-banner-sub {
    font-size: 0.65rem;
    font-weight: 700;
    color: #c084fc;
    letter-spacing: 1px;
}

.id-card-body {
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (max-width: 640px) {
    .id-card-body {
        flex-direction: column;
        align-items: center;
    }
}

/* Left Photo Column */
.id-card-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.id-photo-frame {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid rgba(168, 85, 247, 0.5);
    background: #09090b;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(168, 85, 247, 0.3);
    transition: all 0.3s ease;
}

.id-photo-frame:hover {
    border-color: #c084fc;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.6);
}

.id-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.id-photo-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(3px);
}

.id-photo-frame:hover .id-photo-overlay {
    opacity: 1;
}

.id-role-badge {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
    font-size: 0.65rem;
    font-weight: 900;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* Right Fields Column */
.id-card-fields-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
}

.id-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.id-field-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #949ba4;
    letter-spacing: 1px;
}

.id-field-input-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    transition: all 0.2s ease;
}

.id-field-input-box:focus-within {
    border-color: #c084fc;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
    background: rgba(0, 0, 0, 0.5);
}

.id-field-input-box.readonly {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
    opacity: 0.7;
}

.id-prefix-at {
    color: #c084fc;
    font-weight: 900;
    font-size: 0.9rem;
    margin-right: 0.35rem;
}

.id-card-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    width: 100%;
}

/* Footer Chip & Barcode */
.id-card-footer {
    padding: 0.75rem 1.5rem 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
}

.id-barcode-graphic {
    color: rgba(255, 255, 255, 0.6);
}

/* Real SVG Icons Helper Utility */
.ui-svg-icon {
    width: 1.15em;
    height: 1.15em;
    display: inline-block;
    vertical-align: -0.18em;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.ui-svg-img {
    width: 1.15em;
    height: 1.15em;
    display: inline-block;
    vertical-align: -0.18em;
    flex-shrink: 0;
    filter: var(--icon-filter, brightness(0) invert(1));
    transition: filter 0.3s ease;
}

/* Ayarlar paneli (Discord Settings Modal) içerisindeki ikonlar DAİMA BEYAZ kalır */
.discord-settings-modal .ui-svg-img,
.discord-settings-sidebar .ui-svg-img,
.discord-settings-content .ui-svg-img,
#discordSettingsModal .ui-svg-img {
    filter: brightness(0) invert(1) !important;
}

/* Guest ID Card Creation Call-to-action */
.id-card-guest-box {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(126, 34, 206, 0.04));
    border: 2px dashed rgba(168, 85, 247, 0.4);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    text-align: center;
    max-width: 650px;
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.guest-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.guest-card-icon {
    font-size: 3rem;
    margin-bottom: 0.25rem;
    filter: drop-shadow(0 4px 12px rgba(168, 85, 247, 0.5));
}

.guest-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.guest-card-desc {
    font-size: 0.88rem;
    color: #b5bac1;
    max-width: 480px;
    line-height: 1.5;
}

.guest-benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.guest-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #f2f3f5;
}

.benefit-icon {
    font-size: 1.15rem;
}

.guest-action-row {
    display: flex;
    justify-content: center;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Flex Layout (Sleek Centered Reader UI) */
.modal-flex-wrapper {
    display: flex;
    justify-content: center;
    width: 95%;
    max-width: 1080px;
    max-height: 90vh;
    align-items: stretch;
    position: relative;
    z-index: 1000;
    margin: 0 auto;
}

/* HABER OKUMA KARTI (Centered Reader UI) */
.article-reader-card {
    flex: 1 1 100%;
    width: 100%;
    background-color: var(--bg-card);
    border-radius: 18px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* Modern Square Icon Buttons for Modal Header */
.square-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.square-icon-btn:hover {
    transform: translateY(-2px) scale(1.04);
    border-color: var(--brand-purple);
    color: var(--brand-purple);
    box-shadow: 0 4px 12px rgba(126, 34, 206, 0.2);
}

/* Save / Bookmark Active State */
#modalBookmarkBtn.active {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.35);
}

/* Comments Toggle Active State */
.comments-toggle-btn.active {
    background: linear-gradient(135deg, var(--brand-purple), #7e22ce);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(126, 34, 206, 0.35);
}

.pixel-speech-icon {
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.comments-toggle-btn:hover .pixel-speech-icon {
    transform: scale(1.12);
}

.comments-toggle-btn.active .inner-bubble {
    fill: #7e22ce;
}

/* Square Badge Overlay for Comment Count */
.btn-square-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-card);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.close-modal-btn {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background-color: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.close-modal-btn:hover {
    background-color: #ef4444;
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Standalone Comments Card Header */
.comments-card-header {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.comments-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comments-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-purple), #7e22ce);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(126, 34, 206, 0.3);
}

.comments-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--brand-purple);
    letter-spacing: 0.5px;
}

.comments-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.comments-list-standalone {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.modal-header-sticky {
    position: sticky;
    top: 0;
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.modal-reader-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.font-size-btn {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
}

.close-modal-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-hover);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s ease;
}

.close-modal-btn:hover {
    background-color: #ef4444;
    color: #fff;
}

.modal-body-content {
    padding: 1.75rem;
}

/* Modal 2-Column Grid Layout (Article + Comments Sidebar) */
.modal-article-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 920px) {
    .modal-article-grid {
        grid-template-columns: 1fr;
    }
}

.article-main-col {
    min-width: 0;
}

/* Side Comments Section */
.article-comments-sidebar {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.comments-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-count-badge {
    background: var(--brand-purple);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
}

.live-indicator {
    font-size: 0.72rem;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

/* Minimalist Comments UI Styles */
.comment-form-minimal {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.comment-input-minimal, .comment-textarea-minimal {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    border: 1px solid transparent;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.82rem;
    transition: all 0.2s ease;
}

.comment-input-minimal:focus, .comment-textarea-minimal:focus {
    outline: none;
    background: var(--bg-primary);
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.submit-comment-btn-minimal {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--brand-purple), #7e22ce);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-comment-btn-minimal:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(126, 34, 206, 0.3);
}

/* Minimalist Individual Comment Card */
.comment-card-minimal {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    animation: fadeInComment 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-card-minimal:hover {
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

@keyframes fadeInComment {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.comment-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.comment-avatar-minimal {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(126, 34, 206, 0.4));
    color: var(--brand-purple);
    font-weight: 800;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.comment-author-name {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.comment-time-minimal {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.comment-text-minimal {
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.45;
    word-break: break-word;
}

.comment-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0.1rem;
}

/* Minimalist Vector Heart Like Button */
.mini-like-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mini-like-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.mini-like-btn.liked {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    font-weight: 700;
}

.mini-like-btn .heart-icon {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mini-like-btn:active .heart-icon,
.mini-like-btn.liked .heart-icon {
    transform: scale(1.22);
}

/* Empty State */
.empty-comments-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    text-align: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ==========================================
   USER AUTH & LOGIN MODAL STYLES
   ========================================== */
.user-auth-wrapper {
    position: relative;
}

.user-auth-btn {
    position: relative;
}

.user-auth-btn.logged-in {
    background: linear-gradient(135deg, var(--brand-purple), #7e22ce);
    color: #ffffff;
    border-color: transparent;
    font-weight: 800;
    border-radius: 50%;
}

.user-auth-btn.has-photo {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#userAuthAvatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.discord-avatar, #settingsUserAvatar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

.user-dropdown-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

#userAuthAvatar img, .user-dropdown-avatar img, #settingsUserAvatar img, .discord-avatar img, #profAvatar img, #sidebarAvatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
    border: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* User Profile Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    width: 250px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 0.85rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
}

.user-dropdown-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-purple), #7e22ce);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-dropdown-info {
    display: flex;
    flex-direction: column;
}

.user-dropdown-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.user-dropdown-email {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.4rem 0;
}

.dropdown-item-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-item-btn:hover {
    background: var(--bg-hover);
}

.dropdown-item-btn.danger {
    color: #ef4444;
}

.dropdown-item-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Auth Modal Card */
.auth-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-purple);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(88, 28, 135, 0.35);
    width: 90%;
    max-width: 410px;
    padding: 2rem 1.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    animation: zoomAuthModal 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.auth-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.auth-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.auth-logo-badge {
    background: linear-gradient(135deg, var(--brand-purple), #7e22ce);
    color: #ffffff;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 2px;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(126, 34, 206, 0.3);
    margin-bottom: 0.25rem;
}

.auth-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.auth-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.auth-tabs {
    display: flex;
    background: var(--bg-primary);
    padding: 0.25rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.auth-tab-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab-btn.active {
    background: var(--bg-card);
    color: var(--brand-purple);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-field label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
}

.auth-field input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    cursor: pointer;
}

.forgot-pass {
    color: var(--brand-purple);
    font-weight: 600;
}

.auth-submit-btn {
    background: linear-gradient(135deg, var(--brand-purple), #7e22ce);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.75rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.25rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(126, 34, 206, 0.38);
}

.auth-social-divider {
    text-align: center;
    position: relative;
    margin: 0.25rem 0;
}

.auth-social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.auth-social-divider span {
    position: relative;
    z-index: 2;
    background: var(--bg-card);
    padding: 0 0.6rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.auth-social-btns {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.social-login-btn {
    width: 100%;
    padding: 0.6rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-login-btn:hover {
    background: var(--bg-hover);
    border-color: var(--brand-purple);
}

.article-category-badge {
    display: inline-block;
    background-color: var(--brand-purple);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.article-modal-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.author-meta-box {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

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

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.author-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.article-hero-image-modal {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.article-full-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-primary);
}

.article-full-text p {
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.article-full-text h1, .article-full-text h2, .article-full-text h3, .article-full-text h4 {
    color: var(--text-primary);
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-weight: 800;
    margin: 1.75rem 0 0.85rem 0;
    line-height: 1.3;
}

.article-full-text h1 { font-size: 1.75rem; }
.article-full-text h2 { font-size: 1.45rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.4rem; }
.article-full-text h3 { font-size: 1.2rem; }

.article-full-text blockquote, .article-quote {
    border-left: 4px solid var(--brand-purple);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background-color: var(--accent-glow, rgba(168, 85, 247, 0.1));
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-weight: 600;
    color: var(--brand-purple-light, var(--brand-purple));
}

.article-full-text code {
    background: var(--bg-hover, rgba(255,255,255,0.08));
    color: var(--accent-purple, #be185d);
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.9rem;
}

.article-full-text pre {
    background: var(--bg-primary, #0f172a);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.1rem;
    overflow-x: auto;
    margin: 1.25rem 0;
}

.article-full-text pre code {
    background: transparent;
    padding: 0;
    color: var(--brand-purple-light, #38bdf8);
}

.article-full-text ul, .article-full-text ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.article-full-text li {
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.article-full-text strong, .article-full-text b {
    color: var(--text-primary);
    font-weight: 700;
}

.article-full-text img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.25rem 0;
}

.article-full-text .lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.article-tags-wrapper {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.tag-badge {
    background-color: var(--bg-hover);
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 0.25rem 0.65rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

/* 11. BOOKMARKS DRAWER */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 900;
    display: none;
}

.drawer-overlay.active {
    display: block;
}

.bookmarks-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background-color: var(--bg-card);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 950;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.bookmarks-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--brand-purple);
}

.drawer-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}



/* 13. FOOTER */
.site-footer {
    background-color: var(--topbar-bg);
    color: var(--topbar-text);
    padding: 3rem 0 1.5rem 0;
    margin-top: 4rem;
    border-top: 3px solid var(--brand-purple-light);
    transition: background-color 0.3s ease;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.footer-desc {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 320px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.75;
}

/* 14. RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .news-grid-container {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }
    .grid-3-col {
        grid-template-columns: 1fr;
    }
    
    /* Top Bar Mobile Fix - Horizontal Scroll, Single Row */
    .top-bar {
        padding: 0.35rem 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .top-bar::-webkit-scrollbar {
        display: none;
    }

    .top-bar-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 0.85rem;
        white-space: nowrap;
        padding-right: 0.5rem;
    }

    .top-bar-left, .top-bar-right {
        gap: 0.75rem;
        flex-shrink: 0;
    }

    .finance-ticker {
        display: flex;
        gap: 0.75rem;
        font-size: 0.75rem;
    }

    /* Main Header Mobile Fix - Clean Single Line */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .brand-logo {
        font-size: 1.1rem;
        letter-spacing: -0.5px;
    }

    .header-actions {
        width: auto;
        gap: 0.5rem;
        justify-content: flex-end;
    }

    .search-box {
        max-width: 130px;
    }

    .search-input {
        width: 100%;
        padding: 0.35rem 0.6rem;
        font-size: 0.78rem;
    }

    /* User Dropdown Position Fix on Mobile */
    .user-dropdown {
        right: 0.5rem;
        width: calc(100vw - 1rem);
        max-width: 320px;
    }

    /* Settings Modal Mobile Fix */
    .discord-settings-modal {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        flex-direction: column;
    }

    .discord-settings-sidebar {
        width: 100%;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        gap: 0.75rem;
    }

    .discord-tree-subgroup {
        padding-left: 0;
    }

    .discord-tree-line {
        display: none;
    }

    .discord-tree-items {
        flex-direction: row;
        gap: 0.5rem;
    }

    .discord-tree-items .discord-nav-item {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .discord-tree-items .discord-nav-item.active::before {
        display: none;
    }

    .discord-content-header {
        padding: 1rem 1.25rem;
    }

    .discord-content-body {
        padding: 1.25rem;
    }

    .discord-theme-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-wrapper {
        height: 240px;
    }
    .modal-container {
        max-height: 95vh;
        border-radius: 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
