:root {
    --gold: #c8a84b;
    --gold-light: #f0d080;
    --gold-dark: #a07830;
    --green: hwb(106 29% 46%); 
    --green-og: #4a6741;
    --green-dark: #2e3d2a;
    --cream: #faf7f0;
    --gold-luxury: #a07830;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--green);
    background-image: url('Cur10saXCover8x11.png');
    background-size: cover;
    background-position: calc(50% - 6px) 75px;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: 'Lora', Georgia, serif;
    color: var(--cream);
    min-height: 100vh;
}

/* NAV — tall floating header */
nav {
    background: rgba(30,42,26,0.97);
    border-bottom: 1px solid rgba(200,168,75,0.25);
    padding: 11px 40px 11px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 200;
    min-height: 110px;
}

.nav-left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; 
    z-index: 2;  
    width: 155px;
    height: 155px;
}

/* NAV lightbulb-cur10sa.x logo-stack */
.logo-stack {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.nav-lightbulb {
    position: absolute;
    width: 4.4rem;
    height: 3.3rem;
    object-fit: contain;
    opacity: 0.92;
    z-index: 2;
}

.nav-logo {
    position: absolute;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-size: 1.65rem;  /* can be 1.35 */
    text-align: center;
    line-height: 1.65;
    white-space: nowrap;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
    display: inline-block;
    transform: scaleY(1.65);
    transform-origin: center; 
    z-index: 3;
}
    .nav-lightbulb {
        position: absolute;
        width: 4.4rem;
        height: 4.4rem;
        object-fit: contain;
        opacity: 0.92;
        z-index: 2;
    }

.luxury-gold, .luxury-x {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 1.1em;
    font-style: normal;
    vertical-align: middle;
    background: linear-gradient(135deg, #c8a84b, #f0d080, #a07830);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding: 0 2px;
}

.nav-links a:hover { color: var(--gold-light); }
.nav-links {
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}

.nav-links a {
    font-family: 'Lora', serif;
    color: rgba(240,208,128,0.7);
    font-size: 0.88rem;
    margin-left: 24px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s;
}

/* FLOATING TITLE BOX inside nav */
.nav-title {
    position: absolute;
    left: 50%;
    margin: 0.25rem;
    transform: translateX(-50%);
    text-align: center;
    background: rgba(40,58,34,0.78);
    border: 3px double rgba(200,168,75,0.38);
    border-radius: 16px;
    padding: 22px 44px 22px;
    box-shadow:
     0 8px 40px rgba(0,0,0,0.5),
     0 0 0 0.8px rgba(200,168,75,0.6),
     0 0 24px 8px rgba(200,168,75,0.35),
     0 0 60px 16px rgba(200,168,75,0.12),
     inset 0 1px 0 rgba(200,168,75,0.12);
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
}

.nav-title h1 {
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 1px;
}

.nav-title .tagline-top {
    color: rgba(240,208,128,0.65);
    font-style: italic;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0px;
}

.nav-title .tagline-bottom, .nav-title .tagline-copy {
    color: rgba(240,208,128,0.6);
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.8px;
    margin-top: 8px;
}

.nav-title .tagline-bottom { font-size: 0.77rem; margin-bottom: 11px; }
.nav-title .tagline-copy { font-size: 0.42rem; }
.nav-title .dot { color: rgba(200,168,75,0.35); margin: 0 5px; }

/* TAB BAR */
.tab-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 20px 12px;
    flex-wrap: wrap; 
    flex-direction: row;
    position: sticky;
    top: 180px;
    z-index: 300; /* INCREASED: Layer this above the spotlight panel */
}

.tab-group { position: relative; }
.tab-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(200,168,75,0.3);
    color: rgba(240,208,128,0.8);
    padding: 9px 20px;
    border-radius: 24px;
    font-family: 'Lora', serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow:
     0 4px 18px rgba(0,0,0,0.35),
     0 0 12px rgba(200,168,75,0.1);
}

.tab-btn:hover, .tab-btn.active {
    background: rgba(200,168,75,0.2);
    border-color: var(--gold);
    color: var(--gold-light);
}

.tab-btn .arrow {
    font-size: 0.65rem;
    transition: transform 0.2s;
    opacity: 0.7;
}

.tab-group.open .tab-btn .arrow { transform: rotate(180deg); }

/* DROPDOWN */
.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 270px;
    background: rgba(22,34,20,0.98);
    border: 1px solid rgba(200,168,75,0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.55);
    z-index: 200;
}

