/* ==========================================================================
   THE LIFE DIGEST — ULTRA-LUXURY EDITORIAL MASTHEAD & MEGA MENU
   ========================================================================== */

:root {
    --lux-midnight: #070b12;
    --lux-slate-900: #0f172a;
    --lux-slate-800: #1e293b;
    --lux-slate-700: #334155;
    --lux-slate-600: #475569;
    --lux-slate-500: #64748b;
    --lux-slate-100: #f1f5f9;
    --lux-slate-50: #f8fafc;
    --lux-emerald: #0f766e;
    --lux-emerald-dark: #064e3b;
    --lux-emerald-light: #14b8a6;
    --lux-teal-subtle: #f0fdfa;
    --lux-gold: #d97706;
    --lux-gold-light: #fef3c7;
    --lux-gold-accent: #f59e0b;
    --lux-white: #ffffff;
    --lux-serif: 'Playfair Display', 'Merriweather', Georgia, serif;
    --lux-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --lux-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --lux-shadow-md: 0 4px 20px -2px rgba(0,0,0,0.08);
    --lux-shadow-lg: 0 12px 36px -4px rgba(0,0,0,0.12);
}

/* 1. TOP PRE-HEADER BAR */
.lux-topbar {
    background: linear-gradient(90deg, #070b12 0%, #0f172a 100%);
    color: #94a3b8;
    font-family: var(--lux-sans);
    font-size: 11.5px;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10001;
}

.lux-topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 7px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lux-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.lux-live-pulse {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    color: #e2e8f0;
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: 0.8px;
}

.lux-pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: luxPulse 2s infinite;
}

@keyframes luxPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.lux-topbar-date {
    color: #64748b;
    font-size: 11px;
}

.lux-topbar-divider {
    color: rgba(255,255,255,0.15);
}

.lux-topbar-issn {
    color: #cbd5e1;
    font-family: monospace;
    font-size: 10.5px;
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.08);
}

.lux-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lux-topbar-link {
    color: #94a3b8;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.15s ease;
}

.lux-topbar-link:hover {
    color: #38bdf8;
}

.lux-edition-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(15, 118, 110, 0.25);
    border: 1px solid rgba(20, 184, 166, 0.35);
    color: #5eead4;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 2. GRAND MASTHEAD */
.lux-masthead {
    background-color: var(--lux-white);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 10000;
}

.lux-masthead-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.lux-brand-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none !important;
    cursor: pointer;
}

/* Crest SVG Seal */
.lux-crest {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    filter: drop-shadow(0 3px 8px rgba(15, 118, 110, 0.22));
    transition: transform 0.25s ease;
}

.lux-brand-wrap:hover .lux-crest {
    transform: scale(1.04) rotate(2deg);
}

.lux-brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lux-brand-title {
    font-family: var(--lux-serif);
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--lux-slate-900);
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
}

.lux-brand-title span {
    color: var(--lux-emerald);
}

.lux-brand-subtitle {
    font-family: var(--lux-sans);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--lux-slate-500);
    line-height: 1.3;
}

/* Masthead Center Trust Meta */
.lux-masthead-center {
    display: flex;
    align-items: center;
    gap: 22px;
}

.lux-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--lux-sans);
    font-size: 11.5px;
    color: var(--lux-slate-600);
    font-weight: 600;
}

.lux-trust-icon {
    width: 20px;
    height: 20px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

/* Masthead Right CTA */
.lux-masthead-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lux-search-trigger {
    background: var(--lux-slate-100);
    border: 1px solid var(--lux-slate-200);
    color: var(--lux-slate-600);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lux-search-trigger:hover {
    background: #e2e8f0;
    color: var(--lux-slate-900);
}

.lux-briefing-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #064e3b 0%, #0f766e 100%);
    color: var(--lux-white) !important;
    font-family: var(--lux-sans);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.2s ease;
}

.lux-briefing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.4);
    background: linear-gradient(135deg, #04392b 0%, #115e59 100%);
}

.lux-briefing-btn .lux-gold-dot {
    width: 6px;
    height: 6px;
    background: #f59e0b;
    border-radius: 50%;
}

