/* ═══════════════════════════════════════════════════════════════
   THORNEVERSE - LAYOUT STYLES
   Header, Footer, Navigation, Grid Systems, Sections
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   SITE HEADER
   ═══════════════════════════════════════════════════════════════ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-header);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    letter-spacing: 0.15em;
    color: var(--gold-bright);
}

.logo .dot {
    color: var(--gold-shine);
}

/* Navigation */
.nav-links {
    display: flex;
    gap: clamp(1rem, 3vw, 2.5rem);
    list-style: none;
}

.nav-links a {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.6rem, 1.5vw, 0.75rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--gold-bright);
}

/* Theme Toggle in Header */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 1rem;
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    color: var(--gold-bright);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    background: rgba(201, 169, 89, 0.15);
    border-color: var(--gold-bright);
}

/* ═══════════════════════════════════════════════════════════════
   SITE FOOTER
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-crimson);
    background: rgba(0, 0, 0, 0.95);
}

.footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: var(--gold-bright);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-style: italic;
    color: var(--text-soft);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.copyright {
    font-size: 0.7rem;
    color: var(--text-dim);
    opacity: 0.6;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.social-links a {
    color: var(--text-soft);
    text-decoration: none;
    transition: color var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.social-links a:hover,
.social-links a:focus {
    color: var(--text-bright);
}

.social-links svg {
    width: 28px;
    height: 28px;
}

.social-links span {
    font-size: 0.8rem;
}

/* ═══════════════════════════════════════════════════════════════
   LANDING SCREEN
   ═══════════════════════════════════════════════════════════════ */

.landing-screen {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    z-index: var(--z-content);
}

.author-name {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 7vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--gold-bright);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 40px var(--shadow-gold), 0 2px 20px var(--shadow-dark);
}

.author-name .dot {
    color: var(--gold-shine);
}

.welcome-text {
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    font-style: italic;
    letter-spacing: 0.35em;
    color: var(--text-soft);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px var(--shadow-dark);
}

.tagline-space {
    height: clamp(60px, 12vw, 120px);
    margin-bottom: 2.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════ */

.main-content {
    display: none;
    position: relative;
    z-index: var(--z-content);
    min-height: auto;
}

.main-content.active {
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem 1.5rem 2rem;
    min-height: 50vh;
    max-height: 55vh;
    height: auto;
}

.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--gold-bright);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    margin-top: 80px;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 7vw, 4.5rem);
    letter-spacing: 0.05em;
    line-height: 1;
    color: var(--text-bright);
    margin-bottom: 0.75rem;
}

.hero-tagline {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-style: italic;
    color: var(--text-soft);
    max-width: 500px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════ */

.section {
    padding: 2rem 1.5rem;
}

.series-section {
    padding: 1.5rem 1.5rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7) 10%, rgba(0, 0, 0, 0.9) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 0.1em;
    color: var(--text-bright);
}

/* ═══════════════════════════════════════════════════════════════
   GRID SYSTEMS
   ═══════════════════════════════════════════════════════════════ */

/* Series Grid */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Book List (Vertical) */
.book-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

/* General Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════════ */

.about-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-tagline {
    color: #f4e4d4;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.about-text {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-welcome {
    color: #f4e4d4;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0;
}

.about-author {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.about-author span {
    color: #f4e4d4;
}

.about-cta {
    color: #f4e4d4;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 2px;
    font-style: italic;
    margin-top: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   CONNECT SECTION
   ═══════════════════════════════════════════════════════════════ */

.connect-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.connect-text {
    color: #ccc;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-email {
    display: inline-block;
    color: #f4e4d4;
    text-decoration: none;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #8b7355;
    padding-bottom: 3px;
    transition: var(--transition-normal);
}

.contact-email:hover {
    color: var(--gold-bright);
    border-color: var(--gold-bright);
}

/* ═══════════════════════════════════════════════════════════════
   SERIES PAGE LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.series-title {
    font-family: 'Cinzel', serif;
    color: var(--gold-bright);
    font-size: 1.5rem;
    text-align: center;
    margin: 10px 0 8px;
    text-shadow: 0 0 20px rgba(212, 160, 32, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE - LAYOUT
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero {
        min-height: 45vh;
        max-height: 50vh;
        padding: 4rem 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .landing-screen {
        min-height: 40vh;
        height: auto;
    }

    .hero {
        min-height: 35vh;
        max-height: 40vh;
        padding: 3.5rem 1rem 1rem;
    }

    .series-section {
        padding: 1rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .landing-screen {
        min-height: 35vh;
        height: auto;
    }

    .hero {
        min-height: 30vh;
        max-height: 35vh;
        padding: 3rem 1rem 1rem;
    }

    .hero-subtitle {
        margin-top: 60px;
    }

    .series-grid {
        grid-template-columns: 1fr;
    }
}

/* Landscape mode */
@media screen and (orientation: landscape) and (max-width: 900px) {
    .hero,
    .landing-screen {
        min-height: auto;
        max-height: 60vh;
    }
}

@media (min-height: 900px) {
    .hero {
        min-height: 50vh;
        padding-top: 5rem;
    }
}
