/*
Theme Name: TexnoX Minimal
Author: TexnoX Team
Description: Modern, high-performance tech news portal theme with a "Cyber-Intelligence" aesthetic.
Version: 2.1.0
Text Domain: texnoxeber-minimal
*/

/* 
 * =============================================================
 * SECTION 0: THEME TOKENS & CORE VARIABLES
 * =============================================================
 */

:root {
    /* CORE DESIGN TOKENS */
    --bg-main: #0b0f19;
    --aurora-bg: #0b0f19;
    --text-bold: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --accent-blue: #00F0FF;
    --texnox-cyan: #00F0FF;
    --border-subtle: rgba(255, 255, 255, 0.1);

    /* BLOB SYSTEM */
    --blob-1: #4f18a6;
    --blob-2: #007bb5;
    --blob-3: #1a5c6a;
    --blob-opacity: 0.6;
    --blob-blur: 90px;

    /* DYNAMIC LAYOUT ENGINE */
    --nav-width: 95%;
    --nav-top: 0.5rem;
    --nav-padding-y: 1rem;
    --header-clearance: 45px;

    /* PREMIUM DESIGN TOKENS */
    --card-title-font: "Plus Jakarta Sans", "Inter", -apple-system, system-ui, sans-serif;
    --reader-font-size: 1.125rem;
    --reader-line-height: 1.8;
    --bg-card: rgba(15, 17, 23, 0.15);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-accent: 0 30px 60px rgba(0, 123, 255, 0.15);
    --accent-glow: rgba(0, 123, 255, 0.6);
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

    /* ADAPTIVE COMPONENT BACKGROUNDS */
    --bg-nav: rgba(13, 17, 23, 0.6);
    --bg-ticker: rgba(15, 17, 23, 0.08);
    --editorial-px: 4rem;
    /* Desktop editorial width margin */

    /* Border Radius System */
    --radius-lg: 16px;
    /* Main Containers/Cards */
    --radius-md: 12px;
    /* Inner Boxes/Thumbnails */
    --radius-sm: 8px;
    /* Small Labels/Tags */
    --radius-pill: 100px;
    /* Only for floating system elements */

    /* GLASS SYSTEM VARS */
    --glass-bg: rgba(15, 23, 42, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(0, 0, 0, 0.2);

    /* SCROLLBAR TOKENS */
    --scrollbar-track: #0b0f19;
    --scrollbar-thumb: #1e293b;
}

@media (max-width: 768px) {
    :root {
        --nav-width: 94%;
        --nav-top: 1.25rem;
        --nav-padding-y: 0.5rem;
        --header-clearance: 80px;
    }
}

.light-mode {
    --bg-main: #f3f4f6;
    /* Light gray background to create depth */
    --aurora-bg: #f3f4f6;
    --text-bold: #0f172a;
    --text-muted: #475569;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --blob-1: #e0f2fe;
    --blob-2: #f0f9ff;
    --blob-3: #f1f5f9;
    --bg-card: #ffffff;
    /* Pure white cards to pop out */
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.06);
    --scrollbar-track: #f3f4f6;
    --scrollbar-thumb: #d1d5db;
    --bg-nav: rgba(255, 255, 255, 0.8);
    --bg-ticker: rgba(255, 255, 255, 0.5);

    /* GLASS SYSTEM VARS */
    --glass-bg: #ffffff;
    --glass-border: rgba(0, 0, 0, 0.05);
    --input-bg: #ffffff;
}

/* Tailwind Compatibility */
.dark {
    --bg-main: #0b0f19;
    --text-bold: #ffffff;
}

/* 
 * =============================================================
 * SECTION 1: GLOBAL RESET & SCALING
 * =============================================================
 */

html {
    font-size: 10px;
    -webkit-text-size-adjust: 100%;
}

@media (min-width: 1024px) {
    html {
        font-size: 14.4px;
        /* Pro 90% scale */
    }
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100vw;
    max-width: 100%;
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

html {
    background-color: var(--bg-main);
}

body {
    background-color: transparent;
}

/* GLOBAL SCROLLBAR */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border: 3px solid var(--scrollbar-track);
    border-radius: 10px;
}

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

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* LAYOUT CONTAINERS */
#site-content-wrapper,
main {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    contain: layout;
}

#header-offset-spacer {
    height: var(--header-clearance);
    display: block;
    width: 100%;
}

.texnox-glass-container {
    background-color: var(--bg-card);
    /* Use white background in light mode */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    contain: layout;
    box-shadow: var(--shadow-premium);
}

.dark .texnox-glass-container {
    background-color: rgba(15, 21, 35, 0.85);
    box-shadow: none;
}

