/* ============================
   CSS Reset & Base
   ============================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    color: #e8e6e3;
    background-color: #0a0a0a;
    min-height: 100vh;
}

/* Global focus styles - dark crimson glow */
*:focus {
    outline: none;
}

a:focus,
button:focus {
    outline: none;
    filter: drop-shadow(0 0 8px rgba(220, 20, 60, 0.8)) drop-shadow(0 0 16px rgba(139, 0, 0, 0.6));
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 12px rgba(220, 20, 60, 0.6), 0 0 20px rgba(139, 0, 0, 0.4);
    border-color: crimson;
}

/* ============================
   Typography
   ============================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================
   Layout Containers
   ============================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================
   Navigation
   ============================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    color: #e8e6e3;
}

.nav-brand:hover {
    color: #8b0000;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    color: #c8c6c3;
}

.nav-links a:hover,
.nav-links a:focus {
    color: #8b0000;
}

/* Dropdown submenu */
.nav-links li {
    position: relative;
}

.nav-links .has-submenu > a::after {
    content: ' ▾';
    font-size: 0.7em;
    margin-left: 0.25rem;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 0, 0, 0.3);
    min-width: 200px;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0;
    z-index: 1000;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    display: block;
}

.submenu li {
    padding: 0;
}

.submenu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #c8c6c3;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.submenu a:hover,
.submenu a:focus {
    background-color: rgba(139, 0, 0, 0.1);
    color: #8b0000;
}

@media (max-width: 640px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-name {
        font-size: 2.25rem;
    }

    .btn {
        padding: 0.75rem 1.75rem;
    }
}

/* ============================
   Hero Section
   ============================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #0a0a0a;
    background-image:
        linear-gradient(to bottom, rgba(10, 10, 10, 0.7) 0%, rgba(26, 10, 10, 0.85) 100%),
        url('/assets/images/backgrounds/hero-bg1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-atmosphere {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 2rem 1.5rem;
}

.hero-name {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 0.5rem;
    color: #e8e6e3;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7),
                 0 0 40px rgba(139, 0, 0, 0.15);
}

.hero-genre {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: #a8a6a3;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-tagline {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-style: italic;
    color: #c8c6c3;
    margin-bottom: 3rem;
    line-height: 1.4;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================
   Buttons
   ============================ */

.btn {
    display: inline-block;
    padding: 0.875rem 2.25rem;
    font-size: 1rem;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #8b0000;
    color: #e8e6e3;
    border-color: #8b0000;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #a61a1a;
    border-color: #a61a1a;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #e8e6e3;
    border-color: #8b0000;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: rgba(139, 0, 0, 0.1);
    border-color: #a61a1a;
}

.btn-text {
    background-color: transparent;
    color: #8b0000;
    border: none;
    padding: 0.5rem 0;
    font-style: italic;
}

.btn-text:hover,
.btn-text:focus {
    color: #a61a1a;
}

/* ============================
   Section Styling
   ============================ */

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: #e8e6e3;
    font-size: clamp(2rem, 5vw, 2.5rem);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #a8a6a3;
    font-style: italic;
    font-size: 1.125rem;
}

/* ============================
   Featured Trilogy
   ============================ */

.featured-trilogy {
    background-color: #0f0f0f;
    border-top: 1px solid rgba(139, 0, 0, 0.2);
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
}