.tab-group.open .dropdown {
    display: block;
    animation: dropIn 0.18s ease;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dropdown-item {
    display: block;
    padding: 13px 20px;
    color: rgba(240,208,128,0.78);
    font-family: 'Lora', serif;
    font-size: 0.88rem;
    font-style: italic;
    cursor: pointer;
    border-bottom: 1px solid rgba(200,168,75,0.1);
    transition: all 0.15s;
    text-align: left;
}

.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover {
    background: rgba(200,168,75,0.14);
    color: var(--gold-light);
    padding-left: 26px;
}

.dropdown-item.active-post {
    background: rgba(200,168,75,0.1);
    color: var(--gold);
    border-left: 3px solid var(--gold);
}

.dropdown-item .post-date {
    display: block;
    font-size: 0.72rem;
    opacity: 0.5;
    margin-top: 3px;
    font-style: italic;
}

/* THE SHARP AMAZON STOREFRONT GRID ACCENTS */
.book-showcase-section {
    max-width: 800px;
    width: calc(100% - 40px);
    margin: 48px auto;
    text-align: center;
    position: relative;
    z-index: 40;
    background: rgba(30, 42, 26, 0.4);
    border: 1px double var(--gold);
    border-radius: 16px;
    padding: 32px 20px;
    z-index: 100; /* Flat uniform z-index matching the layout */
}

/* 🛠️ Fixed to allow clean flow, structural boundaries, and user clicks */
.book-title-hero {
    width: 100%;
    max-width: 680px;
    margin: 0 auto 2rem auto;
    z-index: 100;
    text-align: center;
    background: rgba(40,58,34,0.78);
    border: 2px double rgba(200,168,75,0.38);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 
        0 8px 40px rgba(0,0,0,0.5), 
        0 0 0 0.8px rgba(200,168,75,0.6), 
        0 0 24px 8px rgba(200,168,75,0.35);
}

.book-title-hero h2 {
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 8px;

}

.section-label { color: var(--cream); margin-top: 1rem; }

.showcase-section-title {
    font-family: 'Cinzel', serif;
    color: var(--cream);
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.showcase-section-subtitle {
    font-family: 'Lora', serif;
    color: rgba(240, 208, 128, 0.7);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 20px;
}

.book-card {
    background: rgba(30, 42, 26, 0.75);
    border: 1px solid rgba(200, 168, 75, 0.25);
    border-radius: 14px;
    padding: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.book-card img {
    border: 2px double rgba(200, 168, 75, 0.8);
    max-width: 100%;
    height: auto;
    max-height: 450px;
}

/* BOOKS GRID SYSTEM */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto 0;
    z-index: 100;
}

/* 🎥 Luxury Cinematic Video Wrapper - Patched & Operational */
.video-wrapper {
    position: relative;
    width: 100%;
    margin: 1.5rem auto;
    padding: 24px; 
    background: var(--green-dark, #2e3d2a); 
    border: 1px solid var(--gold, #c8a84b); 
    outline: 3px double var(--gold-light, #f0d080);
    outline-offset: -12px; 
    border-radius: 12px;
    box-shadow: 0 12px 50px rgba(0,0,0,0.45);
    box-sizing: border-box; 
    z-index: 100;
}

.video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; 
    object-fit: cover;
    border-radius: 6px; 
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

/* SPOTLIGHT CONTAINER */
.spotlight-wrap {
    position: relative;
    max-width: 800px;
    width: calc(100% - 40px);
    margin: 110px auto 0;
    padding: 0 0 20px;
    z-index: 100; /* Flat uniform z-index matching the layout */
}

.spotlight-panel {
    position: sticky;
    top: 236; 		/* HARD BOUNDARY: 180px (tabs) + 56px clearance from tab-bar */
    z-index: 100;
    background: rgba(255,253,245,0.88);
    border-radius: 16px;
    border: 1.5px solid rgba(192,160,90,0.35);
    box-shadow: 0 16px 60px rgba(0,0,0,0.35);
    overflow: hidden;
    min-height: auto;
    width: 100%; 	/* Matches your exact uniform layout structure */
}

.welcome-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
    min-height: 420px;
}

.welcome-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    background: linear-gradient(135deg, rgba(200,168,75,0.35), rgba(160,120,48,0.25));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.welcome-state p {
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(74,103,65,0.55);
}

.post-container {
    display: none;
    padding: 46px 56px 56px;
    animation: fadeIn 0.3s ease;
}

.post-container.visible { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: .8; transform: translateY(0); }
}

.post-category-badge {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    font-family: 'Lora', serif;
}

.cat-life { background: #4a8c3f; }
.cat-coding { background: #275889; }
.cat-challenges { background: #3a6b8c; }
.cat-virtues { background: #8c6b3a; }
.cat-love { background: #723f8c }

.post-title {
    font-family: 'Cinzel', serif;
    font-style: normal;
    color: #7a5c1e;
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 8px;
}

.post-meta {
    font-size: 0.82rem;
    color: #aaa;
    font-style: italic;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(192,160,90,0.2);
}

.post-body {
    font-family:'Lora',serif;
    color:#3b4a2f;
    line-height:1.9;
    font-size:1.02rem;
}

.post-body p { margin-bottom: 1.3em; }

.post-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(192,160,90,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.post-author, .post-copyright, .back-link {
    font-family:'Playfair Display',serif;
    color:#7a5c1e;
    font-size:1.05rem;
}

/* ==========================================================================
   📱 RESPONSIVE MEDIA BREAKPOINTS (Patched and Restructured)
   ========================================================================== */
@media (max-width: 768px) {
    .tab-bar {
        flex-wrap: nowrap; 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch; 
        padding-bottom: 8px; 
    }
    .tab-bar::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 640px) {
    nav { padding: 14px 18px; min-height: 100px; }
    .nav-title { padding: 10px 18px 9px; white-space: normal; max-width: 55vw; }
    .nav-title h1 { font-size: 1.2rem; }
    .nav-title .tagline-top { font-size: 0.72rem; }
    .nav-title .tagline-bottom { font-size: 0.75rem; }
    .nav-title .tagline-copy { font-size: 0.15rem; }
    .tab-bar { gap: 6px; padding: 10px 10px 14px; top: 100px; }
    .tab-btn { padding: 8px 13px; font-size: 0.78rem; }
    .dropdown { min-width: 220px; }
    .post-container { padding: 26px 22px 36px; }
    .post-title { font-size: 1.45rem; }
    .spotlight-wrap { padding: 0 12px 20px; }
}
