/* ==========================================================================
   MANUEL DE TEFFÉ - DESIGN SYSTEM & STYLESHEET (CINEMATIC NUCLEAR WESTERN)
   ========================================================================== */

/* 
   GDPR (DSGVO) COMPLIANCE NOTE:
   No external connections are made to third-party CDNs or Google Fonts.
   All typography uses locally hosted font assets (.woff2) defined below.
*/

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/playfair-display-regular.woff2') format('woff2'),
         local('Playfair Display'), local('PlayfairDisplay-Regular'),
         Georgia, serif;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/playfair-display-italic.woff2') format('woff2'),
         local('Playfair Display Italic'), local('PlayfairDisplay-Italic'),
         Georgia, serif;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/playfair-display-700.woff2') format('woff2'),
         local('Playfair Display Bold'), local('PlayfairDisplay-Bold'),
         Georgia, serif;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/inter-regular.woff2') format('woff2'),
         local('Inter'), local('Inter-Regular'),
         system-ui, -apple-system, sans-serif;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/inter-600.woff2') format('woff2'),
         local('Inter SemiBold'), local('Inter-SemiBold'),
         system-ui, -apple-system, sans-serif;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/inter-700.woff2') format('woff2'),
         local('Inter Bold'), local('Inter-Bold'),
         system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   CSS CUSTOM PROPERTIES (THEME TOKENS)
   ========================================================================== */
:root {
    /* Color Palette - Updated to match Django_Cover_ITAL.jpeg cover artwork */
    --color-bg-base: hsl(214, 28%, 7%);           /* Deep Charcoal Obsidian Slate (#0d1117) */
    --color-bg-surface: hsl(215, 25%, 12%);       /* Slate Card Background (#161e29) */
    --color-bg-elevated: hsl(215, 22%, 17%);      /* Raised Slate Background (#212c3b) */
    
    --color-accent-amber: hsl(38, 92%, 50%);      /* Glowing Golden Yellow (#f59e0b) */
    --color-accent-amber-glow: hsla(38, 92%, 50%, 0.15);
    --color-accent-rust: hsl(24, 100%, 45%);      /* Title Sunset Orange (#e65c00) */
    --color-accent-rust-dark: hsl(24, 100%, 30%); /* Fiery Crimson Rust (#993d00) */
    --color-accent-green: hsl(145, 63%, 49%);     /* Rad-Safe Green (Status Badge) */
    --color-accent-green-bg: hsla(145, 63%, 49%, 0.1);

    /* Text Colors */
    --color-text-primary: hsl(210, 20%, 94%);     /* Cool Parchment Off-White (#f1f5f9) */
    --color-text-secondary: hsl(210, 14%, 80%);   /* Slate Grey for paragraphs (#cbd5e1) */
    --color-text-muted: hsl(210, 10%, 60%);       /* Muted Steel Blue (#94a3b8) */
    --color-text-inverse: hsl(214, 28%, 7%);      /* Dark Background Inverse */

    /* Typography Definitions */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Shadows & Glows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.9);
    --glow-amber: 0 0 20px hsla(38, 92%, 50%, 0.3);
    --glow-rust: 0 0 20px hsla(24, 100%, 45%, 0.35);

    /* Animation Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Layout Dimensions */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

/* ==========================================================================
   RESET & BASE ELEMENT STYLES
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent-rust) var(--color-bg-base);
}

body {
    font-family: var(--font-body);
    line-height: 1.625;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--color-bg-surface);
    border: 2px solid var(--color-bg-base);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-rust);
}

/* Base Typographical Elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

a {
    color: var(--color-accent-amber);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover, a:focus {
    color: var(--color-accent-rust);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Focus styling for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--color-accent-amber);
    outline-offset: 4px;
}

/* ==========================================================================
   LAYOUT CONTAINERS (BLOCK STRUCTURES)
   ========================================================================== */
.site-wrapper {
    position: relative;
    z-index: 1;
}

/* Subtle background radiation grid (ambient canvas) */
.ambient-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.03;
    background-size: 60px 60px;
    background-image: 
        linear-gradient(to right, var(--color-text-primary) 1px, transparent 1px),
        linear-gradient(to bottom, var(--color-text-primary) 1px, transparent 1px);
}

