/* ==========================================================================
   ELLIZ PUBLISHING - LUXURY HERO BOOK SLIDER
   Inspired by edge-to-edge luxury editorial sliders with dynamic Caribbean sceneries,
   rich typography, 3D interactive book carousel cards, and auto-cycling.
   ========================================================================== */

.book-slider-hero {
    position: relative;
    height: calc(100vh - 146px - 78px);
    height: calc(100dvh - 146px - 78px);
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #081626;
    color: #ffffff;
    isolation: isolate;
}

/* Grand Regal Trust Strip that connects seamlessly with the Hero */
.trust-strip {
    background: linear-gradient(180deg, #071524 0%, #0b1b2b 100%) !important;
    border-top: 1px solid rgba(212, 175, 55, 0.35) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.22) !important;
    height: 78px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    width: 100%;
    padding: 0;
}

.trust-grid div {
    font-size: 16px;
    color: #cbd5e1 !important;
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 1px solid rgba(212, 175, 55, 0.2) !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}

.trust-grid div:last-child {
    border-right: none !important;
}

.trust-grid strong {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    color: #f7d070 !important;
    letter-spacing: -0.02em;
    font-weight: 700;
    text-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
}

/* Background layers */
.slider-backgrounds {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.slider-bg-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 9s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.slider-bg-item.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* Deep cinematic scrim overlay */
.hero-slider-scrim {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: 
        linear-gradient(90deg, 
            rgba(11, 27, 43, 0.96) 0%, 
            rgba(11, 27, 43, 0.90) 32%, 
            rgba(11, 27, 43, 0.65) 58%, 
            rgba(11, 27, 43, 0.35) 82%, 
            rgba(11, 27, 43, 0.45) 100%
        ),
        linear-gradient(0deg, 
            rgba(11, 27, 43, 0.7) 0%, 
            transparent 30%
        );
}

/* Container & Flex/Grid Structure */
.hero-slider-container {
    position: relative;
    z-index: 5;
    width: 100%;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    height: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Left: Active Book Editorial Presentation */
.hero-active-info {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.16);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: #f3d47d;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 18px;
    backdrop-filter: blur(6px);
}

.hero-slide-badge .badge-dot {
    width: 7px;
    height: 7px;
    background: #d4af37;
    border-radius: 50%;
    box-shadow: 0 0 8px #d4af37;
    flex-shrink: 0;
}

.hero-slide-title-wrap {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-slide-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
    color: #ffffff;
    letter-spacing: -0.035em;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-slide-tagline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(16px, 1.35vw, 20px);
    font-style: italic;
    color: #f7e0aa;
    line-height: 1.45;
    margin-bottom: 16px;
    border-left: 3px solid #d4af37;
    padding-left: 14px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-slide-desc {
    font-size: 16px;
    line-height: 1.75;
    color: #cbd5e1;
    max-width: 520px;
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-slide-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.hero-slide-meta .meta-author {
    color: #ffffff;
    font-weight: 600;
}

.hero-slide-meta .meta-sep {
    color: rgba(255, 255, 255, 0.25);
}

.hero-slide-meta .meta-price {
    font-size: 17px;
    font-weight: 700;
    color: #f7d070;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-slide-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    background: #d4af37;
    color: #0b1b2b !important;
    font-weight: 700;
    border: 1px solid #d4af37;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.hero-btn-primary:hover {
    background: #e5c358;
    border-color: #e5c358;
    box-shadow: 0 8px 26px rgba(212, 175, 55, 0.55);
    transform: translateY(-2px);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #d4af37;
    color: #f7d070 !important;
    transform: translateY(-2px);
}

/* Right: Carousel Cards & Navigation Track */
.hero-slider-track-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
}

.hero-cards-row {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    overflow-x: auto;
    padding: 16px 4px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hero-cards-row::-webkit-scrollbar {
    display: none;
}

/* Individual Book Slide Card */
.hero-book-card {
    position: relative;
    width: 168px;
    flex: 0 0 168px;
    background: rgba(15, 27, 42, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 12px 12px;
    cursor: pointer;
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease,
                background-color 0.35s ease,
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    user-select: none;
    outline: none;
}

.hero-book-card:hover {
    transform: translateY(-6px);
    background: rgba(18, 34, 54, 0.9);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 16px 32px -6px rgba(0, 0, 0, 0.5);
}

.hero-book-card.is-active {
    background: rgba(18, 38, 62, 0.94);
    border-color: #d4af37;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.65), 0 0 0 1px #d4af37;
}

/* 3D Miniature Book Cover in Card */
.card-cover-scene {
    position: relative;
    width: 108px;
    height: 156px;
    margin: 0 auto 12px;
    perspective: 800px;
}

.card-cover-box {
    width: 100%;
    height: 100%;
    border-radius: 2px 5px 5px 2px;
    transform-origin: left center;
    transform: rotateY(-10deg) rotateZ(-1deg);
    box-shadow: 6px 12px 22px rgba(0, 0, 0, 0.55), 1px 1px 1px #fff3 inset;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    overflow: hidden;
    position: relative;
}

.hero-book-card:hover .card-cover-box {
    transform: rotateY(-2deg) translateY(-2px) scale(1.04);
    box-shadow: 8px 16px 28px rgba(0, 0, 0, 0.65);
}

.hero-book-card.is-active .card-cover-box {
    transform: rotateY(0deg) translateY(-3px) scale(1.06);
    box-shadow: 10px 18px 30px rgba(0, 0, 0, 0.7);
}

/* Card Cover inner styling override for mini size */
.card-cover-box .editorial-cover {
    width: 100% !important;
    height: 100% !important;
    padding: 10px 8px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.card-cover-box .cover-name {
    font-size: 16px !important;
    line-height: 1.08 !important;
    margin-top: 6px !important;
}

.card-cover-box .cover-imprint {
    font-size: 16px !important;
    letter-spacing: 0.1em !important;
}

.card-cover-box .cover-author {
    font-size: 16px !important;
}

.card-cover-box .cover-art {
    height: 48% !important;
    bottom: 12px !important;
}

/* Card Information */
.card-info {
    display: flex;
    flex-direction: column;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.card-index {
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 0.05em;
}

.card-badge {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

.hero-book-card.is-active .card-badge {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.15);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.28;
    color: #ffffff;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-heading, sans-serif);
}

.card-author {
    font-size: 16px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-price {
    font-size: 16px;
    font-weight: 700;
    color: #f7d070;
}

.card-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.hero-book-card.is-active .card-indicator-dot {
    background: #d4af37;
    box-shadow: 0 0 6px #d4af37;
}

/* Card Progress Bar for Active Slide */
.card-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(212, 175, 55, 0.2);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-book-card.is-active .card-progress-bar {
    opacity: 1;
}

.card-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d4af37, #ffe388);
    transition: width 0.1s linear;
}

/* Controls: Slide Counter & Nav Arrows */
.hero-slider-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    width: 100%;
    padding-right: 6px;
}

.hero-slider-counter {
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-slider-counter .current-num {
    color: #f7d070;
    font-size: 18px;
}

.hero-slider-counter .total-num {
    color: #64748b;
}

.hero-slider-arrows {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-arrow-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 27, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-arrow-btn:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: #0b1b2b;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.hero-arrow-btn:active {
    transform: scale(0.96);
}

.hero-arrow-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-slider-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .hero-book-card {
        width: 148px;
        flex: 0 0 148px;
        padding: 10px;
    }
    .card-cover-scene {
        width: 94px;
        height: 136px;
    }
}

@media (max-width: 1050px) {
    .book-slider-hero {
        height: auto;
        min-height: auto;
        max-height: none;
        padding: 50px 0 60px;
    }
    .hero-slider-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-active-info {
        max-width: 100%;
        text-align: left;
    }
    .hero-slide-desc {
        max-width: 100%;
    }
    .hero-slider-track-wrap {
        align-items: flex-start;
    }
    .hero-cards-row {
        justify-content: flex-start;
    }
    .hero-slider-controls {
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .hero-slide-title {
        font-size: 30px;
    }
    .hero-slide-tagline {
        font-size: 16px;
    }
    .hero-slide-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .hero-btn-primary, .hero-btn-secondary {
        justify-content: center;
        text-align: center;
    }
    .hero-book-card {
        width: 136px;
        flex: 0 0 136px;
    }
    .card-cover-scene {
        width: 82px;
        height: 120px;
    }
}

/* ==========================================================================
   GRAND EDITORIAL ENHANCEMENTS - REGAL NAVY & GOLD PRESENCE
   ========================================================================== */

.site-header {
    background: #FFFFFF;
    border-bottom: 2px solid rgba(184, 144, 71, 0.32);
    box-shadow: 0 4px 20px rgba(11, 27, 43, 0.05);
}

.announcement {
    background: #071524 !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
    color: #CBD5E1 !important;
}

.announcement a {
    color: #F7D070 !important;
    font-weight: 600;
}

.announcement a:hover {
    color: #FFFFFF !important;
}

/* Grand Page Banners matching warm editorial aesthetic */
.grand-page-banner {
    padding: 34px 0 30px !important;
    background: linear-gradient(115deg, #FBF8F4 0%, #F5EDE4 55%, #F8F2EC 100%) !important;
    border-bottom: 1px solid rgba(228, 213, 204, 0.75) !important;
    color: #281E1B !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 18px rgba(40, 20, 15, 0.03) !important;
}

.grand-page-banner:after {
    display: none !important;
}

.grand-page-banner h1, .grand-page-banner h2 {
    color: #221714 !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    text-shadow: none !important;
    font-weight: 400 !important;
}

.grand-page-banner p {
    color: #6D605A !important;
}

.grand-page-banner .breadcrumb a {
    color: #A32737 !important;
}

.grand-page-banner .breadcrumb span {
    color: #B5A69E !important;
}

/* Homepage Curated Bookshelf Cards */
.home-content .book-grid {
    gap: 30px !important;
}

.home-content .book-card {
    background: #FFFFFF !important;
    border: 1px solid var(--c-border) !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    box-shadow: 0 4px 18px rgba(11, 27, 43, 0.05) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.home-content .book-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(212, 175, 55, 0.6) !important;
    box-shadow: 0 18px 38px -6px rgba(11, 27, 43, 0.14) !important;
}

.home-content .book-cover-area {
    background: var(--c-surface-muted) !important;
    border-bottom: 1px solid var(--c-border) !important;
    padding: 34px 22px !important;
    min-height: 290px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.home-content .book-content-area {
    padding: 22px 24px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

.home-content .book-tag {
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: var(--c-primary-accent) !important;
    background: rgba(184, 144, 71, 0.12) !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    width: fit-content !important;
    margin-bottom: 8px !important;
}

.home-content .book-title a {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 19px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.home-content .book-author {
    font-size: 16px !important;
    color: var(--c-text-muted) !important;
    margin-bottom: 12px !important;
}

.home-content .preview-link {
    font-size: 16px !important;
    color: var(--c-primary-accent) !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    display: inline-block !important;
}

.home-content .book-price {
    color: var(--c-primary-accent) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* Process Section Grand Dark Navy & Gold */
.process-section {
    background: linear-gradient(135deg, #071524 0%, #0B1B2B 55%, #10263E 100%) !important;
    border-top: 1px solid rgba(212, 175, 55, 0.25) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
    color: #CBD5E1 !important;
}

.process-section h2, .process-section h3 {
    color: #FFFFFF !important;
}

.process-section .step-number {
    color: #D4AF37 !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 42px !important;
    text-shadow: 0 0 16px rgba(212, 175, 55, 0.35) !important;
}

.process-section article {
    border-top: 1px solid rgba(212, 175, 55, 0.22) !important;
}

/* Section Headings Grand Typography */
.section-heading h2 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 600 !important;
    color: var(--c-primary-ink) !important;
}

.section-heading .eyebrow {
    font-size: 16px !important;
    letter-spacing: 0.16em !important;
    font-weight: 700 !important;
    color: var(--c-primary-accent) !important;
}