/* TexnoX Ana Məqalə Kartı - Qəti Rənglər */
.texnox-main-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.dark .texnox-main-card {
    background-color: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .texnox-glass-container {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .dark .texnox-glass-container {
        background-color: rgba(13, 17, 28, 0.95);
    }
}

/* HAPTIC FEEDBACK */
button:active,
.clickable:active,
a:active:not(.no-haptic) {
    transform: scale(0.97);
    opacity: 0.92;
    transition: transform 0.2s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease;
}

/* 
 * =============================================================
 * SECTION 2: HEADER & NAVIGATION (The Nexus Core)
 * =============================================================
 */

#main-nav {
    position: fixed;
    top: var(--nav-top);
    left: 50%;
    transform: translateX(-50%);
    width: var(--nav-width);
    max-width: 1050px;
    height: 48px;
    z-index: 1000;
    padding-left: 1.75rem;
    padding-right: 1.25rem;
    line-height: 1;
    background: var(--bg-nav);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.3s ease, box-shadow 0.3s ease;
    contain: layout;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Navbar Actions Container */
.nexus-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .nexus-nav-actions {
        gap: 8px;
    }
}

.dark #main-nav {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    body #main-nav {
        background-color: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
    }

    body.dark #main-nav,
    .dark body #main-nav {
        background-color: rgba(15, 17, 23, 0.7);
    }
}

html #main-nav.nav-hidden {
    transform: translate(-50%, -150%);
}

/* 2.1 Logo & Identity */
.nexus-core-logo {
    color: var(--text-bold);
    font-size: 2rem;
    font-weight: 850;
    letter-spacing: -0.02em;
    overflow: visible;
    /* FIX: Prevent clipping of glow effects */
    padding: 0 24px 0 4px;
    /* FIX: Safety margin for the 'X' glow */
    width: max-content;
    /* FIX: Allow content to define width */
    display: flex;
    align-items: center;
}

.nexus-core-logo img {
    height: 28px;
    width: auto;
}

.nexus-nav-link {
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    transition: all 0.3s ease;
    border-radius: 20px;
}

.nexus-nav-link:hover {
    color: var(--text-bold);
    background: rgba(255, 255, 255, 0.05);
}

.dark .nexus-nav-link:hover {
    background: rgba(255, 255, 255, 0.03);
}

@media (min-width: 640px) {
    nav#main-nav .nexus-core-logo img {
        height: 32px;
    }
}

.light-mode .nexus-core-logo {
    color: #0b0f19;
}

.light-mode #site-main-logo {
    filter: invert(1);
}

.nexus-core-x-wrapper {
    display: inline-block;
    position: relative;
    margin-left: 2px;
    color: #007BFF;
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.nexus-core-logo:hover .nexus-core-x-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.nexus-core-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #00F0FF;
    border-radius: 50%;
    box-shadow: 0 0 10px #00F0FF, 0 0 20px rgba(0, 240, 255, 0.5);
    animation: nexus-pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes nexus-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0.4;
    }
}

