/* ===== BOOK DETAIL PAGE STYLES ===== */

/* Hero */
.book-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.book-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

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

.book-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: center;
}

.book-hero-cover {
    position: relative;
    perspective: 1200px;
}

.book-hero-cover img {
    width: 100%;
    max-width: 380px;
    border-radius: 8px;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    margin: 0 auto;
}

.book-hero-cover:hover img {
    transform: rotateY(-5deg) scale(1.03);
}

.book-hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.book-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.08;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.book-hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
}

.book-hero-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #555;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 600px;
}

.book-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.book-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    background: rgba(0,0,0,0.04);
    border-radius: 100px;
    color: #555;
    font-weight: 500;
}

.book-meta-tag svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

.book-cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.book-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #111;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.book-btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    background: #000;
}

.book-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #111;
    border: 1px solid rgba(0,0,0,0.15);
    background: transparent;
    transition: all 0.3s;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.book-btn-secondary:hover {
    border-color: #111;
    background: rgba(0,0,0,0.03);
}

/* Highlights Section */
.book-highlights {
    padding: clamp(4rem, 10vw, 8rem) 0;
    background: #fff;
}

.book-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.book-highlight-card {
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: #f9f9fb;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.book-highlight-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s;
}

.book-highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px -15px rgba(0,0,0,0.1);
    background: #fff;
}

.book-highlight-card:hover::before {
    opacity: 1;
}

.book-highlight-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.book-highlight-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    font-family: var(--font-tech);
    font-weight: 700;
    color: #111;
}

.book-highlight-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Author Section */
.book-author-section {
    padding: clamp(4rem, 10vw, 6rem) 0;
    background: #f9f9fb;
}

.book-author-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 800px;
}

.book-author-portrait {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.book-author-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.book-author-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 1rem;
    font-weight: 600;
}

.book-author-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

/* Long Description */
.book-description-section {
    padding: clamp(4rem, 10vw, 7rem) 0;
    background: #fff;
}

.book-description-content {
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

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

.book-description-content strong {
    color: #111;
}

/* Editions / International */
.book-editions-section {
    padding: clamp(3rem, 8vw, 5rem) 0;
    background: #f9f9fb;
}

.book-editions-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    justify-content: center;
}

.book-edition-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
    width: 140px;
}

.book-edition-card:hover {
    transform: translateY(-5px);
}

.book-edition-card img {
    height: 200px;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    margin-bottom: 0.8rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.book-edition-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
}

/* Series Grid */
.book-series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.book-series-item {
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid transparent;
}

.book-series-item:hover {
    border-color: rgba(0,0,0,0.08);
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.book-series-item img {
    height: 250px;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.book-series-item h4 {
    font-size: 0.95rem;
    font-family: var(--font-tech);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.book-series-item p {
    font-size: 0.8rem;
    color: #888;
}

/* CTA Final */
.book-cta-final {
    padding: 8rem 0;
    text-align: center;
    background: linear-gradient(135deg, #fafafa 0%, #fff 40%, #f5f5f7 100%);
    position: relative;
    overflow: hidden;
}

.book-cta-final::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(0,113,227,0.03) 0%, transparent 60%);
    animation: cta-glow 12s ease-in-out infinite;
    pointer-events: none;
}

/* Breadcrumb */
.book-breadcrumb {
    padding: 1rem 0 0;
    font-size: 0.8rem;
    color: #999;
}

.book-breadcrumb a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.book-breadcrumb a:hover {
    color: #111;
}

/* Feature List */
.book-feature-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.book-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.6rem 0;
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
}

.book-feature-list li .feat-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-top: 2px;
}

/* Accent Color Themes */
.accent-red { --book-accent: #e63946; }
.accent-blue { --book-accent: #0071e3; }
.accent-amber { --book-accent: #f59e0b; }
.accent-emerald { --book-accent: #10b981; }
.accent-purple { --book-accent: #8b5cf6; }

.book-hero-badge {
    background: color-mix(in srgb, var(--book-accent) 12%, transparent);
    color: var(--book-accent);
}

.book-highlight-card::before {
    background: var(--book-accent);
}

.book-feature-list li .feat-icon {
    background: color-mix(in srgb, var(--book-accent) 10%, transparent);
    color: var(--book-accent);
}

/* Responsive */
@media (max-width: 900px) {
    .book-hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .book-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .book-hero-cover {
        order: -1;
    }

    .book-hero-cover img {
        max-width: 260px;
    }

    .book-hero-desc {
        max-width: none;
    }

    .book-hero-meta {
        justify-content: center;
    }

    .book-cta-row {
        justify-content: center;
    }

    .book-author-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-author-portrait {
        margin: 0 auto;
    }

    .book-highlights-grid {
        grid-template-columns: 1fr;
    }

    .burger-icon {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    .book-series-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .book-series-item img {
        height: 180px;
    }
}

@media (max-width: 600px) {
    .book-series-grid {
        grid-template-columns: 1fr 1fr;
    }
}
