/*
 * ========================================
 * SINGLE BOOK PAGE - CLEAN REDESIGN
 * Reality Raincheck Theme
 * ========================================
 * This file contains the cleaned up, consolidated styles
 * for the single book template with improved layout and design
 */

/* ========================================
   BOOK HEADER SECTION
   ======================================== */

.rrc-book-header {
    background: linear-gradient(135deg, #fdfdfd 0%, #f8f7f4 100%);
    margin: 0 0 3rem 0;
    padding: 0;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 20px 60px rgba(44, 62, 80, 0.12), 0 8px 20px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #e8e3dc;
}

.rrc-book-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c96567 0%, #4a7c7e 50%, #a8c09a 100%);
    z-index: 10;
}

.rrc-book-header-content {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    position: relative;
    min-height: 400px; /* Ensure minimum height */
}

/* Book Cover */
.rrc-book-cover-container {
    flex-shrink: 0;
    position: relative;
    width: 240px;
}

.rrc-book-cover-single {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(44, 62, 80, 0.15), 0 8px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(212, 197, 185, 0.2);
    display: block;
}

.rrc-book-cover-single:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 40px rgba(44, 62, 80, 0.2), 0 10px 20px rgba(0,0,0,0.12);
}

/* Book Cover Placeholder */
.rrc-book-cover-placeholder {
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #f8f7f4 0%, #e8e3dc 100%);
    border-radius: 12px;
    border: 2px dashed rgba(212, 197, 185, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rrc-no-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rrc-primary-navy);
    opacity: 0.3;
}

/* Book Details Column */
.rrc-single-book .rrc-book-details {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0; /* Allow flex shrinking */
}

.rrc-book-title {
    font-family: var(--rrc-font-display);
    font-size: 2.75rem;
    color: var(--rrc-primary-navy);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(44, 62, 80, 0.05);
}

.rrc-book-author {
    font-family: var(--rrc-font-serif);
    font-size: 1.5rem;
    color: var(--rrc-secondary-teal);
    font-style: italic;
    margin: 0 0 1rem 0;
    display: block;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.rrc-book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    opacity: 0.85;
    font-size: 0.95rem;
}

.rrc-book-genre,
.rrc-discussion-date {
    display: inline-flex;
    align-items: center;
    font-family: var(--rrc-font-body);
    font-weight: 600;
    font-size: 14px;
    color: #5a7d7c;
    padding: 4px 12px;
    background: rgba(74, 124, 126, 0.08);
    border-radius: 12px;
}

.rrc-book-synopsis {
    font-family: var(--rrc-font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--rrc-primary-navy);
    opacity: 0.92;
    margin-bottom: 1.5rem;
    background: rgba(248, 247, 244, 0.6);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--rrc-warm-sand);
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.06);
}

/* Empty state styling */
.rrc-book-header-content.no-synopsis .rrc-book-synopsis {
    display: none;
}

/* ========================================
   INTEGRATED PODCAST SECTION
   ======================================== */

.rrc-integrated-podcast {
    background: linear-gradient(135deg, #f8f7f4 0%, #ffffff 50%, #fafafa 100%);
    border: 1px solid rgba(212, 197, 185, 0.3);
    border-radius: 16px;
    padding: 1.75rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.06);
}

.rrc-podcast-header {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.rrc-podcast-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--rrc-secondary-teal);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.rrc-podcast-badge svg {
    width: 14px;
    height: 14px;
}