/* 2.2 Sliding Theme Toggle (Left/Right Motion) */
.nexus-phase-shifter {
    width: 44px;
    height: 22px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    padding: 2px;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    /* Added back to hide stray elements */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .nexus-phase-shifter {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.shifter-liquid-core {
    width: 18px;
    height: 18px;
    background: #ffffff;
    /* White in Light Mode */
    border-radius: 50%;
    transform: translateX(0);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark .shifter-liquid-core {
    transform: translateX(21px);
    background: linear-gradient(135deg, #007BFF, #00c6ff);
    /* Blue in Dark Mode */
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
}

/* 2.3 Search Stream */
.nexus-search-stream-wrapper {
    width: 0;
    transform: scaleX(0);
    transform-origin: right;
    opacity: 0;
    transition: width 0.5s cubic-bezier(0.32, 0.72, 0, 1), transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.4s ease;
    pointer-events: none;
}

form.search-active .nexus-search-stream-wrapper {
    width: 240px;
    transform: scaleX(1);
    opacity: 1;
    pointer-events: auto;
    margin-right: 12px;
    border-bottom: 1.5px solid #007BFF;
    box-shadow: 0 4px 12px -4px rgba(0, 123, 255, 0.3);
}

#desktop-search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-bold);
    font-size: 11px;
}

#desktop-search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

/* 2.4 Hamburger & Mobile Access */
.hero-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 100px;
    color: #ef4444;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.nexus-system-access {
    position: relative;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4.5px;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.nexus-bar {
    width: 20px;
    height: 1.5px;
    background: var(--text-bold);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: right;
}

.nexus-bar-2 {
    width: 14px;
    align-self: flex-end;
}

.nexus-bar-3 {
    width: 18px;
}

/* 2.5 Mobile Drawer */
.mobile-drawer {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 280px;
    background: var(--bg-nav);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.dark .mobile-drawer {
    background: rgba(13, 17, 23, 0.95);
}

/* Drawer Search Hub */
.drawer-search-container {
    display: none;
    /* Hidden on desktop by default */
    padding-bottom: 5px;
}

@media (max-width: 1024px) {
    .drawer-search-container {
        display: block;
    }
}

.drawer-search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.drawer-search-form:focus-within {
    border-color: #007BFF;
    background: var(--bg-main);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.1);
}

.drawer-search-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 14px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-bold);
    outline: none;
}

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

.drawer-search-submit {
    padding-right: 20px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.drawer-search-form:focus-within .drawer-search-submit {
    color: #007BFF;
}

.mobile-drawer-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.dropdown-nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.dropdown-nav-link:hover {
    background: rgba(0, 123, 255, 0.05);
    color: #007BFF;
    transform: translateX(4px);
}

/* 
 * =============================================================
 * SECTION 3: TICKERS & DATA STREAMS
 * =============================================================
 */

.live-info-capsule {
    background: var(--bg-ticker);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.2);
    contain: layout style;
    transition: all 0.5s ease;
}

.dark .live-info-capsule {
    background: rgba(13, 14, 18, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.glitch-active {
    animation: capsule-glitch 0.3s cubic-bezier(.25, .46, .45, .94) both;
    border-color: rgba(0, 123, 255, 0.4);
}

@keyframes capsule-glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

@media (max-width: 768px) {
    div#live-info-bar {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-top: 1rem;
    }

    div.live-info-capsule {
        background: var(--bg-nav);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        width: var(--nav-width);
        margin-inline: auto;
        border-radius: 20px;
        border: 1px solid var(--border-subtle);
    }

    .dark div.live-info-capsule {
        background-color: rgba(15, 17, 23, 0.6);
    }
}

.news-marquee-track,
.stock-marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    /* Concrete Solution 1: Calculate width based on content, not screen */
    will-change: transform;
}

.news-marquee-track {
    animation: marquee-scroll 40s linear infinite;
}

.stock-marquee-track {
    animation: marquee-scroll 40s linear infinite;
}

/* Ensure all sub-elements don't shrink */
.news-marquee-track>span,
.stock-marquee-track>span,
.marquee-item {
    flex-shrink: 0;
    /* Concrete Solution 2: Prevent items from compressing */
}

.news-marquee-track:hover,
.stock-marquee-track:hover {
    animation-play-state: paused;
}

/* Mobile: faster scroll speed */
@media (max-width: 768px) {
    .news-marquee-track {
        animation-duration: 40s;
    }

    .stock-marquee-track {
        animation-duration: 12s;
    }
}

.marquee-item {
    font-size: 9px;
    font-weight: 700;
}

.marquee-item::after {
    content: "\2022";
    margin-left: 2.5rem;
    margin-right: 2.5rem;
    opacity: 0.25;
}

/* Status Indicators */
.status-indicator {
    position: relative;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
}

.status-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.status-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1;
    animation: status-pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes status-pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.33);
        opacity: 1;
    }

    80%,
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .marquee-item {
        font-size: 11px;
    }

    .marquee-item::after {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Since we have 4 copies in header.php, scrolling -25% is one full set */
        transform: translateX(-25%);
    }
}

/* 
 * =============================================================
 * SECTION 4: CONTENT CARDS (The Grid System)
 * =============================================================
 */

article {
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.5s cubic-bezier(0.32, 0.72, 0, 1), background 0.3s ease, border-color 0.5s ease;
    background-color: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

/* Glass Sweep Effect (Şüşə Parıltısı) */
article.texnox-glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.6s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 2;
    pointer-events: none;
}

article.texnox-glass-container:hover::before {
    left: 150%;
}

.dark article {
    background: #111827;
    /* Solid for actual articles */
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Neon Glow Hover (Parlama Effekti) */
body article.texnox-glass-container:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 0 30px rgba(0, 123, 255, 0.12);
    border-color: rgba(0, 123, 255, 0.25);
    z-index: 20;
}

.dark body article.texnox-glass-container:hover {
    background: rgba(17, 24, 39, 0.95);
    border-color: rgba(0, 123, 255, 0.5);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 123, 255, 0.15),
        0 0 80px rgba(0, 123, 255, 0.06);
}

@media (max-width: 768px) {

    /* Unified Glass Style for All Cards on Mobile */
    body .texnox-glass-container,
    body .hero-post-card,
    body .briefing-card {
        background: var(--bg-nav);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid var(--border-subtle);
    }

    /* Layout specific to main grid cards */
    body .texnox-glass-container,
    body .hero-post-card {
        width: 92%;
        margin: 0 auto 16px auto;
    }

    .dark .texnox-glass-container,
    .dark .hero-post-card,
    .dark .briefing-card {
        background: rgba(15, 17, 23, 0.35);
    }
}

/* Card Image Logic */
article img {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s ease;
    opacity: 0;
}

article img.loaded,
article img:not([loading="lazy"]) {
    opacity: 1;
}

article:hover img {
    transform: scale(1.08);
}

/* Card Content Typography */
article h3 a {
    color: inherit;
    transition: color 0.15s ease-out;
}

article h3 a:hover {
    color: var(--accent-blue);
}



/* 4.1 Intelligence Briefing Grid */
.intelligence-briefing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 767px) {
    .intelligence-briefing-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 4px;
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
    }

    .intelligence-briefing-grid::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari and Opera */
    }
}

