/* --- GLOBAL CORE STYLES --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0d1015;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}

body {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0d1015;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 { 
    font-family: 'Orbitron', sans-serif; 
    color: #ffffff; 
    text-transform: uppercase; 
    letter-spacing: 1.5px;
}

h1 { 
    font-size: clamp(2.5rem, 8vw, 4rem); 
    margin-bottom: 0; 
    text-shadow: 0 0 10px #d4af37, 0 0 20px rgba(212, 175, 55, 0.5); 
    letter-spacing: 3px; 
}

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 4px;
    border-radius: 4px;
}

/* --- STRUCTURAL CONTAINERS --- */
.top-bar,
header,
.series-jump-menu-container,
.series-group,
main > section:not(.hero-lead-magnet),
.social-video-feed,
footer {
    width: 90%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* --- THE TOP BAR --- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(26, 30, 36, 0.95);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-bottom: 1px solid #333;
    border-radius: 4px;
    margin-top: 40px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-links a { 
    color: #b3b3b3; 
    text-decoration: none; 
    margin-right: 15px; 
    font-size: 1.2rem; 
    transition: color 0.3s ease, transform 0.3s ease; 
    display: inline-block; 
}

.social-links a:hover { 
    color: #d4af37; 
    transform: translateY(-2px); 
}

.scrolling-text-container { 
    flex: 1; 
    overflow: hidden; 
    white-space: nowrap; 
    margin: 0 20px; 
    position: relative; 
    height: 24px; 
}

.scrolling-text { 
    position: absolute; 
    top: 50%; 
    animation: bounce-horizontal 12s ease-in-out infinite alternate; 
}

.scrolling-text a { 
    color: #d4af37; 
    text-decoration: none; 
    font-weight: bold; 
    letter-spacing: 0.5px; 
}

@keyframes bounce-horizontal {
    0% { left: 0; transform: translate(0, -50%); }
    100% { left: 100%; transform: translate(-100%, -50%); }
}

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.header-text { 
    text-align: right; 
}

.site-logo { 
    max-width: 180px; 
    height: auto; 
    transition: transform 0.3s ease; 
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.1));
}

.site-logo:hover { 
    transform: scale(1.02); 
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.3));
}

nav a { 
    text-decoration: none; 
    color: #b3b3b3; 
    margin-left: 20px; 
    font-weight: bold; 
    transition: all 0.3s ease; 
    letter-spacing: 1px; 
}

nav a:hover, .active-link { 
    color: #ffffff !important; 
    text-shadow: 0 0 8px #d4af37; 
}

/* =========================================
   HOME PAGE & LEAD MAGNET STYLES
   ========================================= */
