/*
 * ========================================
 * HOMEPAGE - PROFESSIONAL REDESIGN
 * Reality Raincheck Theme
 * ========================================
 * Hero section, featured book, podcast episodes, about preview
 * Matching the quality and design system of book pages
 */

/* ========================================
   HOMEPAGE WRAPPER
   ======================================== */

.rrc-homepage-wrapper {
    background: linear-gradient(135deg, #fdfdfd 0%, #f8f7f4 50%, #fafafa 100%);
    min-height: 100vh;
}

/* Section Reusable Components */
.rrc-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.rrc-section-label {
    display: inline-block;
    font-family: var(--rrc-font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rrc-accent-coral);
    margin-bottom: 0.75rem;
    padding: 6px 16px;
    background: rgba(201, 101, 103, 0.08);
    border-radius: 20px;
}

.rrc-section-title {
    font-family: var(--rrc-font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--rrc-primary-navy);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* ========================================
   HERO SECTION
   ======================================== */

.rrc-homepage-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    min-height: 600px;
}

.rrc-hero-content {
    max-width: 580px;
}

.rrc-hero-title {
    font-family: var(--rrc-font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--rrc-primary-navy);
    line-height: 1.1;
    margin: 0 0 1.25rem 0;
    letter-spacing: -0.02em;
}

.rrc-hero-tagline {
    font-family: var(--rrc-font-display);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-style: italic;
    color: var(--rrc-secondary-teal);
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
}

.rrc-hero-description {
    font-family: var(--rrc-font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--rrc-primary-navy);
    opacity: 0.85;
    margin: 0 0 2.5rem 0;
    max-width: 540px;
}

.rrc-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Buttons */
.rrc-hero-btn-primary,
.rrc-hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 28px;
    font-family: var(--rrc-font-body);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.rrc-hero-btn-primary {
    background: linear-gradient(135deg, var(--rrc-secondary-teal) 0%, #3d6b6d 100%);
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(74, 124, 126, 0.2);
}

.rrc-hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(74, 124, 126, 0.3);
    color: #fff !important;
}

.rrc-hero-btn-secondary {
    background: transparent;
    color: var(--rrc-primary-navy) !important;
    border: 2px solid var(--rrc-primary-navy);
}

.rrc-hero-btn-secondary:hover {
    background: var(--rrc-primary-navy);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(30, 58, 95, 0.2);
}

/* Hero Visual */
.rrc-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.rrc-hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(30, 58, 95, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.rrc-hero-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 28px 80px rgba(30, 58, 95, 0.2);
}

.rrc-hero-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--rrc-light-cream) 0%, var(--rrc-warm-sand) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(212, 197, 185, 0.4);
}

/* ========================================
   FEATURED BOOK SECTION
   ======================================== */

.rrc-homepage-featured-book {
    max-width: 1200px;
    margin: 0 auto 5rem auto;
    padding: 0 2rem;
}

.rrc-featured-book-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 3rem;
    background: white;
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(30, 58, 95, 0.1);
    border: 1px solid rgba(30, 58, 95, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rrc-featured-book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rrc-accent-coral) 0%, var(--rrc-secondary-teal) 50%, var(--rrc-soft-sage) 100%);
}

.rrc-featured-book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 80px rgba(30, 58, 95, 0.15);
}

.rrc-featured-book-cover {
    position: relative;
}

.rrc-featured-book-cover img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(30, 58, 95, 0.15);
    transition: transform 0.4s ease;
}

.rrc-featured-book-card:hover .rrc-featured-book-cover img {
    transform: translateY(-8px) scale(1.02);
}

.rrc-book-badge-featured {
    position: absolute;
    top: -12px;
    right: -12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--rrc-deep-plum) 0%, var(--rrc-primary-navy) 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(97, 64, 81, 0.3);
}

.rrc-featured-book-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rrc-featured-book-title {
    font-family: var(--rrc-font-display);
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--rrc-primary-navy);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.rrc-featured-book-author {
    font-family: var(--rrc-font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--rrc-secondary-teal);
    margin: 0;
}

.rrc-featured-book-excerpt {
    font-family: var(--rrc-font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--rrc-primary-navy);
    opacity: 0.85;
}

.rrc-featured-book-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    flex-wrap: wrap;
}

/* Book Action Buttons */
.rrc-btn-primary,
.rrc-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    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);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.rrc-btn-primary {
    background: linear-gradient(135deg, var(--rrc-secondary-teal) 0%, #3d6b6d 100%);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(74, 124, 126, 0.2);
}

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

.rrc-btn-secondary {
    background: #fff;
    color: #111 !important;
    border: 1px solid rgba(30, 58, 95, 0.12);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.06);
}

.rrc-btn-secondary:hover {
    background: #fff9f0;
    border-color: #FF9900;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 153, 0, 0.15);
    color: #111 !important;
}

/* ========================================
   PODCAST EPISODES SECTION
   ======================================== */

.rrc-homepage-podcast {
    max-width: 1200px;
    margin: 0 auto 5rem auto;
    padding: 0 2rem;
}