.briefing-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.light-mode .briefing-card {
    background-color: rgba(255, 255, 255, 0.45);
    border-color: rgba(0, 0, 0, 0.05);
}

.dark .briefing-card {
    background: rgba(15, 17, 23, 0.3);
}

.briefing-card:hover {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

.briefing-thumb {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

@media (max-width: 767px) {
    .briefing-card {
        flex: 0 0 85%;
        min-width: 230px;
        scroll-snap-align: start;
        padding: 10px;
    }

    .briefing-thumb {
        width: 70px;
        height: 70px;
    }
}

.briefing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Breadcrumbs Styling */
.texnox-breadcrumbs {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.texnox-breadcrumbs a {
    color: inherit;
    transition: all 0.2s ease;
    text-decoration: none;
}

.texnox-breadcrumbs a:hover {
    color: #007BFF;
}

.breadcrumb-current {
    color: var(--text-bold);
    opacity: 0.5;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 
 * =============================================================
 * SECTION 5: SINGLE POST UI (Editorial Engine)
 * =============================================================
 */

/* MOBILE PILL NAVBAR OVERRIDE */
@media (max-width: 768px) {
    nav#main-nav {
        background: rgba(15, 17, 23, 0.65);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.08);
        padding-left: 1.25rem;
        padding-right: 1rem;
        height: 60px;
    }

    .dark nav#main-nav {
        background: rgba(10, 12, 18, 0.7);
    }

    .light-mode nav#main-nav {
        background: rgba(255, 255, 255, 0.75);
        border-color: rgba(0, 0, 0, 0.05);
    }

    /* Enhanced Specificity to avoid !important */
    nav#main-nav .nexus-core-logo .nexus-logo-text {
        font-size: 2.25rem;
        font-weight: 950;
        letter-spacing: -0.04em;
        line-height: 1;
        padding-right: 20px;
        /* FIX: Padding for glow on mobile */
        width: max-content;
        overflow: visible;
    }

    nav#main-nav .nexus-core-x-wrapper {
        margin-left: 4px;
    }

    nav#main-nav .nexus-core-dot {
        width: 6px;
        height: 6px;
    }

    .nexus-scan-line {
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #007BFF, transparent);
        opacity: 0.5;
    }
}

.texnox-back-button {
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.texnox-back-button:hover {
    color: #007BFF;
    transform: translateX(-4px);
}

.ai-article-content {
    line-height: 1.8;
    letter-spacing: -0.01em;
    font-size: 1.125rem;
    margin: 0 var(--editorial-px);
    /* Precise alignment using unified variable */
}

body .ai-article-content p {
    margin-bottom: 2.2rem;
}

/* Article Media - Mobile Optimization */
@media (max-width: 768px) {
    .ai-article-content {
        font-size: 1.25rem;
        line-height: 1.7;
        margin: 0 var(--editorial-px);
        /* Precise alignment on mobile */
    }

    .mobile-hero-image img,
    .ai-article-content img {
        height: 260px;
        width: 100%;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }
}

/* Specialized Analytical Boxes (The TexnoX Look) */

/* 5.1 Specialized Analytical Boxes (The TexnoX Look) */
.texnox-deep-insight-container {
    margin: 4rem 0;
    /* REVERTED: Original insight spacing */
    padding: 2.5rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.light-mode .texnox-deep-insight-container {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 123, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.light-mode .texnox-deep-insight-container:hover {
    background: rgba(0, 123, 255, 0.05);
    border-color: rgba(0, 123, 255, 0.3);
}

.texnox-deep-insight-container:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 240, 255, 0.1);
    background: rgba(15, 23, 42, 0.55);
}

@media (max-width: 768px) {
    :root {
        --editorial-px: 1.2rem;
    }

    .ai-article-content {
        font-size: 1.25rem;
        line-height: 1.7;
        margin: 0 var(--editorial-px);
    }

    .texnox-deep-insight-container {
        margin: 3rem 0;
        /* REVERTED: Original insight mobile spacing */
        padding: 1.5rem;
    }
}

/* 5.2 Market Intel Box (Financial Analysis) */
.texnox-market-intel-box {
    margin: 1rem var(--editorial-px) 4rem;
    /* SYNCED with text */
    background: rgba(15, 17, 23, 0.15);
    /* Dark mode default */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Light Mode Polish - Removing the "grayness" */
.light-mode .texnox-market-intel-box {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 123, 255, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04), inset 0 0 20px rgba(255, 255, 255, 0.5);
}

.light-mode .texnox-market-intel-relevance-label {
    background: rgba(0, 123, 255, 0.05);
    color: #64748b;
    border-color: rgba(0, 123, 255, 0.1);
}

.light-mode .texnox-market-intel-forecast-label {
    color: #475569;
}

.light-mode .texnox-market-intel-forecast-text {
    color: #1e293b;
}

.texnox-market-intel-glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(20px);
}