.rrc-podcast-context {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-grow: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.rrc-discussion-label {
    font-family: var(--rrc-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--rrc-primary-navy);
    opacity: 0.7;
}

.rrc-episode-number {
    font-family: var(--rrc-font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rrc-secondary-teal);
}

.rrc-episode-player {
    margin: 1.25rem 0 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
}

/* ========================================
   BUTTONS - UNIFIED SYSTEM
   ======================================== */

/* Base button shared styles */
.rrc-pill-button,
.rrc-amazon-button,
.rrc-kit-cta-button,
.rrc-libsyn-button,
.rrc-kit-button,
.rrc-etsy-button,
.rrc-gumroad-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 28px;
    font-family: var(--rrc-font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
    white-space: nowrap;
}

.rrc-book-actions {
    margin: 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

/* Amazon Button */
.rrc-amazon-button {
    background: #fff;
    color: #111 !important;
    border: 1px solid rgba(30, 58, 95, 0.12);
    box-shadow: 0 8px 16px rgba(30, 58, 95, 0.08);
}

.rrc-amazon-button:hover {
    background: #fff9f0;
    border-color: #FF9900;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 153, 0, 0.15);
    color: #111 !important;
}

.rrc-amazon-logo-container {
    display: flex;
    align-items: center;
    width: 16px;
    height: 16px;
}

.rrc-amazon-logo {
    width: 100%;
    height: auto;
}

/* Book Club Kit Button (in header) */
.rrc-kit-cta-button {
    background: linear-gradient(135deg, var(--rrc-secondary-teal) 0%, #3d6b6d 100%);
    color: #fff !important;
    border: 1px solid var(--rrc-secondary-teal);
    box-shadow: 0 8px 20px rgba(74, 124, 126, 0.2);
}

.rrc-kit-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(74, 124, 126, 0.25);
    color: #fff !important;
}

/* Libsyn Button */
.rrc-libsyn-button {
    background: linear-gradient(135deg, var(--rrc-deep-plum) 0%, #4a2c3d 100%);
    color: #fff !important;
    border: 1px solid var(--rrc-deep-plum);
    box-shadow: 0 8px 20px rgba(97, 64, 81, 0.2);
}

.rrc-libsyn-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(97, 64, 81, 0.25);
    color: #fff !important;
}

/* Etsy Button */
.rrc-etsy-button {
    background: white;
    color: #f1641e !important;
    border: 2px solid #f1641e;
}

.rrc-etsy-button svg {
    fill: #f1641e;
    transition: fill 0.25s ease;
}

.rrc-etsy-button:hover {
    background: #f1641e;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(241, 100, 30, 0.25);
}

.rrc-etsy-button:hover svg {
    fill: white;
}

/* Gumroad Button */
.rrc-gumroad-button {
    background: #ff90e8;
    color: #000 !important;
    border: 1px solid #ff90e8;
}

.rrc-gumroad-button:hover {
    background: #ff79e2;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 144, 232, 0.25);
}

/* Button sizing */
.rrc-kit-button {
    min-width: 200px;
    max-width: 320px;
}

.rrc-kit-button-full {
    min-width: 240px;
    max-width: 360px;
}

/* Focus states for accessibility */
.rrc-amazon-button:focus-visible,
.rrc-kit-cta-button:focus-visible,
.rrc-libsyn-button:focus-visible,
.rrc-etsy-button:focus-visible,
.rrc-gumroad-button:focus-visible {
    outline: 2px solid var(--rrc-accent-coral);
    outline-offset: 3px;
}

/* ========================================
   SHOW NOTES SECTION
   ======================================== */

.rrc-show-notes {
    max-width: 920px;
    margin: 0 auto 3rem auto;
    padding: 0 1.5rem;
}

.rrc-show-notes h2 {
    font-family: var(--rrc-font-display);
    font-size: 2.5rem;
    color: var(--rrc-primary-navy);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.rrc-show-notes h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #c96567 0%, #4a7c7e 100%);
    border-radius: 2px;
}

.rrc-show-notes > div {
    background: white;
    padding: 2rem 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.06);
    border: 1px solid rgba(212, 197, 185, 0.15);
}

.rrc-show-notes h3 {
    font-family: var(--rrc-font-display);
    color: var(--rrc-primary-navy);
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Discussion Themes */
.rrc-themes-list,
.rrc-questions-list {
    font-family: var(--rrc-font-body);
    line-height: 1.9;
    color: var(--rrc-text-dark);
}

.rrc-themes-list p,
.rrc-questions-list p {
    margin-bottom: 0.75rem;
}

/* Memorable Quotes - WITH HANGING PUNCTUATION */
.rrc-memorable-quotes {
    background: linear-gradient(135deg, var(--rrc-light-cream) 0%, white 100%);
}

.rrc-quotes-list {
    font-family: var(--rrc-font-serif);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--rrc-secondary-teal);
}

.rrc-quotes-list p,
.rrc-quotes-list blockquote {
    position: relative;
    padding-left: 0;
    margin: 1.5rem 0;
    text-indent: -0.45em; /* Hanging punctuation effect */
    padding-left: 0.45em;
}

.rrc-quotes-list p:first-child,
.rrc-quotes-list blockquote:first-child {
    margin-top: 0;
}

.rrc-quotes-list p:last-child,
.rrc-quotes-list blockquote:last-child {
    margin-bottom: 0;
}

/* Host Takeaways */
.rrc-takeaways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.rrc-takeaway {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f7f4 0%, white 100%);
    border-radius: 12px;
    border-left: 3px solid var(--rrc-secondary-teal);
}

.rrc-takeaway h4 {
    font-family: var(--rrc-font-display);
    color: var(--rrc-secondary-teal);
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.rrc-takeaway p {
    font-family: var(--rrc-font-body);
    color: var(--rrc-text-dark);
    margin: 0;
    line-height: 1.7;
}

/* ========================================
   BOOK CLUB KIT SECTION - PROFESSIONAL REDESIGN
   ========================================
   Clean, trustworthy design following Stripe/Linear principles
   Restraint over decoration, clarity over effects
   ======================================== */

.rrc-book-kit-section {
    background: #fafaf9;
    padding: 5rem 2rem;
    margin: 4rem 0 0 0;
    border-top: 1px solid rgba(30, 58, 95, 0.08);
}

.rrc-kit-container {
    max-width: 1120px;
    margin: 0 auto;
}

.rrc-kit-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(30, 58, 95, 0.1);
}