.hero-lead-magnet {
    width: 100%;
    min-height: 500px;
    background: linear-gradient(to right, rgba(13, 16, 21, 0.95) 0%, rgba(13, 16, 21, 0.4) 100%), url('hero-bg.JPG') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; 
    padding: 80px 20px;
    margin-bottom: 60px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-inner {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: flex-start;
}

.hero-content-box {
    background: rgba(13, 16, 21, 0.85);
    padding: 35px; 
    border-radius: 8px;
    max-width: 400px; 
    border: 1px solid #444;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    text-align: left;
    backdrop-filter: blur(8px);
}

.hero-content-box h2 {
    font-size: 1.8rem; 
    margin-top: 0;
    margin-bottom: 12px;
    color: #d4af37;
}

.hero-content-box p {
    font-size: 1.05rem; 
    margin-bottom: 25px;
    color: #e0e0e0;
    line-height: 1.5;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lead-form input[type="email"] {
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #333;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    background: #fff;
    color: #121212;
    transition: all 0.3s ease;
}

.lead-form input[type="email"]:focus { 
    outline: none; 
    border-color: #d4af37; 
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.lead-form .buy-button {
    margin: 0;
    font-size: 1.05rem;
    padding: 12px;
    width: 100%;
}

/* --- HOME PAGE: LATEST RELEASE CONTAINER --- */
.book-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    padding: 30px;
    background-color: #1a1e24;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    align-items: center;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.book-container:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    border-color: #444;
}

.book-cover { 
    width: 100%; 
    max-width: 250px; 
    height: auto; 
    border-radius: 4px; 
    transition: transform 0.4s ease; 
    flex-shrink: 0; 
    display: block; 
}

.book-container:hover .book-cover { 
    transform: scale(1.03); 
}

/* --- STATIC VIDEO CARDS --- */
.social-video-feed { 
    margin-top: 60px; 
    padding-top: 40px; 
    border-top: 1px solid #333; 
    text-align: center; 
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.static-card { 
    background: #1a1e24; 
    border: 1px solid #333; 
    padding: 10px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    border-radius: 6px; 
}

.static-card:hover { 
    transform: translateY(-5px); 
    border-color: #d4af37; 
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15); 
}

.video-placeholder {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-bottom: 10px;
    border: 1px solid #444;
}

.static-card p { 
    font-size: 0.9rem; 
    color: #b3b3b3; 
    margin: 5px 0 0; 
}

/* =========================================
   BOOKS PAGE SPECIFIC STYLES
   ========================================= */
.series-jump-menu-container {
    position: relative;
    margin-bottom: 50px;
}

.series-jump-menu { 
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px; 
    background: #1a1e24; 
    border-radius: 8px; 
    border: 1px solid #333; 
    overflow: hidden;
}

.series-jump-menu .tab-link {
    white-space: nowrap;
    text-decoration: none;
    color: #b3b3b3;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.series-group { 
    margin-bottom: 80px; 
    display: none; 
    scroll-margin-top: 120px;
}

.series-group.active { 
    display: block; 
    animation: fadeIn 0.5s ease; 
}

.series-book-card { 
    background-color: #1a1e24; 
    border: 1px solid #333; 
    border-radius: 8px; 
    padding: 25px 20px; 
    text-align: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.series-book-card:hover {
    transform: translateY(-5px);
    border-color: #444;
    box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}

.series-book-card img { 
    width: 100%; 
    height: auto; 
    max-width: 250px;
    border-radius: 4px; 
    margin-bottom: 15px; 
    transition: transform 0.4s ease; 
    flex-shrink: 0; 
    display: block; 
}

.series-book-card:hover img { 
    transform: scale(1.03); 
}

.series-promo-box { 
    margin-top: 40px; 
    padding: 30px; 
    background: rgba(32, 34, 133, 0.1); 
    border: 1px solid #202285; 
    border-radius: 8px; 
    text-align: center; 
}

.continuity-link-box {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.continuity-text {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.continuity-link {
    color: #d4af37;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.continuity-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* --- SHARED BUTTONS --- */
.buy-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.buy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #d4af37, #e6c860);
    color: #121212;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    letter-spacing: 1px;
    border: 1px solid transparent;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    filter: brightness(1.1);
}

.buy-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-amazon { background: #FF9900; color: #111; border-color: #e68a00; }
.btn-amazon:hover { box-shadow: 0 8px 20px rgba(255, 153, 0, 0.3); }

.btn-audible { background: #232f3e; color: #fff; border-color: #1a232e; }
.btn-audible:hover { box-shadow: 0 8px 20px rgba(35, 47, 62, 0.4); }

.btn-legion { background: #202285; color: #fff; border-color: #171966; }
.btn-legion:hover { box-shadow: 0 8px 20px rgba(32, 34, 133, 0.4); }

footer { 
    margin-top: 80px; 
    margin-bottom: 40px; 
    text-align: center; 
    font-size: 0.95rem; 
    color: #888; 
    letter-spacing: 1px; 
}

/* --- MOBILE QUERIES --- */
@media (max-width: 900px) {
    .book-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-text { 
        text-align: center; 
        margin-top: 10px; 
    }
    
    nav {
        margin-top: 15px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    nav a { margin-left: 0; }
    
    .hero-inner { justify-content: center; }
    
    .hero-content-box { 
        text-align: center; 
        padding: 25px;
    }
    
    .book-container { 
        flex-direction: column; 
        text-align: center; 
        padding: 20px;
    }

    .top-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;