.texnox-market-intel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.texnox-market-intel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin: 0;
}

.texnox-market-intel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: intel-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes intel-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.texnox-market-intel-relevance-label {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
}

.texnox-market-intel-impact {
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 12px;
    padding: 28px 20px;
    border: 1px solid transparent;
}

.texnox-market-intel-forecast-label {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.texnox-market-intel-forecast-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 500;
    font-style: italic;
    color: var(--text-bold);
}

.texnox-market-intel-impact-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

@media (max-width: 768px) {
    .texnox-market-intel-box {
        margin: 0.5rem var(--editorial-px) 2.5rem;
        padding: 16px;
    }

    .texnox-market-intel-impact {
        padding: 18px 15px;
        gap: 10px;
    }

    .texnox-market-intel-impact-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 768px) {
    body .intelligence-briefing-grid {
        padding-left: 2%;
        /* Force alignment with 92% navbar */
        padding-right: 2%;
        scroll-padding-left: 2%;
        gap: 12px;
    }
}

/* 5.4 Briefing Cards */
.briefing-title-container {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-bold);
    transition: color 0.3s ease;
    /* 3-Line Clamp Logic */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.briefing-card:hover .briefing-title-container {
    color: #007BFF;
}

@media (min-width: 768px) {
    .briefing-title-container {
        line-height: 1.5;
    }
}

.briefing-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    min-width: 0;
    /* Allow children to shrink */
    overflow: hidden;
}

.briefing-cat {
    color: #007BFF;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Truncate if too long */
    flex-shrink: 1;
    /* Allow to shrink to save time space */
}

.briefing-time {
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
    /* NEVER shrink the time */
    opacity: 0.7;
}

.texnox-deep-insight-container::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.05), transparent);
    transition: top 0.8s ease;
    pointer-events: none;
}

.texnox-deep-insight-container:hover::after {
    top: 100%;
}

.texnox-deep-insight-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.texnox-deep-insight-icon {
    width: 32px;
    height: 32px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #00F0FF;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.texnox-deep-insight-title {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #00F0FF;
    margin: 0;
}

.light-mode .texnox-deep-insight-title {
    color: #007BFF;
}

.light-mode .texnox-deep-insight-icon {
    color: #007BFF;
    background: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.2);
}

.texnox-deep-insight-content {
    color: var(--text-bold);
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* Premium List (Important Details) */
/* 5.3 Interactive Buttons (Load More) */
.texnox-load-more-button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: rgba(0, 123, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 100px;
    color: #007BFF;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.texnox-load-more-button:hover {
    background: #007BFF;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.3), 0 0 20px rgba(0, 123, 255, 0.2);
    border-color: #007BFF;
}

.texnox-load-more-button:active {
    transform: scale(0.96);
}

.dark .texnox-load-more-button {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dark .texnox-load-more-button:hover {
    background: #007BFF;
    border-color: #007BFF;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 123, 255, 0.3);
}

.texnox-premium-list-container {
    margin: 4rem 0;
    padding-left: 1.5rem;
}

.texnox-premium-list-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.texnox-premium-list-icon {
    font-size: 18px;
    color: #007BFF;
}

.texnox-premium-list-title {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #007BFF;
    margin: 0;
}

.texnox-premium-list-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.texnox-premium-list-wrapper li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: var(--text-bold);
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
}

.texnox-premium-list-wrapper li:hover {
    transform: translateX(12px);
    opacity: 1;
    color: #ffffff;
}

.light-mode .texnox-premium-list-wrapper li:hover {
    color: #007BFF;
}

.texnox-premium-list-wrapper li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #007BFF;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(0, 123, 255, 0);
}

.texnox-premium-list-wrapper li:hover::before {
    background: #00F0FF;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
    transform: rotate(45deg);
}

/* Knowledge Card (Detailed Article) */
.texnox-knowledge-card-container {
    margin: 4.5rem 0 1rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.light-mode .texnox-knowledge-card-container {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.03);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
}

.texnox-knowledge-card-header {
    margin-bottom: 2rem;
}


.texnox-knowledge-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-bold);
    margin: 0;
}