.rrc-kit-header h2 {
    font-family: var(--rrc-font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--rrc-primary-navy);
    margin: 0;
    letter-spacing: -0.01em;
}

.rrc-kit-badge {
    background: rgba(74, 124, 126, 0.08);
    color: var(--rrc-secondary-teal);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid rgba(74, 124, 126, 0.15);
}

.rrc-kit-content {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 3rem;
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(30, 58, 95, 0.08);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.04);
}

/* Preview Image Section */
.rrc-kit-preview {
    position: relative;
}

.rrc-kit-preview img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(30, 58, 95, 0.08);
}

/* Details Section */
.rrc-kit-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rrc-kit-title {
    font-family: var(--rrc-font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 600;
    color: var(--rrc-primary-navy);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.rrc-kit-description {
    font-family: var(--rrc-font-body);
    font-size: 1rem;
    color: rgba(30, 58, 95, 0.8);
    line-height: 1.6;
}

/* Features Section - Clean & Simple */
.rrc-kit-features {
    background: #f8f7f4;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(30, 58, 95, 0.06);
}

.rrc-kit-features h4 {
    font-family: var(--rrc-font-body);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--rrc-primary-navy);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 1rem 0;
}

.rrc-kit-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.rrc-kit-item {
    padding-left: 1.75rem;
    position: relative;
    font-family: var(--rrc-font-body);
    font-size: 0.9375rem;
    color: var(--rrc-primary-navy);
    line-height: 1.5;
}

.rrc-kit-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--rrc-secondary-teal);
    font-weight: 600;
    font-size: 1rem;
}

/* Price Display - Clean Layout */
.rrc-kit-price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(30, 58, 95, 0.12);
}

.rrc-kit-price-label {
    font-family: var(--rrc-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(30, 58, 95, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rrc-kit-price-amount {
    font-family: var(--rrc-font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--rrc-primary-navy);
}

.rrc-kit-price-note {
    font-family: var(--rrc-font-body);
    font-size: 0.8125rem;
    color: rgba(30, 58, 95, 0.6);
    margin-left: auto;
}

/* CTA Section - Professional Simplicity */
.rrc-kit-cta {
    margin-top: auto;
    padding-top: 1.5rem;
}

.rrc-kit-cta-title {
    font-family: var(--rrc-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rrc-primary-navy);
    margin: 0 0 1rem 0;
}

.rrc-kit-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Note styling */
.rrc-kit-note {
    font-family: var(--rrc-font-body);
    font-size: 0.8125rem;
    color: rgba(30, 58, 95, 0.6);
    margin-top: 0.75rem;
    font-style: italic;
}

/* ========================================
   NAVIGATION
   ======================================== */

.rrc-book-navigation {
    max-width: 1120px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.rrc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--rrc-font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--rrc-secondary-teal);
    text-decoration: none;
    transition: all 0.25s ease;
    padding: 0.5rem 0;
}

.rrc-back-link:hover {
    color: var(--rrc-primary-navy);
    gap: 0.75rem;
}

.rrc-back-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.rrc-back-link:hover svg {
    transform: translateX(-4px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .rrc-book-header-content {
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .rrc-book-cover-container {
        width: 200px;
    }

    .rrc-book-title {
        font-size: 2.25rem;
    }

    .rrc-kit-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .rrc-book-header {
        border-radius: 0 0 25px 25px;
    }

    .rrc-book-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: auto;
    }

    .rrc-book-cover-container {
        width: 220px;
    }

    .rrc-single-book .rrc-book-details {
        align-items: center;
    }

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

    .rrc-book-author {
        font-size: 1.3rem;
    }

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

    .rrc-book-synopsis {
        text-align: left;
    }

    .rrc-integrated-podcast {
        padding: 1.5rem;
    }

    .rrc-book-actions {
        justify-content: center;
        width: 100%;
    }

    .rrc-show-notes > div {
        padding: 1.5rem;
    }

    .rrc-kit-buttons {
        flex-direction: column;
    }

    .rrc-kit-button,
    .rrc-kit-button-full {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .rrc-book-header-content {
        padding: 1.5rem 1rem;
    }

    .rrc-book-cover-container {
        width: 180px;
    }

    .rrc-book-title {
        font-size: 1.75rem;
    }

    .rrc-integrated-podcast {
        padding: 1.25rem;
    }

    .rrc-show-notes {
        padding: 0 1rem;
    }

    .rrc-show-notes h2 {
        font-size: 2rem;
    }

    .rrc-book-kit-section {
        padding: 3rem 1rem;
    }
}
