/* How It Works Section - Redesign */

.how-it-works-redesign {
    padding: 4rem 0 4rem 0;
    background: linear-gradient(180deg,
        #fdf8f5 0%,
        #faf7f4 15%,
        var(--stone-50) 50%,
        var(--stone-50) 100%
    );
    position: relative;
    overflow: hidden;
}

/* Section Header */
.how-it-works-redesign .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.how-it-works-redesign .section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--stone-800);
    margin-bottom: 1rem;
}

.how-it-works-redesign .section-subtitle {
    font-size: 1.1rem;
    color: var(--stone-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.how-it-works-redesign .section-subtitle .highlight {
    color: var(--rose-500) !important;
    font-weight: 500;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: var(--rose-500) !important;
    background-clip: unset !important;
    filter: none !important;
}

/* Steps Flow Container */
.steps-flow-new {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Step Item */
.step-item-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    margin-bottom: 1rem;
}

/* Alternate layout for even steps */
.step-item-new.step-reverse {
    direction: rtl;
}

.step-item-new.step-reverse > * {
    direction: ltr;
}

/* Step Content (Text side) */
.step-content-new {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step-item-new:not(.step-reverse) .step-content-new {
    text-align: right;
    align-items: flex-end;
}

.step-item-new.step-reverse .step-content-new {
    text-align: left;
    align-items: flex-start;
}

/* Step Badge */
.step-badge {
    display: inline-block;
    background: var(--rose-500);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-family: 'DM Sans', sans-serif;
}

/* Step Title */
.step-title-new {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--stone-800);
    margin: 0;
    line-height: 1.3;
}

/* Step Description */
.step-description-new {
    font-size: 1rem;
    color: var(--stone-600);
    line-height: 1.6;
    margin: 0;
    max-width: 400px;
}

.step-description-new em {
    font-style: italic;
    color: var(--stone-800);
}

/* Step Visual (Card side) */
.step-visual-new {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* ================================
   STEP 1 - Video + Input Card
   ================================ */
.step1-visual {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.step1-image-card {
    position: relative;
    width: 320px;
}

.step1-media-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(244, 63, 94, 0.08);
    background: white;
    padding: 8px;
}

.step1-image-card video,
.step1-image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.step1-input-card {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(244, 63, 94, 0.04);
    margin-top: -1rem;
    margin-left: 1rem;
    margin-right: -0.5rem;
    position: relative;
    z-index: 1;
}

.input-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--stone-400);
    margin-bottom: 0.5rem;
    display: block;
}

.input-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--rose-500);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ================================
   STEP 2 - Genre Selector Card
   ================================ */
.step2-visual {
    display: flex;
    justify-content: center;
}

.step2-genre-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(244, 63, 94, 0.06);
    position: relative;
}

.genre-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    max-width: 340px;
}

.genre-pill {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    border: 1.5px solid var(--stone-200);
    background: white;
    color: var(--stone-700);
    transition: all 0.2s ease;
}

.genre-pill:hover {
    border-color: var(--rose-300);
    background: var(--rose-50);
}

.genre-pill.active {
    background: var(--rose-500);
    color: white;
    border-color: var(--rose-500);
}

/* ================================
   STEP 3 - Lyrics Draft Card
   ================================ */
.step3-visual {
    display: flex;
    justify-content: center;
}

.step3-lyrics-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04);
    width: 320px;
    position: relative;
}

.lyrics-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.lyrics-card-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--stone-400);
}

.lyrics-card-status {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
}

.lyrics-card-content {
    font-size: 1rem;
    line-height: 2;
    color: var(--stone-700);
}

.lyrics-card-content p {
    margin: 0;
    font-size: 1rem;
}

.lyrics-highlight {
    background: var(--rose-200);
    color: var(--stone-800);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.lyrics-highlight.green {
    background: #fef3c7;
    color: var(--stone-800);
}

.lyrics-card-more {
    color: var(--stone-400);
    font-size: 0.9rem;
    margin-top: 0.75rem !important;
    font-style: italic;
}

.lyrics-card-check {
    position: absolute;
    right: -12px;
    bottom: 2.5rem;
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* ================================
   STEP 4 - Audio Player Card
   ================================ */
.step4-visual {
    display: flex;
    justify-content: center;
}

.step4-player-card {
    background: linear-gradient(135deg, var(--rose-400) 0%, var(--rose-500) 100%);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    width: 280px;
    box-shadow:
        0 10px 40px rgba(244, 63, 94, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.1);
}

.player-top-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.player-play-btn {
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose-500);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.player-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.player-info-new {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.player-song-title {
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.player-song-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.player-waveform {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.waveform-bars {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 24px;
}

.waveform-bar {
    width: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.waveform-bar.active {
    background: white;
}

.player-progress-new {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    position: relative;
    margin-left: 0.5rem;
}

.player-progress-fill-new {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 40%;
    background: white;
    border-radius: 2px;
}

/* ================================
   Connecting Lines (Dashed curves)
   ================================ */
.step-connector {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    margin: -0.5rem 0;
    color: #fdba74;
}

.step-connector svg {
    width: 200px;
    height: 120px;
}

/* Connector 1: From step 1 (right) to step 2 (left) - positioned right side */
.step-connector.connector-1 {
    justify-content: flex-end;
    padding-right: 42%;
}

/* Connector 2: From step 2 (left) to step 3 (right) - positioned left side */
.step-connector.connector-2 {
    justify-content: flex-start;
    padding-left: 42%;
}

/* Connector 3: From step 3 (right) to step 4 (left) - positioned right side */
.step-connector.connector-3 {
    justify-content: flex-end;
    padding-right: 42%;
    margin-top: -2rem;
    margin-bottom: 1rem;
}

/* ================================
   Bottom CTA
   ================================ */
.how-it-works-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
}

.how-it-works-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--rose-500) 0%, var(--rose-600) 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 20px rgba(244, 63, 94, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: 'DM Sans', sans-serif;
}

.how-it-works-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 30px rgba(244, 63, 94, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.satisfaction-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--stone-500);
    font-size: 0.9rem;
}

.satisfaction-badge i {
    color: var(--stone-400);
}

/* ================================
   Responsive Styles
   ================================ */
@media (max-width: 900px) {
    .how-it-works-redesign .section-header h2 {
        font-size: 2.25rem;
    }

    .step-item-new {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .step-item-new.step-reverse {
        direction: ltr;
    }

    .step-item-new:not(.step-reverse) .step-content-new,
    .step-item-new.step-reverse .step-content-new {
        text-align: center;
        align-items: center;
        order: 1;
    }

    .step-visual-new {
        order: 2;
    }

    .step-description-new {
        max-width: 100%;
    }

    .step-connector {
        display: none;
    }

    .step-item-new {
        margin-bottom: 3rem;
    }
}

@media (max-width: 600px) {
    .how-it-works-redesign {
        padding: 3rem 0;
    }

    .how-it-works-redesign .section-header h2 {
        font-size: 1.75rem;
    }

    .how-it-works-redesign .section-subtitle {
        font-size: 1rem;
    }

    .step-title-new {
        font-size: 1.5rem;
    }

    .step1-image-card {
        width: 280px;
    }

    .step1-image-card img {
        height: 160px;
    }

    .step4-player-card {
        width: 260px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .genre-pill,
    .player-play-btn,
    .how-it-works-cta-btn {
        transition: none;
    }
}