/* 3. STICKY MEGA-MENU NAVIGATION BAR */
.lux-navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 2px solid var(--lux-emerald);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: var(--lux-shadow-md);
}

.lux-navbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lux-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.lux-nav-item {
    position: relative;
}

.lux-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 15px 16px;
    font-family: var(--lux-sans);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--lux-slate-800);
    text-decoration: none !important;
    position: relative;
    transition: color 0.15s ease;
    text-transform: uppercase;
}

.lux-nav-link:hover,
.lux-nav-item.active .lux-nav-link {
    color: var(--lux-emerald);
}

.lux-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--lux-emerald);
    transform: scaleX(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lux-nav-item:hover .lux-nav-link::after,
.lux-nav-item.active .lux-nav-link::after {
    transform: scaleX(1);
}

.lux-chevron {
    font-size: 9px;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.lux-nav-item:hover .lux-chevron {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--lux-emerald);
}

/* MEGA DROPDOWN PANEL */
.lux-mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 680px;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    border: 1px solid var(--lux-slate-200);
    border-top: none;
    box-shadow: var(--lux-shadow-lg);
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 240px;
    gap: 22px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
    z-index: 10002;
}

.lux-nav-item:hover .lux-mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lux-mega-col h5 {
    font-family: var(--lux-sans);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--lux-emerald);
    margin: 0 0 14px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #ccfbf1;
}

.lux-mega-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lux-mega-links a {
    display: block;
    font-family: var(--lux-sans);
    font-size: 13px;
    color: var(--lux-slate-700);
    text-decoration: none !important;
    line-height: 1.4;
    transition: all 0.15s ease;
    padding-left: 0;
}

.lux-mega-links a:hover {
    color: var(--lux-emerald);
    padding-left: 5px;
}

/* Featured Card inside Mega Panel */
.lux-mega-feature {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.lux-mega-feature-tag {
    font-size: 10px;
    font-weight: 800;
    background: var(--lux-emerald);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 8px;
}

.lux-mega-feature-title {
    font-family: var(--lux-serif);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--lux-slate-900);
    line-height: 1.4;
    margin-bottom: 8px;
}

.lux-mega-feature-btn {
    font-family: var(--lux-sans);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--lux-emerald);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lux-mega-feature-btn:hover {
    color: var(--lux-emerald-dark);
}

/* SIMPLE DROPDOWN */
.lux-simple-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: #ffffff;
    border-radius: 0 0 10px 10px;
    border: 1px solid var(--lux-slate-200);
    border-top: none;
    box-shadow: var(--lux-shadow-lg);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    pointer-events: none;
    list-style: none;
    margin: 0;
    z-index: 10002;
}