.ambient-dust {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
    background: radial-gradient(circle at 80% 20%, hsla(16, 82%, 50%, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 10% 70%, hsla(43, 100%, 50%, 0.06) 0%, transparent 60%);
}

.section-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 100px 24px;
}

@media (max-width: 768px) {
    .section-container {
        padding: 70px 20px;
    }
}

/* Flex / Grid Grid Utilities */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .grid-2col {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: hsla(214, 28%, 7%, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsla(210, 14%, 80%, 0.08);
    z-index: 100;
}

.header-inner {
    max-width: var(--container-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-symbol {
    color: var(--color-accent-amber);
    filter: drop-shadow(var(--glow-amber));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--color-accent-amber);
}

.lang-selector {
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.lang-select {
    background-color: var(--color-bg-surface);
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.lang-select:hover,
.lang-select:focus {
    border-color: var(--color-accent-amber);
    color: var(--color-accent-amber);
}

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

@media (max-width: 768px) {
    .lang-selector {
        margin-left: auto;
        margin-right: 15px;
    }
}

.theme-toggle-container {
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.theme-toggle-btn:hover {
    color: var(--color-accent-amber);
    background-color: rgba(255, 255, 255, 0.05);
}

html:not([data-theme="light"]) .moon-icon {
    display: none;
}

html[data-theme="light"] .sun-icon {
    display: none;
}

html[data-theme="light"] .theme-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .theme-toggle-container {
        margin-left: 0;
        margin-right: 15px;
    }
}

/* Mobile Toggle Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 280px;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-bg-surface);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 24px;
        transition: right var(--transition-medium);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        width: 100%;
        gap: 24px;
        margin-bottom: 40px;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    }
}

/* ==========================================================================
   BUTTONS & ACCENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: transform var(--transition-fast), 
                background-color var(--transition-fast), 
                box-shadow var(--transition-fast);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary,
a.btn-primary,
.btn-primary a {
    background-color: var(--color-accent-amber);
    color: var(--color-text-inverse);
    box-shadow: var(--glow-amber);
}

.btn-primary:hover, .btn-primary:focus,
a.btn-primary:hover, a.btn-primary:focus,
.btn-primary:hover a, .btn-primary:focus a {
    background-color: #ffc425;
    color: var(--color-text-inverse);
    box-shadow: 0 0 30px hsla(43, 100%, 50%, 0.45);
    transform: translateY(-2px);
}

.btn-secondary,
a.btn-secondary,
.btn-secondary a {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover, .btn-secondary:focus,
a.btn-secondary:hover, a.btn-secondary:focus,
.btn-secondary:hover a, .btn-secondary:focus a {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--color-accent-amber);
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

.btn-rust,
a.btn-rust,
.btn-rust a {
    background-color: var(--color-accent-rust);
    color: var(--color-text-primary);
    box-shadow: var(--glow-rust);
}

.btn-rust:hover, .btn-rust:focus,
a.btn-rust:hover, a.btn-rust:focus,
.btn-rust:hover a, .btn-rust:focus a {
    background-color: #ef531c;
    color: var(--color-text-primary);
    box-shadow: 0 0 30px hsla(16, 82%, 50%, 0.5);
    transform: translateY(-2px);
}

/* Status & Warning Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background-color: var(--color-accent-green-bg);
    border: 1px solid var(--color-accent-green);
    color: var(--color-accent-green);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
}

.badge-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent-green);
    box-shadow: 0 0 8px var(--color-accent-green);
    display: inline-block;
}

/* ==========================================================================
   SECTION 1: HERO BANNER (DJANGO BEGINS)
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--header-height) + 40px);
    min-height: 95vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(to right, rgba(10, 12, 18, 0.9) 20%, rgba(10, 12, 18, 0.65) 100%), url('yjfh.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-right-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tag {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent-rust);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 540px;
}

.mockup-3d-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    perspective: 1500px;
    animation: ambientFloat 6s ease-in-out infinite;
}

.mockup-3d-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.5;
    transform-style: preserve-3d;
    transform: rotateY(-22deg) rotateX(10deg);
    transition: transform var(--transition-slow);
}

.mockup-3d-container:hover .mockup-3d-wrapper {
    transform: rotateY(-8deg) rotateX(5deg) translateY(-8px);
}

.mockup-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: 2;
    border-radius: 2px 10px 10px 2px;
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-spine {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 100%;
    background: #0f1013;
    transform: rotateY(-90deg);
    transform-origin: left;
    z-index: 1;
    box-shadow: inset -10px 0 16px rgba(0, 0, 0, 0.85);
}

.mockup-shadow {
    position: absolute;
    bottom: -40px;
    left: 5%;
    width: 90%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
    transform: rotateX(90deg) translateZ(-40px);
    pointer-events: none;
    z-index: -1;
}

/* ==========================================================================
   SECTION 2: ABOUT THE AUTHOR & ACCOLADES
   ========================================================================== */
.about-section {
    background-color: var(--color-bg-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

/* Asymmetrical columns: 40% portrait, 60% text */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.author-frame {
    position: relative;
    border: 1px dashed var(--color-accent-rust);
    padding: 12px;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.01);
}

.author-portrait {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-medium);
}

.author-portrait:hover {
    transform: scale(1.02);
}

.author-portrait-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-bg-base) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Elegant line details representing a framed camera viewfinder */
.author-portrait-placeholder::before,
.author-portrait-placeholder::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--color-accent-amber);
    border-style: solid;
    pointer-events: none;
}
.author-portrait-placeholder::before {
    top: 20px;
    left: 20px;
    border-width: 2px 0 0 2px;
}
.author-portrait-placeholder::after {
    bottom: 20px;
    right: 20px;
    border-width: 0 2px 2px 0;
}

.author-portrait-svg {
    width: 64px;
    height: 64px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.author-portrait-text {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* Accolades grid below about text */
.accolades-title {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent-amber);
    margin: 48px 0 24px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.accolades-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 576px) {
    .accolades-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.accolade-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.accolade-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent-amber);
    flex-shrink: 0;
    margin-top: 4px;
}

.accolade-text h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.accolade-text p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   SECTION 3: UPCOMING BOOK ANNOUNCEMENT (THE TEASER)
   ========================================================================== */
.teaser-section {
    background: linear-gradient(180deg, var(--color-bg-base) 0%, #08090d 100%);
    position: relative;
}

.teaser-card {
    background-color: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 60px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .teaser-card {
        padding: 40px 24px;
    }
}

/* Rusty dust glow overlay for dark card */
.teaser-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, hsla(16, 82%, 50%, 0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.teaser-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: center;
}

@media (max-width: 992px) {
    .teaser-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Lock graphic container */
.lock-visual-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.lock-graphic-wrapper {
    width: 260px;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.lock-orbit-1, .lock-orbit-2 {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.lock-orbit-1 {
    width: 320px;
    height: 320px;
    border-color: hsla(43, 100%, 50%, 0.03);
    animation: spinClockwise 30s linear infinite;
}

.lock-orbit-2 {
    width: 380px;
    height: 380px;
    border-color: hsla(16, 82%, 50%, 0.02);
    animation: spinCounterClockwise 45s linear infinite;
}

.lock-graphic {
    width: 96px;
    height: 96px;
    color: var(--color-accent-rust);
    filter: drop-shadow(var(--glow-rust));
    animation: pulseGlow 4s infinite ease-in-out;
}

.teaser-badge-row {
    margin-bottom: 20px;
}

.teaser-headline {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.teaser-text {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

/* ==========================================================================
   SECTION 4: PREVIOUS WORK SPOTLIGHT (C'ERA UNA VOLTA A ROMA)
   ========================================================================== */
.spotlight-section {
    background-color: var(--color-bg-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

@media (max-width: 992px) {
    .spotlight-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.spotlight-visual {
    display: flex;
    justify-content: center;
}

/* Distinctive 3D Highback Cover style (static, lightweight) */
.spotlight-mockup {
    width: 100%;
    max-width: 290px;
    aspect-ratio: 1 / 1.5;
    border-radius: 2px 8px 8px 2px;
    box-shadow: 12px 12px 36px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: rotateY(-10deg);
    transition: transform var(--transition-medium);
}

.spotlight-mockup:hover {
    transform: rotateY(-2deg) translateY(-4px);
}

.spotlight-sub {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent-amber);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.spotlight-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 8px;
}

.spotlight-tagline {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-accent-rust);
    margin-bottom: 24px;
}

.retail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
}

/* ==========================================================================
   SECTION 5: CRITICS & EDITORIAL REVIEWS
   ========================================================================== */
.reviews-section {
    position: relative;
    background: linear-gradient(180deg, #08090d 0%, var(--color-bg-base) 100%);
}

.reviews-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px auto;
}

.reviews-header .section-badge {
    margin-bottom: 16px;
}

.reviews-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* 3-Card Reviews Layout */
.reviews-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .reviews-grid-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.review-card {
    background-color: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-medium), border-color var(--transition-fast), box-shadow var(--transition-medium);
}

.review-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
}

.review-rating {
    display: flex;
    gap: 4px;
    color: var(--color-accent-amber);
    margin-bottom: 24px;
}

.star-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    filter: drop-shadow(0 0 2px rgba(255, 183, 0, 0.3));
}

.review-quote {
    position: relative;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: 30px;
}

.review-quote::before {
    content: '“';
    position: absolute;
    top: -24px;
    left: -20px;
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--color-accent-rust);
    opacity: 0.15;
    line-height: 1;
}

.review-source {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.review-source h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.review-source p {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Highlighted middle card style (Der Spiegel) */
.review-card.featured-card {
    border: 1px solid hsla(43, 100%, 50%, 0.15);
    background: linear-gradient(135deg, var(--color-bg-surface) 0%, hsla(43, 100%, 50%, 0.01) 100%);
    box-shadow: var(--shadow-md);
}

.review-card.featured-card:hover {
    border-color: var(--color-accent-amber);
    box-shadow: var(--shadow-lg), 0 0 25px hsla(43, 100%, 50%, 0.1);
}

/* ==========================================================================
   SECTION 6: NEWSLETTER SUBSCRIPTION & FOOTER
   ========================================================================== */
.newsletter-section {
    background-color: var(--color-bg-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

/* Background warning line detail for military frontier feel */
.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(
        -45deg,
        var(--color-accent-rust),
        var(--color-accent-rust) 10px,
        var(--color-bg-base) 10px,
        var(--color-bg-base) 20px
    );
}

.newsletter-container {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.newsletter-description {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 44px;
}

/* Subscription Form Style */
.newsletter-form {
    background-color: var(--color-bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: left;
    box-shadow: var(--shadow-md);
}

@media (max-width: 576px) {
    .newsletter-form {
        padding: 24px;
    }
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.input-container {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background-color: var(--color-bg-base);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent-amber);
    background-color: hsla(228, 23%, 4%, 0.8);
}

/* Validation visual states */
.form-input.invalid {
    border-color: var(--color-accent-rust);
}

.error-message {
    font-size: 0.8125rem;
    color: var(--color-accent-rust);
    margin-top: 6px;
    display: none;
}

.error-message.active {
    display: block;
}

/* Required DSGVO Checkbox styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
}

.checkbox-container {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-native {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.checkbox-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--color-bg-base);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.checkbox-native:focus-visible + .checkbox-custom {
    outline: 2px solid var(--color-accent-amber);
    outline-offset: 2px;
}

.checkbox-native:checked + .checkbox-custom {
    background-color: var(--color-accent-amber);
    border-color: var(--color-accent-amber);
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid var(--color-text-inverse);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-native:checked + .checkbox-custom::after {
    display: block;
}

.checkbox-custom.invalid {
    border-color: var(--color-accent-rust);
    box-shadow: 0 0 6px rgba(229, 74, 25, 0.2);
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.45;
    cursor: pointer;
    user-select: none;
}

.checkbox-label a {
    color: var(--color-accent-amber);
    text-decoration: underline;
}

.submit-btn-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.newsletter-form .btn {
    width: 100%;
}

/* DOI Status Logs (Mock output for demo validation) */
.doi-status-box {
    margin-top: 24px;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-family: monospace;
    display: none;
    text-align: left;
}

.doi-status-box.success {
    display: block;
    background-color: rgba(79, 209, 131, 0.08);
    border: 1px solid var(--color-accent-green);
    color: hsl(145, 63%, 80%);
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--color-bg-base);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 60px 0 40px 0;
}

.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-primary);
    opacity: 0.85;
}

.footer-legal-nav {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal-nav a {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
}

.footer-legal-nav a:hover,
.footer-legal-nav a:focus {
    color: var(--color-text-primary);
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* ==========================================================================
   MODAL / POPUP (SUCCESS DIALOG)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 7, 10, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background-color: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 480px;
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform var(--transition-medium);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 8px;
    transition: color var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--color-text-primary);
}

.modal-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-accent-green-bg);
    border: 1px solid var(--color-accent-green);
    color: var(--color-accent-green);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.modal-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    line-height: 1.55;
}

/* ==========================================================================
   CSS HARDWARE-ACCELERATED TRANSITIONS & ENTRY ANIMATIONS
   ========================================================================== */
@keyframes spinClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px hsla(16, 82%, 50%, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px hsla(16, 82%, 50%, 0.65));
    }
}

@keyframes ambientFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.ambient-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Entry Animation Classes (triggered via JS IntersectionObserver or page load) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Accessible Settings: Disable animations if preferred by user's OS */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .lock-orbit-1, 
    .lock-orbit-2,
    .lock-graphic,
    .mockup-3d-wrapper,
    .mockup-3d-container {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }

    #ambient-particles {
        display: none !important;
    }
}

