/* ============================================================
    static/css/landing/play_by_ear.css
   ============================================================ */


/* ── Timeline wrapper ── */
.pbe-timeline {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 0 16px;
}

/* Vertical dotted center line */
.pbe-timeline__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        var(--primary-color) 0px,
        var(--primary-color) 6px,
        transparent 6px,
        transparent 14px
    );
    opacity: 0.25;
    z-index: 0;
}

/* ── Each row ── */
.pbe-tl-row {
    display: grid;
    grid-template-columns: 1fr 64px 1fr;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

/* ── Node (center circle) ── */
.pbe-tl-node {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.pbe-tl-node__circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-family: "Urbanist", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(19, 75, 161, 0.2);
    flex-shrink: 0;
}

/* ── Cards ── */
.pbe-tl-card {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px;
    position: relative;
}

/* Empty placeholder — invisible but holds grid space */
.pbe-tl-card--empty {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    pointer-events: none;
}
.pbe-tl-card--empty:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Horizontal connector: left card → node */
.pbe-tl-row--left .pbe-tl-card:first-child::after {
    content: '';
    position: absolute;
    right: -32px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 2px;
    background: linear-gradient(to right, rgba(19,75,161,0.15), rgba(19,75,161,0.4));
}

/* Horizontal connector: node → right card */
.pbe-tl-row--right .pbe-tl-card:last-child::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 2px;
    background: linear-gradient(to left, rgba(19,75,161,0.15), rgba(19,75,161,0.4));
}

/* ── Card content ── */
.pbe-tl-card__icon {
    font-size: 1.8rem;
    line-height: 1;
}

.pbe-tl-card__sub {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--primary-color);
}

.pbe-tl-card__title {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-color);
}

.pbe-tl-card__body {
    font-size: 0.86rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* ── Unlock strip ── */
.pbe-tl-unlock {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f0f5ff;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 4px;
}

.pbe-unlock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
}

/* ── Checklist ── */
.pbe-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pbe-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: #333;
    line-height: 1.6;
}

.pbe-checklist li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.pbe-checklist--green li::before {
    color: #16a34a;
}

/* ── Responsive — collapse to single column ── */
@media (max-width: 767px) {
    .pbe-timeline__line {
        left: 24px;
        transform: none;
    }

    .pbe-tl-row {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .pbe-tl-node {
        order: 1;
        flex-shrink: 0;
    }

    .pbe-tl-node__circle {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    /* Show whichever card has content, hide the empty one */
    .pbe-tl-card--empty {
        display: none !important;
    }

    .pbe-tl-row--left .pbe-tl-card:first-child,
    .pbe-tl-row--right .pbe-tl-card:last-child {
        order: 2;
        flex: 1;
    }

    /* Remove pseudo connectors on mobile */
    .pbe-tl-row--left .pbe-tl-card:first-child::after,
    .pbe-tl-row--right .pbe-tl-card:last-child::before {
        display: none;
    }
}