/* ==========================================================================
   Book Showcase & Best Seller Styles - Antonio Brundo
   Book: "SUPER INTELLIGENCE: Through the Screen"
   ========================================================================== */

/* --- Hero Announcement Pill --- */
.hero-book-announcement {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 1.1rem;
    margin-bottom: 1.5rem;
    background: rgba(31, 41, 55, 0.75);
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 9999px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
    transition: all var(--transition-base);
    max-width: 90%;
}

.hero-book-announcement:hover {
    background: rgba(31, 41, 55, 0.95);
    border-color: rgba(245, 158, 11, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
    color: #fff;
}

.hero-book-announcement .badge-tag {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #111827;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.hero-book-announcement .badge-text {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-book-announcement .badge-text strong {
    color: #fbbf24;
    font-weight: 700;
}

.hero-book-announcement ion-icon {
    color: #f59e0b;
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.hero-book-announcement:hover ion-icon {
    transform: translateX(3px);
}

/* --- Dedicated Book Section --- */
.book-section {
    padding: 6rem 0;
    position: relative;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.6) 0%, rgba(15, 23, 42, 0.95) 50%, rgba(17, 24, 39, 0.6) 100%);
    border-top: 1px solid rgba(245, 158, 11, 0.15);
    border-bottom: 1px solid var(--surface-border);
    overflow: hidden;
}

.book-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.book-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* --- Book Cover Visual --- */
.book-visual-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.book-cover-stage {
    position: relative;
    perspective: 1200px;
    width: 100%;
    max-width: 320px;
}

.book-cover-stage::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 5%;
    width: 90%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, transparent 70%);
    filter: blur(8px);
    z-index: 0;
}

.book-cover-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        -8px 12px 30px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(245, 158, 11, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: rotateY(-8deg) rotateX(2deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: #0f172a;
}

.book-cover-stage:hover .book-cover-frame {
    transform: rotateY(0deg) rotateX(0deg) translateY(-6px);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.65),
        0 0 55px rgba(245, 158, 11, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.book-cover-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1707 / 2560;
    object-fit: cover;
}

.book-ribbon-tag {
    position: absolute;
    top: 14px;
    right: -10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.book-ribbon-tag ion-icon {
    font-size: 0.95rem;
}

.book-visual-meta {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.book-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #fbbf24;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.book-rating-badge .stars {
    color: #fbbf24;
    letter-spacing: 2px;
}

.book-formats-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* --- Book Content Details --- */
.book-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.book-kicker ion-icon {
    font-size: 1rem;
}

.book-title {
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.book-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.45;
    color: #cbd5e1;
    margin-bottom: 1.25rem;
}

.book-author-byline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(55, 65, 81, 0.7);
}

.book-author-byline strong {
    color: var(--text-primary);
}

.book-author-byline .author-dot {
    opacity: 0.5;
}

.book-hook {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
}

.book-hook strong {
    color: #fbbf24;
}

.book-acts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.book-act-card {
    background: rgba(31, 41, 55, 0.45);
    border: 1px solid rgba(55, 65, 81, 0.6);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    transition: border-color var(--transition-base), background var(--transition-base);
}

.book-act-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(31, 41, 55, 0.75);
}

.book-act-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.book-act-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.book-act-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.book-bonuses-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.book-bonus-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(55, 65, 81, 0.7);
    border-radius: 9999px;
    color: #94a3b8;
}

.book-bonus-pill ion-icon {
    color: #10b981;
    font-size: 0.85rem;
}

/* --- CTAs & Purchase Row --- */
.book-cta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.cta-button.cta-amazon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.cta-button.cta-amazon:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.45);
    color: #000;
}

.cta-button.cta-amazon ion-icon {
    font-size: 1.2rem;
}

.book-links-secondary {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.book-links-secondary a {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.book-links-secondary a:hover {
    color: #bfdbfe;
}

/* --- Biography Specific Book Card in About page --- */
.about-book-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-book-cover {
    width: 100%;
    max-width: 180px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.about-book-info h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.about-book-info .badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    margin-bottom: 0.6rem;
}

.about-book-info p {
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1rem;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 992px) {
    .book-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .book-visual-wrapper {
        margin: 0 auto;
    }

    .book-author-byline,
    .book-kicker,
    .book-bonuses-row,
    .book-cta-row,
    .book-links-secondary {
        justify-content: center;
    }

    .book-acts-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

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

    .about-book-cover {
        margin: 0 auto;
    }

    .hero-book-announcement {
        font-size: 0.78rem;
        padding: 0.4rem 0.85rem;
    }

    .hero-book-announcement .badge-text {
        white-space: normal;
    }
}