/* ==========================================================================
   LIGHT MODE CUSTOM OVERRIDES
   ========================================================================== */
html[data-theme="light"] {
    --color-bg-base: hsl(38, 40%, 96%);           /* Dusty Warm Sandstone (#fcfaf5) */
    --color-bg-surface: hsl(38, 30%, 90%);        /* Sandstone Card Background (#f2ecde) */
    --color-bg-elevated: hsl(38, 24%, 84%);       /* Clay Card Background (#e5dbca) */
    
    --color-accent-amber: hsl(32, 95%, 42%);      /* Darker Warm Amber Gold for contrast (#cd6b00) */
    --color-accent-amber-glow: hsla(32, 95%, 45%, 0.15);
    --color-accent-rust: hsl(20, 85%, 45%);       /* Terracotta Rust (#d1471a) */
    --color-accent-rust-dark: hsl(20, 85%, 32%);  /* Darker Rust (#943212) */
    --color-accent-green: hsl(145, 63%, 35%);     /* Dark Green for badge readability */
    --color-accent-green-bg: hsla(145, 63%, 35%, 0.08);

    /* Text Colors */
    --color-text-primary: hsl(214, 28%, 12%);     /* Charcoal Ink (#1b2330) */
    --color-text-secondary: hsl(214, 15%, 32%);   /* Dark Ash Grey (#3d4957) */
    --color-text-muted: hsl(214, 10%, 48%);       /* Muted Steel Grey (#6c7b8c) */
    --color-text-inverse: hsl(38, 40%, 96%);      /* Sandstone Off-white for dark button text */

    /* Shadows & Glows */
    --glow-amber: 0 8px 20px hsla(32, 95%, 45%, 0.15);
    --glow-rust: 0 8px 20px hsla(20, 85%, 45%, 0.18);
}

/* Specific Light Theme Elements Overrides */
html[data-theme="light"] .site-header {
    background-color: hsla(38, 40%, 96%, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .hero-section {
    background-image: linear-gradient(to right, rgba(252, 250, 245, 0.94) 20%, rgba(252, 250, 245, 0.65) 100%), url('yjfh.png');
}

html[data-theme="light"] .review-card,
html[data-theme="light"] .accolade-item,
html[data-theme="light"] .teaser-card {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .review-card:hover,
html[data-theme="light"] .accolade-item:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .ambient-grid {
    opacity: 0.06;
}

html[data-theme="light"] .author-frame {
    background-color: rgba(0, 0, 0, 0.02);
}

html[data-theme="light"] .site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .teaser-section {
    background: linear-gradient(180deg, var(--color-bg-base) 0%, var(--color-bg-surface) 100%);
}

html[data-theme="light"] .reviews-section {
    background: linear-gradient(180deg, var(--color-bg-surface) 0%, var(--color-bg-base) 100%);
}

html[data-theme="light"] .spotlight-section {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