.dark .texnox-knowledge-card-container {
    background: rgba(15, 17, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .texnox-knowledge-card-container {
        margin: 2.5rem 0 0.5rem;
        border-radius: 20px;
        padding: 1.5rem;
    }
}

/* 5.2 Reading Panel & Share Bar */
.floating-share-bar {
    position: fixed;
    z-index: 9999;
    display: flex;
    background: rgba(15, 15, 20, 0.45);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    will-change: transform, opacity;
}

.light-mode .floating-share-bar {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.floating-share-bar button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.45s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.floating-share-bar button svg {
    width: 20px;
    height: 20px;
}

.floating-share-bar button:hover {
    transform: scale(1.25);
    color: #ffffff;
}

.floating-share-bar button.telegram:hover {
    color: #229ED9;
    filter: drop-shadow(0 0 8px rgba(34, 158, 217, 0.5));
}

.floating-share-bar button.x-twitter:hover {
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.floating-share-bar button.whatsapp:hover {
    color: #25D366;
    filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.5));
}

.floating-share-bar button.copy-link:hover {
    color: #007BFF;
    filter: drop-shadow(0 0 8px rgba(0, 123, 255, 0.5));
}

@media (min-width: 992px) {
    .floating-share-bar {
        top: 50%;
        left: 40px;
        transform: translateY(-50%) translateX(-200%);
        flex-direction: column;
        padding: 24px 12px;
        border-radius: 40px;
        gap: 15px;
        opacity: 0;
        pointer-events: none;
    }

    .floating-share-bar.share-bar-visible {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
        pointer-events: all;
        visibility: visible;
    }

    html .floating-share-bar.share-bar-visible.share-bar-hidden {
        transform: translateY(-50%) translateX(-200%);
        opacity: 0;
    }
}

@media (max-width: 991px) {
    .floating-share-bar {
        bottom: 30px;
        /* Slightly higher for reachability */
        left: 50%;
        transform: translateX(-50%) translateY(120%);
        padding: 12px 20px;
        border-radius: 100px;
        gap: 24px;
        opacity: 0;
        pointer-events: none;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    html .floating-share-bar.share-bar-visible {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        pointer-events: all;
        visibility: visible;
    }

    html .floating-share-bar.share-bar-visible.share-bar-hidden {
        transform: translateX(-50%) translateY(150%);
        opacity: 0;
    }
}

/* 
 * =============================================================
 * SECTION 6: SIDEBAR & WIDGETS
 * =============================================================
 */

.sidebar-widget-glass {
    background: var(--bg-card);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-premium);
    border-radius: 12px;
    padding: 20px;
}

.sidebar-widget-title {
    font-size: 12px;
    font-weight: 450;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-bold);
    opacity: 0.8;
    margin-bottom: 0px;
    white-space: nowrap;
}

.sidebar-list-item {
    display: flex;
    gap: 15px;
    padding: 16px 16px;
    border-bottom: 1px solid var(--border-subtle);
    align-items: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
}

.sidebar-list-item:hover {
    background: rgba(0, 123, 255, 0.04);
}

.sidebar-thumb-container {
    width: 90px;
    /* Fixed width for stability */
    height: 54px;
    /* Fixed height to match design */
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #f1f5f9;
    /* Placeholder background */
}

.sidebar-thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.sidebar-list-item:hover .sidebar-thumb-img {
    transform: scale(1.1);
}

.sidebar-item-title {
    font-size: 12px;
    /* Reduced by 1.5px for more space */
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Increased to 3 lines */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-bold);
    margin-bottom: 2px;
}

.sidebar-item-meta time {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #1e293b;
    /* Darker for accessibility */
    opacity: 1;
}

.dark .sidebar-item-meta time {
    color: #A0AAB2;
    /* High contrast suggested by user */
}

/* Newsletter Box Restoration */
.texnox-newsletter-box {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.newsletter-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.newsletter-input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 20px;
    color: var(--text-bold);
    font-size: 13px;
    text-align: center;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.newsletter-input:focus {
    background: rgba(0, 123, 255, 0.05);
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.1);
}

.light-mode .newsletter-input:focus {
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05), 0 0 0 1px #007BFF;
}

.newsletter-button {
    width: 100%;
    background: #007BFF;
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px -5px rgba(0, 123, 255, 0.4);
}

.newsletter-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px -5px rgba(0, 123, 255, 0.6);
}

.newsletter-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 
 * =============================================================
 * SECTION 7: SYSTEM UI & UTILITIES
 * =============================================================
 */

/* 7.1 Aurora Background Engine */
.css-aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: var(--aurora-bg);
    transition: background-color 0.5s ease;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(var(--blob-blur));
    opacity: var(--blob-opacity);
    animation: moveBlob 15s infinite alternate ease-in-out;
    will-change: transform;
    pointer-events: none;
    transform: translateZ(0);
}

.blob-1 {
    width: 50vw;
    height: 50vh;
    background: var(--blob-1);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 60vw;
    height: 60vh;
    background: var(--blob-2);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 45vw;
    height: 45vh;
    background: var(--blob-3);
    top: 30%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes moveBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(15%, 10%) scale(1.1);
    }

    100% {
        transform: translate(-10%, -15%) scale(0.9);
    }
}

/* 7.2 Toast Notifications */
.texnox-toast-container {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100%) scale(0.9);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.texnox-toast-container.toast-visible {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
}

.texnox-toast-content {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 123, 255, 0.3);
    padding: 12px 24px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 123, 255, 0.2);
    color: white;
    white-space: nowrap;
}

