/* ==========================================================================
   RICHA WRITES - BESPOKE EDITORIAL & JOURNAL STYLES
   All buttons, badges, headings, text, paragraphs, and card borders
   strictly use classes from public/css/vj.css.
   ========================================================================== */

/* Section Spacing & Transitions */
.rw-section {
    padding: 85px 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .rw-section {
        padding: 50px 0;
    }
}

/* --------------------------------------------------------------------------
   1. EDITORIAL & LITERARY STYLES (Page 1: Reflections)
   -------------------------------------------------------------------------- */
.rw-drop-cap::first-letter {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    line-height: 0.8;
    float: left;
    margin: 4px 12px 0 0;
    color: var(--primary);
    font-weight: 800;
}

.rw-editorial-frame {
    position: relative;
    border-radius: var(--radius-box);
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}

.rw-editorial-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rw-signature-note {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    color: var(--primary);
    font-size: 1.25rem;
}

/* Bento Grid System (Reflections & Youth) */
.rw-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.rw-bento-card {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-box);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rw-bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 16px 36px rgba(203, 96, 150, 0.22);
}

.rw-bento-large {
    grid-column: span 7;
    min-height: 380px;
}

.rw-bento-side {
    grid-column: span 5;
    min-height: 380px;
}

.rw-bento-half {
    grid-column: span 6;
}

.rw-bento-third {
    grid-column: span 4;
}

@media (max-width: 991px) {
    .rw-bento-large, .rw-bento-side, .rw-bento-half, .rw-bento-third {
        grid-column: span 12;
    }
}

/* Timeline Cards (Manuscript Room) */
.rw-timeline-step {
    position: relative;
    padding-left: 32px;
    border-left: 2px dashed rgba(203, 96, 150, 0.4);
    margin-bottom: 36px;
}

.rw-timeline-step:last-child {
    border-left-color: transparent;
    margin-bottom: 0;
}

.rw-timeline-dot {
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(203, 96, 150, 0.25);
}

/* --------------------------------------------------------------------------
   2. POLAROID & FIELD NOTEBOOK STYLES (Page 2: Life Notes)
   -------------------------------------------------------------------------- */
.rw-polaroid-card {
    background: #ffffff;
    padding: 14px 14px 20px 14px;
    border-radius: var(--radius-box);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--light-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rw-polaroid-card:hover {
    transform: translateY(-5px) rotate(-0.5deg);
    box-shadow: var(--shadow-elevated);
}

.rw-polaroid-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 14px;
}

.rw-mentor-circle-card {
    background: #ffffff;
    border: 1px solid var(--light-border);
    border-radius: var(--radius-box);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.rw-mentor-circle-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-elevated);
}

.rw-mentor-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--primary);
    box-shadow: 0 6px 16px rgba(203, 96, 150, 0.25);
}

/* Ledger Checklist (Noise vs Signal) */
.rw-ledger-box {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-box);
    padding: 30px;
}

.rw-ledger-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.rw-ledger-item:last-child {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   3. INVESTIGATIVE & CITIZEN ACTION STYLES (Page 3: Society & Change)
   -------------------------------------------------------------------------- */
.rw-split-dossier {
    border-radius: var(--radius-box);
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--light-border);
}

.rw-stat-badge-float {
    background: rgba(18, 10, 20, 0.88);
    backdrop-filter: blur(8px);
    border-left: 4px solid var(--primary);
    padding: 14px 18px;
    border-radius: 8px;
    color: #ffffff;
}

.rw-matrix-card {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-box);
    padding: 28px;
    position: relative;
    transition: all 0.35s ease;
    overflow: hidden;
}

.rw-matrix-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.rw-matrix-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* --------------------------------------------------------------------------
   4. FAUX-PARCHMENT & DOMESTIC LETTERS (Page 4: Women & Family)
   -------------------------------------------------------------------------- */
.rw-parchment-letter {
    background: #fffcf9;
    border: 1px solid #e8dbcf;
    border-radius: var(--radius-box);
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 30px rgba(74, 43, 61, 0.08);
}

.rw-parchment-seal {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), #8b2b5b);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 14px rgba(203, 96, 150, 0.4);
}