.lux-nav-item:hover .lux-simple-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lux-simple-dropdown a {
    display: block;
    padding: 10px 20px;
    font-family: var(--lux-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--lux-slate-700);
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.lux-simple-dropdown a:hover {
    background-color: #f0fdfa;
    color: var(--lux-emerald);
    padding-left: 24px;
}

/* SEARCH MODAL TRIGGER / EXPANDER */
.lux-nav-search-bar {
    display: flex;
    align-items: center;
    position: relative;
}

.lux-quick-search-input {
    background: var(--lux-slate-100);
    border: 1px solid var(--lux-slate-200);
    border-radius: 20px;
    padding: 6px 14px 6px 32px;
    font-size: 12px;
    font-family: var(--lux-sans);
    color: var(--lux-slate-800);
    width: 170px;
    transition: all 0.2s ease;
}

.lux-quick-search-input:focus {
    width: 230px;
    background: #ffffff;
    border-color: var(--lux-emerald);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.lux-quick-search-icon {
    position: absolute;
    left: 10px;
    font-size: 12px;
    color: var(--lux-slate-500);
    pointer-events: none;
}

/* 4. MOBILE HAMBURGER & HEADER */
.lux-mobile-trigger {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.lux-hamburger-line {
    width: 22px;
    height: 2px;
    background-color: var(--lux-slate-800);
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* 5. LUXURY OFF-CANVAS DRAWER (MOBILE) */
.lux-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 18, 0.7);
    backdrop-filter: blur(6px);
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.lux-drawer {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    height: 100vh;
    background: #090e17;
    color: #e2e8f0;
    box-shadow: -8px 0 30px rgba(0,0,0,0.5);
    z-index: 20001;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.lux-drawer-overlay.active .lux-drawer {
    right: 0;
}

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

.lux-drawer-close {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.lux-drawer-close:hover {
    background: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
}

.lux-drawer-search {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.lux-drawer-search input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 13px;
    font-family: var(--lux-sans);
}

.lux-drawer-search input:focus {
    outline: none;
    border-color: #14b8a6;
    background: rgba(255,255,255,0.09);
}

.lux-drawer-nav {
    padding: 12px 0;
    flex-grow: 1;
}

.lux-drawer-item {
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.lux-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

.lux-drawer-link:hover {
    background: rgba(20, 184, 166, 0.1);
    color: #5eead4;
}

.lux-drawer-sublist {
    display: none;
    background: rgba(0,0,0,0.25);
    padding: 8px 0 12px 30px;
    list-style: none;
    margin: 0;
}

.lux-drawer-sublist.open {
    display: block;
}

.lux-drawer-sublist a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #94a3b8;
    text-decoration: none !important;
}

.lux-drawer-sublist a:hover {
    color: #2dd4bf;
}

.lux-drawer-footer {
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.lux-drawer-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #10b981;
    font-weight: 700;
    margin-bottom: 12px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1040px) {
    .lux-masthead-center {
        display: none;
    }
    .lux-nav-link {
        padding: 14px 10px;
        font-size: 12.5px;
    }
}

@media (max-width: 860px) {
    .lux-navbar {
        display: none;
    }
    .lux-masthead-right {
        display: none;
    }
    .lux-masthead-inner {
        padding: 10px 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    .lux-brand-wrap {
        gap: 10px;
        flex: 1;
        min-width: 0;
    }
    .lux-crest {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }
    .lux-brand-title {
        font-size: 18px;
        letter-spacing: 0.8px;
        white-space: nowrap;
    }
    .lux-brand-subtitle {
        font-size: 7.5px;
        letter-spacing: 0.8px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 220px;
    }
    .lux-mobile-trigger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: rgba(15, 118, 110, 0.08);
        border: 1px solid rgba(15, 118, 110, 0.2);
        border-radius: 6px;
        padding: 8px 10px;
        cursor: pointer;
        flex-shrink: 0;
        margin-left: 8px;
    }
    .lux-hamburger-line {
        width: 22px;
        height: 2.2px;
        background-color: var(--lux-emerald);
        border-radius: 2px;
    }
    .lux-topbar-left .lux-topbar-date,
    .lux-topbar-left .lux-topbar-divider:first-of-type {
        display: none;
    }
    .lux-topbar-right {
        display: none;
    }
}
/* MOBILE ULTRA-CLEAN MASTHEAD & VISIBLE HAMBURGER */
@media (max-width: 860px) {
    .lux-navbar {
        display: none !important;
    }
    .lux-masthead-center,
    .lux-masthead-right {
        display: none !important;
    }
    .lux-masthead-inner {
        padding: 10px 16px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .lux-brand-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        max-width: calc(100% - 60px) !important;
    }
    .lux-crest {
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0 !important;
    }
    .lux-brand-title {
        font-size: 19px !important;
        letter-spacing: 0.8px !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
    .lux-brand-subtitle {
        display: none !important;
    }
    .lux-mobile-trigger {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        background: #f0fdfa !important;
        border: 1px solid #99f6e4 !important;
        border-radius: 6px !important;
        padding: 8px 9px !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        width: 38px !important;
        height: 36px !important;
        box-sizing: border-box !important;
    }
    .lux-hamburger-line {
        width: 18px !important;
        height: 2px !important;
        background-color: #0f766e !important;
        border-radius: 2px !important;
    }
}