.trilogy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.book-card {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(20, 10, 10, 0.3);
    border: 1px solid rgba(139, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.book-card:hover,
.book-card:focus-within {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(139, 0, 0, 0.6);
    box-shadow: 0 12px 32px rgba(139, 0, 0, 0.3),
                0 0 20px rgba(139, 0, 0, 0.15);
}

.book-card:hover .book-cover {
    filter: brightness(1.1);
    transition: filter 0.4s ease;
}

.book-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid rgba(139, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    display: block;
}

.book-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #e8e6e3;
}

.book-hook {
    font-size: 1rem;
    color: #a8a6a3;
    font-style: italic;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    text-wrap: pretty;
    orphans: 3;
    widows: 3;
}

.book-link {
    display: inline-block;
    color: #8b0000;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.book-link:hover,
.book-link:focus {
    color: #a61a1a;
    border-bottom-color: #a61a1a;
}

/* ============================
   About Teaser
   ============================ */

.about-teaser {
    text-align: center;
}

.about-teaser-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.author-photo {
    width: 200px;
    height: 200px;
    max-width: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(139, 0, 0, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.about-text {
    text-align: left;
    flex: 1;
}

.about-excerpt {
    font-size: 1.125rem;
    color: #c8c6c3;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ============================
   Contact Teaser
   ============================ */

.contact-teaser {
    position: relative;
    text-align: center;
    overflow: hidden;
    padding: 8rem 0 !important;
    min-height: 400px;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-teaser.bg-loaded {
    background-image: url('/assets/images/backgrounds/hero-bg2.webp');
}

.contact-teaser::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8) 0%, rgba(26, 10, 10, 0.9) 100%);
    pointer-events: none;
    z-index: 0;
}

.contact-teaser .container {
    position: relative;
    z-index: 1;
}

.contact-intro {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #c8c6c3;
    font-size: 1.125rem;
}

/* ============================
   Footer
   ============================ */

.site-footer {
    background-color: #0a0a0a;
    border-top: 1px solid rgba(139, 0, 0, 0.2);
    padding: 2.5rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-left {
    text-align: left;
}

.footer-center {
    text-align: center;
}

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

.site-footer p {
    color: #8b0000;
    font-size: 0.875rem;
    margin: 0;
}

.footer-link {
    color: crimson;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: flex-end;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.social-icon:hover,
.social-icon:focus {
    transform: translateY(-2px);
    opacity: 1;
}

.social-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

/* ============================
   Responsive Adjustments
   ============================ */

@media (max-width: 768px) {
    section {
        padding: 2.5rem 0;
    }

    .contact-teaser {
        padding: 4rem 0 !important;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .trilogy-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-teaser-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .author-photo {
        width: 150px;
        height: 150px;
    }

    .about-text {
        text-align: center;
    }
}

/* ============================
   Accessibility
   ============================ */

/* Removed - using global focus styles now */

@media (prefers-reduced-motion: reduce) {
    .book-card:hover,
    .book-card:focus-within {
        transform: none;
    }

    .btn-primary:hover,
    .btn-primary:focus {
        transform: none;
    }

    .fade-in-element {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ============================
   Scroll Animations
   ============================ */

.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   Book Detail Pages
   ============================ */

.book-detail-hero {
    position: relative;
    padding: 8rem 0 5rem;
    overflow: hidden;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.book-detail-hero.bg-loaded {
    background-image: url('/assets/images/backgrounds/hero-bg2.webp');
}

.book-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8) 0%, rgba(26, 10, 10, 0.9) 100%);
    pointer-events: none;
    z-index: 0;
}

.book-detail-hero .container {
    position: relative;
    z-index: 1;
}

.book-detail-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.book-detail-cover-wrapper {
    position: sticky;
    top: 120px;
}

.book-detail-cover {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid rgba(139, 0, 0, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.book-detail-info {
    padding-top: 1rem;
}

.book-meta {
    color: crimson;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.book-detail-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #e8e6e3;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.book-year {
    color: #a8a6a3;
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.book-description {
    color: #c8c6c3;
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.book-description p {
    margin-bottom: 1.5rem;
}

.book-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Series Navigation */

.book-series-nav {
    background-color: #0a0a0a;
    padding: 3rem 0;
    border-top: 1px solid rgba(139, 0, 0, 0.2);
}

.series-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.series-nav-item {
    padding: 2rem;
    background-color: rgba(20, 10, 10, 0.3);
    border: 1px solid rgba(139, 0, 0, 0.2);
    transition: border-color 0.3s ease;
}

.series-nav-item:not(.disabled):hover {
    border-color: rgba(139, 0, 0, 0.5);
}

.series-nav-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.series-nav-link {
    display: block;
    text-decoration: none;
}

.series-nav-label {
    display: block;
    color: #8b0000;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.series-nav-title {
    display: block;
    color: #e8e6e3;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.series-nav-link:hover .series-nav-title {
    color: #8b0000;
}

.series-nav-prev {
    text-align: left;
}

.series-nav-next {
    text-align: right;
}

/* ============================
   Book Page Navigation (Sticky Side Menu)
   ============================ */

.book-page-nav {
    position: sticky;
    top: 100px;
    z-index: 100;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
    padding: 0;
}

.book-page-nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.book-page-nav-list li {
    margin: 0;
}

.book-page-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #a8a6a3;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.book-page-nav-link:hover {
    color: #e8e6e3;
    background-color: rgba(139, 0, 0, 0.1);
}

.book-page-nav-link.active {
    color: #e8e6e3;
    border-bottom-color: #8b0000;
    background-color: rgba(139, 0, 0, 0.15);
}

/* Responsive - Book Detail Pages */

@media (max-width: 1024px) {
    .book-detail-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .book-detail-cover-wrapper {
        position: static;
        text-align: center;
    }

    .book-detail-cover {
        max-width: 350px;
    }
}

@media (max-width: 640px) {
    .book-detail-hero {
        padding: 6rem 0 3rem;
    }

    .book-detail-cover {
        max-width: 280px;
    }

    .series-nav-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .series-nav-prev,
    .series-nav-next {
        text-align: center;
    }

    .book-actions {
        flex-direction: column;
    }

    .book-actions .btn {
        width: 100%;
    }

    .book-page-nav-link {
        padding: 0.875rem 1rem;
        font-size: 0.8rem;
    }
}

/* ============================
   Book Extended Description
   ============================ */

.book-extended-description {
    background-color: #0a0a0a;
    padding: 5rem 0;
    border-top: 1px solid rgba(139, 0, 0, 0.2);
}

.extended-description-content {
    max-width: 800px;
    margin: 0 auto;
    color: #c8c6c3;
    font-size: 1.125rem;
    line-height: 1.8;
}

.extended-description-content p {
    margin-bottom: 1.75rem;
}

.extended-description-content p:last-child {
    margin-bottom: 0;
}

/* ============================
   Book Details Grid
   ============================ */

.book-details-section {
    background-color: #0f0f0f;
    padding: 5rem 0;
}

.book-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-item {
    padding: 1.5rem;
    background-color: rgba(20, 10, 10, 0.3);
    border: 1px solid rgba(139, 0, 0, 0.2);
    text-align: center;
}

.detail-item-wide {
    grid-column: 1 / -1;
}

.detail-label {
    display: block;
    color: #8b0000;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.detail-value {
    display: block;
    color: #e8e6e3;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* ============================
   Buy Links Section
   ============================ */

.book-buy-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.book-buy-section.bg-loaded {
    background-image: url('/assets/images/backgrounds/hero-bg2.webp');
}

.book-buy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8) 0%, rgba(26, 10, 10, 0.9) 100%);
    pointer-events: none;
    z-index: 0;
}

.book-buy-section .container {
    position: relative;
    z-index: 1;
}

.section-intro {
    text-align: center;
    color: #a8a6a3;
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.buy-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.buy-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background-color: rgba(139, 0, 0, 0.1);
    border: 2px solid #8b0000;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 120px;
}

.buy-link:hover,
.buy-link:focus {
    background-color: rgba(139, 0, 0, 0.2);
    border-color: #a61a1a;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.3);
}

.buy-link-retailer {
    display: block;
    color: #e8e6e3;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.buy-link-format {
    display: block;
    color: #a8a6a3;
    font-size: 0.9rem;
    font-style: italic;
}

/* ============================
   Book Reviews Slideshow
   ============================ */

.book-reviews-section {
    background-color: #0f0f0f;
    padding: 5rem 0;
}

.reviews-slideshow {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    min-height: 250px;
}

.review-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
    padding: 2rem;
    text-align: center;
}

.review-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.review-stars {
    color: crimson;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3rem;
}

.review-quote {
    margin: 0 0 1.5rem 0;
}

.review-quote p {
    color: crimson;
    font-size: 1.25rem;
    line-height: 1.8;
    font-style: italic;
    margin: 0;
}

.review-attribution {
    display: block;
    color: #a8a6a3;
    font-size: 1rem;
    font-style: normal;
}

/* ============================
   Books Index Page
   ============================ */

.books-hero {
    background-color: #0f0f0f;
    padding: 8rem 0 5rem;
    text-align: center;
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
}

.books-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #e8e6e3;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.books-hero-intro {
    max-width: 700px;
    margin: 0 auto;
    color: #c8c6c3;
    font-size: 1.25rem;
    line-height: 1.8;
}

.books-showcase {
    background-color: #0a0a0a;
    padding: 5rem 0;
}

.book-showcase-item {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 6rem;
    padding-bottom: 6rem;
    border-bottom: 1px solid rgba(139, 0, 0, 0.1);
}

.book-showcase-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.book-showcase-cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.book-showcase-content {
    padding-top: 1rem;
}

.book-showcase-number {
    display: block;
    color: #8b0000;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.book-showcase-title {
    font-size: 2.5rem;
    color: #e8e6e3;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.book-showcase-year {
    color: #a8a6a3;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.book-showcase-description {
    color: #c8c6c3;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ============================
   About Page
   ============================ */

.about-hero {
    position: relative;
    padding: 8rem 0 5rem;
    overflow: hidden;
    text-align: center;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-hero.bg-loaded {
    background-image: url('/assets/images/backgrounds/hero-bg3.webp');
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8) 0%, rgba(26, 10, 10, 0.9) 100%);
    pointer-events: none;
    z-index: 0;
}

.about-hero .container {
    position: relative;
    z-index: 1;
}

.about-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #e8e6e3;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.about-hero-subtitle {
    color: crimson;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.author-bio-section {
    background-color: #0f0f0f;
    padding: 6rem 0;
}

.author-bio-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 5rem;
    align-items: start;
}

.author-photo-wrapper {
    position: sticky;
    top: 2rem;
}

.author-photo {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.author-bio-text {
    padding-top: 1rem;
}

.bio-block {
    margin-bottom: 3rem;
}

.bio-block:last-child {
    margin-bottom: 0;
}

.bio-heading {
    color: crimson;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.bio-block p {
    color: #c8c6c3;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.bio-block p:last-child {
    margin-bottom: 0;
}

.author-highlights {
    background-color: #0a0a0a;
    padding: 5rem 0;
    border-top: 1px solid rgba(139, 0, 0, 0.2);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-item {
    padding: 2rem;
    background-color: rgba(20, 10, 10, 0.3);
    border: 1px solid rgba(139, 0, 0, 0.2);
    text-align: center;
    border-radius: 4px;
}

.highlight-label {
    color: #8b0000;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.highlight-value {
    color: #e8e6e3;
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
}

.connect-section {
    background-color: #0f0f0f;
    padding: 5rem 0;
    text-align: center;
}

.connect-intro {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #c8c6c3;
    font-size: 1.125rem;
    line-height: 1.8;
}

.social-links-large {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background-color: rgba(20, 10, 10, 0.3);
    border: 1px solid rgba(139, 0, 0, 0.2);
    border-radius: 8px;
    text-decoration: none;
    color: #c8c6c3;
    transition: all 0.3s ease;
    min-width: 120px;
}

.social-link-large:hover {
    background-color: rgba(139, 0, 0, 0.1);
    border-color: crimson;
    transform: translateY(-4px);
}

.social-link-large span {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* ============================
   Contact Page
   ============================ */

.contact-hero {
    position: relative;
    padding: 8rem 0 5rem;
    overflow: hidden;
    text-align: center;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-hero.bg-loaded {
    background-image: url('/assets/images/backgrounds/hero-bg2.webp');
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8) 0%, rgba(26, 10, 10, 0.9) 100%);
    pointer-events: none;
    z-index: 0;
}

.contact-hero .container {
    position: relative;
    z-index: 1;
}

.contact-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #e8e6e3;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.contact-hero-subtitle {
    color: crimson;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.contact-content-section {
    background-color: #0f0f0f;
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-section-title {
    color: crimson;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.contact-intro {
    color: #c8c6c3;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-social-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-social-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(139, 0, 0, 0.1);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-social-link:hover {
    background: rgba(139, 0, 0, 0.2);
    border-color: crimson;
    transform: translateX(8px);
}

.contact-social-link img {
    flex-shrink: 0;
}

.contact-social-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-social-name {
    color: #e8e6e3;
    font-size: 1.125rem;
    font-weight: 600;
}

.contact-social-handle {
    color: crimson;
    font-size: 0.875rem;
}

.contact-form-wrapper {
    background: rgba(139, 0, 0, 0.05);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(139, 0, 0, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #e8e6e3;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 4px;
    color: #e8e6e3;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: crimson;
    background: rgba(10, 10, 10, 0.7);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.4), 0 0 12px rgba(220, 20, 60, 0.6);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 1rem;
}

.form-message {
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.form-success {
    background: rgba(0, 139, 0, 0.1);
    border: 1px solid rgba(0, 139, 0, 0.3);
    color: #90ee90;
}

.form-success p {
    margin: 0;
    font-size: 1rem;
}

.form-error {
    background: rgba(139, 0, 0, 0.1);
    border: 1px solid rgba(139, 0, 0, 0.3);
    color: #ff6b6b;
}

.form-error p {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.form-error ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.form-error li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* ============================
   Responsive - Book Extended Content
   ============================ */

@media (max-width: 1024px) {
    .book-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .book-showcase-item {
        grid-template-columns: 250px 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .book-showcase-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
        padding-bottom: 4rem;
    }

    .book-showcase-cover {
        max-width: 300px;
        margin: 0 auto;
    }

    .book-showcase-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .book-extended-description,
    .book-details-section,
    .book-buy-section,
    .book-reviews-section {
        padding: 3rem 0;
    }

    .book-details-grid,
    .buy-links-grid {
        grid-template-columns: 1fr;
    }

    .extended-description-content {
        font-size: 1rem;
    }

    .review-quote p {
        font-size: 1.125rem;
    }

    .review-stars {
        font-size: 1.5rem;
    }

    .books-hero {
        padding: 5rem 0 3rem;
    }

    .books-hero-intro {
        font-size: 1.125rem;
    }

    .books-showcase {
        padding: 3rem 0;
    }

    .book-showcase-description {
        font-size: 1rem;
    }

    .about-hero {
        padding: 5rem 0 3rem;
    }

    .author-bio-section {
        padding: 4rem 0;
    }

    .author-bio-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-hero {
        padding: 5rem 0 3rem;
    }

    .contact-content-section {
        padding: 4rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .author-photo-wrapper {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .connect-section {
        padding: 4rem 0;
    }

    .bio-block p {
        font-size: 1rem;
    }
}