.rrc-podcast-episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.rrc-episode-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(30, 58, 95, 0.06);
}

.rrc-episode-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(30, 58, 95, 0.15);
}

.rrc-episode-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, rgba(244, 235, 232, 0.92), rgba(250, 248, 246, 0.98));
}

.rrc-episode-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rrc-episode-card:hover .rrc-episode-cover img {
    transform: scale(1.08);
}

.rrc-episode-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(74, 124, 126, 0.85) 0%, rgba(97, 64, 81, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rrc-episode-card:hover .rrc-episode-play-overlay {
    opacity: 1;
}

.rrc-episode-content {
    padding: 1.5rem;
}

.rrc-episode-title {
    font-family: var(--rrc-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--rrc-primary-navy);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rrc-episode-author {
    font-family: var(--rrc-font-serif);
    font-size: 1rem;
    font-style: italic;
    color: var(--rrc-secondary-teal);
    margin: 0 0 1rem 0;
}

.rrc-episode-link {
    font-family: var(--rrc-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--rrc-accent-coral);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.rrc-episode-link:hover {
    color: var(--rrc-secondary-teal);
    transform: translateX(4px);
}

/* ========================================
   ABOUT PREVIEW SECTION
   ======================================== */

.rrc-homepage-about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 5rem auto;
    padding: 4rem 2rem;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(30, 58, 95, 0.1);
}

.rrc-about-preview-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.rrc-about-preview-text {
    font-family: var(--rrc-font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--rrc-primary-navy);
    opacity: 0.85;
}

.rrc-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 28px;
    font-family: var(--rrc-font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--rrc-secondary-teal);
    color: var(--rrc-secondary-teal) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
}

.rrc-btn-outline:hover {
    background: var(--rrc-secondary-teal);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 124, 126, 0.2);
}

.rrc-about-preview-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rrc-about-preview-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(30, 58, 95, 0.15);
}

.rrc-about-preview-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--rrc-light-cream) 0%, var(--rrc-warm-sand) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(212, 197, 185, 0.4);
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.rrc-homepage-newsletter {
    max-width: 800px;
    margin: 0 auto 5rem auto;
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--rrc-primary-navy) 0%, var(--rrc-secondary-teal) 100%);
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(30, 58, 95, 0.2);
    color: white;
}

.rrc-newsletter-title {
    font-family: var(--rrc-font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: white;
    margin: 0 0 1rem 0;
}

.rrc-newsletter-description {
    font-family: var(--rrc-font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.92;
    margin: 0 0 2rem 0;
}

/* Newsletter form styling (generic - adjust for your form plugin) */
.rrc-newsletter-content form {
    max-width: 500px;
    margin: 0 auto;
}

.rrc-newsletter-content input[type="email"] {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--rrc-font-body);
    font-size: 15px;
    margin-bottom: 1rem;
}

.rrc-newsletter-content input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.rrc-newsletter-content button[type="submit"],
.rrc-newsletter-content input[type="submit"] {
    background: white;
    color: var(--rrc-primary-navy);
    padding: 1rem 2rem;
    border-radius: 28px;
    border: none;
    font-family: var(--rrc-font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.rrc-newsletter-content button[type="submit"]:hover,
.rrc-newsletter-content input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

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

@media (max-width: 992px) {
    .rrc-homepage-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4rem 1.5rem;
        min-height: auto;
    }

    .rrc-hero-content {
        max-width: 100%;
        text-align: center;
    }

    .rrc-hero-actions {
        justify-content: center;
    }

    .rrc-featured-book-card {
        grid-template-columns: 280px 1fr;
        gap: 2rem;
        padding: 2.5rem;
    }

    .rrc-homepage-about-preview {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .rrc-about-preview-content {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .rrc-homepage-hero {
        padding: 3rem 1rem;
    }

    .rrc-featured-book-card {
        grid-template-columns: 1fr;
        padding: 2rem;
        text-align: center;
    }

    .rrc-featured-book-cover {
        max-width: 280px;
        margin: 0 auto;
    }

    .rrc-featured-book-actions {
        justify-content: center;
    }

    .rrc-podcast-episodes-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .rrc-homepage-about-preview {
        padding: 3rem 1.5rem;
    }

    .rrc-homepage-newsletter {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .rrc-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .rrc-hero-btn-primary,
    .rrc-hero-btn-secondary {
        width: 100%;
        justify-content: center;
    }

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

    .rrc-btn-primary,
    .rrc-btn-secondary,
    .rrc-btn-outline {
        width: 100%;
    }
}

/* ========================================
   FOCUS STATES (Accessibility)
   ======================================== */

.rrc-hero-btn-primary:focus-visible,
.rrc-hero-btn-secondary:focus-visible,
.rrc-btn-primary:focus-visible,
.rrc-btn-secondary:focus-visible,
.rrc-btn-outline:focus-visible {
    outline: 2px solid var(--rrc-accent-coral);
    outline-offset: 3px;
}