.rw-layered-comp {
    position: relative;
    padding-bottom: 40px;
}

.rw-layered-base {
    width: 85%;
    border-radius: var(--radius-box);
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}

.rw-layered-floating {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60%;
    border-radius: var(--radius-box);
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   5. CAREER COMPASS & BLUEPRINT (Page 5: Youth & Purpose)
   -------------------------------------------------------------------------- */
.rw-blueprint-card {
    background: #ffffff;
    border: 2px dashed rgba(203, 96, 150, 0.35);
    border-radius: var(--radius-box);
    padding: 34px 28px;
    transition: all 0.35s ease;
    height: 100%;
}

.rw-blueprint-card:hover {
    border-style: solid;
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-elevated);
}

.rw-number-stamp-lg {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: var(--primary);
    opacity: 0.3;
}

/* --------------------------------------------------------------------------
   6. BROADCAST CONTROL ROOM & COMPARISON (Page 6: Media & Communication)
   -------------------------------------------------------------------------- */
.rw-audit-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.rw-audit-row {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.rw-audit-row:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.rw-audit-cell {
    padding: 18px 24px;
}

.rw-audit-bad {
    color: #ff8585;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.rw-audit-good {
    color: #b7ffb7;
}

/* --------------------------------------------------------------------------
   7. IMMERSIVE AUDIO WAVE & PODCAST (Page 7: Podcast Notes)
   -------------------------------------------------------------------------- */
.rw-audio-wave-card {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-box);
    padding: 26px;
    transition: all 0.35s ease;
}

.rw-audio-wave-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(203, 96, 150, 0.25);
}

.rw-wave-visualizer {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 28px;
}

.rw-wave-bar {
    width: 3px;
    background: var(--primary);
    border-radius: 3px;
    animation: wavePulse 1.4s ease-in-out infinite alternate;
}

.rw-wave-bar:nth-child(1) { height: 10px; animation-delay: 0.1s; }
.rw-wave-bar:nth-child(2) { height: 22px; animation-delay: 0.3s; }
.rw-wave-bar:nth-child(3) { height: 28px; animation-delay: 0.5s; }
.rw-wave-bar:nth-child(4) { height: 14px; animation-delay: 0.2s; }
.rw-wave-bar:nth-child(5) { height: 24px; animation-delay: 0.4s; }
.rw-wave-bar:nth-child(6) { height: 8px;  animation-delay: 0.6s; }

@keyframes wavePulse {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

/* --------------------------------------------------------------------------
   8. CINEMASCOPE FILM REEL (Page 8: Documentary Thoughts)
   -------------------------------------------------------------------------- */
.rw-cinemascope-hero {
    position: relative;
    height: 480px;
    border-radius: var(--radius-box);
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}

.rw-cinemascope-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rw-filmstrip-strip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: thin;
}

.rw-film-frame {
    flex: 0 0 320px;
    background: #0d060e;
    border: 2px solid var(--dark-border);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.rw-film-frame-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.rw-camera-meta {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   9. BESPOKE PRE-CTA LIGHT SECTION (Above @include('partials.pre'))
   -------------------------------------------------------------------------- */
.rw-pre-cta-section {
    background: var(--light-bg);
    border-top: 1px solid var(--light-border);
    position: relative;
    padding: 80px 0 50px 0;
}

.rw-pre-cta-card {
    background: #ffffff;
    border: 1px solid var(--light-border);
    border-radius: var(--radius-box);
    padding: clamp(30px, 4vw, 50px);
    box-shadow: var(--shadow-soft);
    transition: all 0.35s ease;
}

.rw-pre-cta-card:hover {
    box-shadow: var(--shadow-elevated);
    border-color: var(--primary);
}

.rw-pre-cta-img-wrap {
    position: relative;
    border-radius: var(--radius-box);
    overflow: hidden;
    height: 550px;
    box-shadow: var(--shadow-elevated);
}

.rw-pre-cta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.rw-pre-cta-img-wrap:hover .rw-pre-cta-img {
    transform: scale(1.06);
}

.rw-pre-cta-floating-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(29, 19, 34, 0.9);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary);
    padding: 14px 18px;
    border-radius: 8px;
    color: #ffffff;
}