.light-mode .texnox-toast-content {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    border-color: rgba(0, 123, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.progress-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 9999px;
    box-shadow: 0 10px 30px -10px rgba(0, 123, 255, 0.3);
    color: #007BFF;
    font-weight: 900;
    transform: translateY(2rem) scale(0.9);
    opacity: 0;
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress-toast.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* 7.3 OLED Mode Overrides */
html.oled-mode .dark body,
html.oled-mode .dark html {
    background-color: #000000;
}

html.oled-mode .dark .css-aurora-bg {
    display: none;
}

/* 7.4 Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f6f7f8 25%, #edeef1 50%, #f6f7f8 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
    border-radius: 4px;
}

.dark .skeleton {
    background: linear-gradient(90deg, #1a1d23 25%, #23272f 50%, #1a1d23 75%);
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* 7.5 Final Layout Helpers */
.hero-glass-container {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(0, 123, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.dark .hero-glass-container {
    background: rgba(0, 123, 255, 0.03);
}

@media (max-width: 768px) {
    .hero-glass-container {
        width: 92%;
        margin-inline: auto;
    }
}

/* 7.6 Premium Reveal System (GPU Accelerated) */
.reveal-up,
.reveal-rtl {
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: transform, opacity;
}

.reveal-up {
    transform: translateY(30px);
}

.reveal-rtl {
    transform: translateX(30px);
}

.reveal-up.is-revealed,
.reveal-rtl.is-revealed {
    opacity: 1;
    transform: translate(0, 0);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.8s ease;
    transition-delay: 0s;
}

/* HOVER REFINEMENTS (Defined after reveal system to win naturally) */
.sidebar-list-item:hover {
    transform: translateX(12px);
}

/* PREMIUM METADATA CAPSULES (TexnoX Style) */
.meta-capsule-base {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    gap: 8px;
}

.meta-capsule-time {
    background: rgba(0, 0, 0, 0.05);
    color: #1e293b;
    /* Much darker for WCAG contrast */
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.dark .meta-capsule-time {
    background: rgba(255, 255, 255, 0.08);
    color: #A0AAB2;
    /* Lighter for dark mode */
    border-color: rgba(255, 255, 255, 0.15);
}

.meta-capsule-reading {
    background: rgba(0, 123, 255, 0.06);
    color: #007BFF;
    border: 1px solid rgba(0, 123, 255, 0.15);
}

.dark .meta-capsule-reading {
    background: rgba(0, 123, 255, 0.12);
    color: #38bdf8;
    border-color: rgba(0, 123, 255, 0.2);
}

.meta-capsule-base svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* ==========================================================================
   SECTION 8: DYNAMIC INTERACTIVE COMPONENTS
   ========================================================================== */

/* 1. Reveal Animation System - Optimized Visibility */
.reveal-up.is-revealed,
.reveal-rtl.is-revealed {
    opacity: 1;
    transform: translate(0, 0);
    visibility: visible;
}

/* 2. Targeted Component Interactivity */
.briefing-card,
.sidebar-list-item {
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.briefing-card:hover,
.sidebar-list-item:hover {
    border-color: rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

.dark .briefing-card:hover,
.dark .sidebar-list-item:hover {
    border-color: rgba(56, 189, 248, 0.4);
}



/* Global Fix for Sticky Context */
html {
    overflow: visible;
}

body {
    overflow-x: clip;
}

/* 
 * =============================================================
 * SECTION 10: ORB BUTTON SYSTEM
 * =============================================================
 */

.orb-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    color: #ffffff;
    background: transparent;
    padding: 8px 16px;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    text-transform: uppercase;
}

/* Light Mode Overrides */
.light-mode .orb-button {
    color: #1a1c24;
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .orb-button:hover {
    border-color: #8a2be2;
    background: rgba(138, 43, 226, 0.03);
}

.orb-dot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: #8a2be2;
    width: 8px;
    height: 8px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.orb-icon {
    color: #ffffff;
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
    transition: all 0.4s ease;
}

.orb-text {
    position: relative;
    z-index: 10;
    transition: transform 0.5s ease;
}

/* HOVER EFFECTS */
.orb-button:hover {
    border-color: rgba(138, 43, 226, 0.5);
    background: rgba(138, 43, 226, 0.05);
    padding-left: 8px;
    gap: 10px;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.15);
}

.orb-button:hover .orb-dot {
    width: 28px;
    height: 28px;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
}

.orb-button:hover .orb-icon {
    opacity: 1;
    transform: scale(1.1) rotate(0deg);
}

.orb-button:hover .orb-text {
    color: #ffffff;
}

/* 
 * =============================================================
 * SECTION 11: SHINY EFFECT ENGINE (Badges & UI)
 * =============================================================
 */

:root {
    --shiny-speed: 3s;
}

.shiny {
    position: relative;
    overflow: hidden;
}

.shiny::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-size: 200% 100%;
    animation: shine var(--shiny-speed) infinite linear;
    z-index: 2;
    /* Move above potential background elements */
}

/* Ensure content stays above the shine */
.shiny>* {
    position: relative;
    z-index: 3;
}

/* Light Mode: White Gleam */
body:not(.dark) .shiny::after {
    background-image: linear-gradient(120deg,
            transparent 30%,
            rgba(255, 255, 255, 0.6) 50%,
            transparent 70%);
}

/* Dark Mode: Deep Pulse */
body.dark .shiny::after {
    background-image: linear-gradient(120deg,
            transparent 30%,
            rgba(255, 255, 255, 0.15) 50%,
            transparent 70%);
}

@keyframes shine {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


/* Specialized Tags Shiny */
.texnox-badge-neon.shiny {
    /* Ensure the text stays above the gleam */
    isolation: isolate;
}

.shiny>* {
    position: relative;
    z-index: 2;
}

/* Force rounding for shiny tags (Tags at the bottom) */
.flex.flex-wrap.gap-2 .shiny {
    border-radius: 20px !important;
}

/* 11.2 Bot-Generated Content Styles */
.texnox-neon-tag {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    padding: 2px 10px;
    margin: 0 4px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.75em;
    line-height: 1;
    background: rgba(59, 130, 246, 0.1);
    color: var(--tag-color, #3b82f6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.texnox-data-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(0, 123, 255, 0.15);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 100px;
    color: #007BFF;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.1em;
    margin: 1.5rem 0 0.5rem 0;
    position: relative;
    overflow: hidden;
}

/* 11.3 Premium Neon-Glass Badge System */
.texnox-badge-neon {
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    border-width: 1px;
}

/* Purple (AI / Standard Dark) */
.badge-neon-purple {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.4);
    color: #f5f3ff;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.8), 0 0 2px rgba(0, 0, 0, 0.5);
}

.light-mode .badge-neon-purple {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.3);
    color: #5b21b6;
    /* High contrast purple */
    text-shadow: none;
}

/* Blue (Technology / Software) */
.badge-neon-blue {
    background: rgba(0, 123, 255, 0.2);
    border-color: rgba(0, 123, 255, 0.4);
    color: #f0f9ff;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.8), 0 0 2px rgba(0, 0, 0, 0.5);
}

.light-mode .badge-neon-blue {
    background: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.25);
    color: #1d4ed8;
    /* High contrast blue */
    text-shadow: none;
}

/* Green (Market / Business) */
.badge-neon-green {
    background: rgba(48, 209, 88, 0.2);
    border-color: rgba(48, 209, 88, 0.4);
    color: #f0fdf4;
    text-shadow: 0 0 10px rgba(48, 209, 88, 0.8), 0 0 2px rgba(0, 0, 0, 0.5);
}

.light-mode .badge-neon-green {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.25);
    color: #15803d;
    /* High contrast green */
    text-shadow: none;
}

/* Orange/Gold (Hardware) */
.badge-neon-orange {
    background: rgba(255, 149, 0, 0.2);
    border-color: rgba(255, 149, 0, 0.4);
    color: #fffbeb;
    text-shadow: 0 0 10px rgba(255, 149, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.5);
}

.light-mode .badge-neon-orange {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
    color: #b45309;
    /* High contrast orange */
    text-shadow: none;
}

/* 11.3 Sentiment Icons (Bullish/Bearish) */
.texnox-sentiment-icon {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    left: auto;
    z-index: 20;
    transition: all 0.3s ease;
}

/* Bullish - Neon Green in Dark, Forest Green in Light */
.texnox-sentiment-bullish {
    color: #30d158;
    filter: drop-shadow(0 0 8px rgba(48, 209, 88, 0.8)) drop-shadow(0 0 15px rgba(48, 209, 88, 0.4));
}

.light-mode .texnox-sentiment-bullish {
    color: #15803d;
    /* Forest Green for better look on light bg */
    filter: drop-shadow(0 4px 6px rgba(21, 128, 61, 0.2));
}

/* Bearish - Neon Red in Dark, Crimson in Light */
.texnox-sentiment-bearish {
    color: #ff375f;
    filter: drop-shadow(0 0 8px rgba(255, 55, 95, 0.8)) drop-shadow(0 0 15px rgba(255, 55, 95, 0.4));
}

.light-mode .texnox-sentiment-bearish {
    color: #be123c;
    /* Crimson Red for light mode */
    filter: drop-shadow(0 4px 6px rgba(190, 18, 60, 0.2));
}

/* 11.4 Bazar Analitikası Button - Refined without !important */
a.bazar-analitika-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(0, 123, 255, 0.05);
    border: 1px solid rgba(0, 123, 255, 0.1);
    border-radius: 0.375rem;
    color: #007BFF;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-decoration: none;
}

a.bazar-analitika-btn:hover {
    background: #007BFF;
    color: #ffffff;
    border-color: #007BFF;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.dark a.bazar-analitika-btn {
    background: rgba(0, 240, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: #38bdf8;
}

.dark a.bazar-analitika-btn:hover {
    background: #007BFF;
    color: #ffffff;
    border-color: #007BFF;
}

.light-mode .orb-button:hover .orb-text {
    color: #1a1c24;
    /* Dark color for light mode hover */
}