/* ==========================================================
   MIDNIGHT STATIC — THE STUDIO
   BUILD 9.6.0 — COMPONENT: SONG ROW
   ========================================================== */

.song-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--studio-space-4);
    width: 100%;
    min-height: 92px;
    padding: var(--studio-space-4) var(--studio-space-5);
    overflow: hidden;
    color: var(--studio-text);
    background:
        linear-gradient(135deg, rgba(200, 167, 101, 0.035), transparent 44%),
        rgba(255, 255, 255, 0.018);
    border: 1px solid var(--studio-border);
    border-radius: var(--studio-radius-md);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    transition:
        transform var(--studio-transition-normal),
        border-color var(--studio-transition-normal),
        background-color var(--studio-transition-normal),
        box-shadow var(--studio-transition-normal);
}

.song-row::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: var(--studio-accent);
    opacity: 0;
    transform: scaleY(0.35);
    transition:
        opacity var(--studio-transition-fast),
        transform var(--studio-transition-normal);
}

.song-row--interactive {
    cursor: pointer;
    user-select: none;
}

.song-row--interactive:hover {
    transform: translateY(-2px);
    background:
        linear-gradient(135deg, rgba(200, 167, 101, 0.08), transparent 48%),
        var(--studio-surface-hover);
    border-color: rgba(200, 167, 101, 0.3);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.song-row--interactive:hover::before,
.song-row--interactive:focus-visible::before {
    opacity: 1;
    transform: scaleY(1);
}

.song-row--interactive:focus-visible {
    outline: 2px solid var(--studio-accent);
    outline-offset: 3px;
    border-color: rgba(200, 167, 101, 0.38);
    background:
        linear-gradient(135deg, rgba(200, 167, 101, 0.09), transparent 48%),
        var(--studio-surface-hover);
}

.song-row--interactive:active {
    transform: translateY(0) scale(0.995);
}

.song-row__position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    color: var(--studio-accent);
    background: var(--studio-accent-soft);
    border: 1px solid rgba(200, 167, 101, 0.22);
    border-radius: var(--studio-radius-sm);
    font-size: 0.88rem;
    font-weight: 750;
    letter-spacing: 0.03em;
    line-height: 1;
}

.song-row__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: var(--studio-space-3);
    min-width: 0;
}

.song-row__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--studio-space-4);
    min-width: 0;
}

.song-row__title-group {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: var(--studio-space-1);
    min-width: 0;
}

.song-row__title {
    margin: 0;
    overflow: hidden;
    color: var(--studio-text);
    font-size: 1.04rem;
    font-weight: 680;
    letter-spacing: -0.015em;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-row__artist {
    margin: 0;
    overflow: hidden;
    color: var(--studio-text-secondary);
    font-size: 0.88rem;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-row__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--studio-space-2) var(--studio-space-3);
    min-width: 0;
}

.song-row__meta-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--studio-text-muted);
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.025em;
    line-height: 1.35;
}

.song-row__meta-item:not(:last-child)::after {
    content: "";
    width: 3px;
    height: 3px;
    margin-left: var(--studio-space-3);
    background: var(--studio-border-medium);
    border-radius: 50%;
}

.song-row__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    flex: 0 0 auto;
    padding: 0 var(--studio-space-3);
    color: var(--studio-text-muted);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--studio-border);
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.song-row__status::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-right: var(--studio-space-2);
    background: currentColor;
    border-radius: 50%;
    opacity: 0.9;
}

.song-row__status--ready,
.song-row__status--active,
.song-row__status--complete {
    color: #8ed8a1;
    background: rgba(86, 184, 110, 0.1);
    border-color: rgba(86, 184, 110, 0.22);
}

.song-row__status--practice,
.song-row__status--learning,
.song-row__status--in-progress {
    color: var(--studio-accent);
    background: var(--studio-accent-soft);
    border-color: rgba(200, 167, 101, 0.24);
}

.song-row__status--draft,
.song-row__status--planned {
    color: var(--studio-text-muted);
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--studio-border);
}

.song-row__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: var(--studio-text-muted);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--studio-border);
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    transition:
        color var(--studio-transition-fast),
        background-color var(--studio-transition-fast),
        border-color var(--studio-transition-fast),
        transform var(--studio-transition-normal);
}

.song-row--interactive:hover .song-row__arrow,
.song-row--interactive:focus-visible .song-row__arrow {
    color: var(--studio-background);
    background: var(--studio-accent);
    border-color: var(--studio-accent);
    transform: translateX(3px);
}

.song-row--missing {
    background: rgba(255, 255, 255, 0.012);
    border-style: dashed;
    box-shadow: none;
}

.song-row--missing .song-row__position {
    color: var(--studio-text-muted);
    background: rgba(255, 255, 255, 0.025);
    border-color: var(--studio-border);
}

.song-row--missing .song-row__title {
    color: var(--studio-text-secondary);
}

.song-row--missing .song-row__artist {
    color: var(--studio-text-muted);
}

@media (prefers-reduced-motion: reduce) {
    .song-row,
    .song-row::before,
    .song-row__arrow {
        transition: none;
    }

    .song-row--interactive:hover,
    .song-row--interactive:active {
        transform: none;
    }
}

@media (max-width: 720px) {
    .song-row {
        align-items: flex-start;
        gap: var(--studio-space-3);
        min-height: 0;
        padding: var(--studio-space-4);
    }

    .song-row__position {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .song-row__heading {
        flex-direction: column;
        gap: var(--studio-space-3);
    }

    .song-row__status {
        align-self: flex-start;
    }

    .song-row__arrow {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
}

@media (max-width: 520px) {
    .song-row {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .song-row__content {
        gap: var(--studio-space-2);
    }

    .song-row__title,
    .song-row__artist {
        white-space: normal;
    }

    .song-row__title {
        font-size: 0.98rem;
    }

    .song-row__meta {
        gap: var(--studio-space-1) var(--studio-space-2);
    }

    .song-row__meta-item:not(:last-child)::after {
        margin-left: var(--studio-space-2);
    }
}

/* ==========================================================
   BUILD 9.6.2 — SONG ROW ACTIONS
   Voeg dit onderaan css/components/song-row.css toe.
   ========================================================== */

.song-row__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--studio-space-2);

    flex: 0 0 auto;
}

.song-row__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--studio-space-2);

    min-height: 38px;
    padding:
        0
        var(--studio-space-3);

    color: var(--studio-accent);
    background: var(--studio-accent-soft);

    border:
        1px solid
        rgba(200, 167, 101, 0.24);

    border-radius:
        var(--studio-radius-sm);

    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.025em;

    cursor: pointer;

    transition:
        color var(--studio-transition-fast),
        background-color var(--studio-transition-fast),
        border-color var(--studio-transition-fast),
        transform var(--studio-transition-fast);
}

.song-row__action:hover {
    color: var(--studio-bg);
    background: var(--studio-accent);
    border-color: var(--studio-accent);

    transform: translateY(-1px);
}

.song-row__action:focus-visible {
    outline:
        2px solid
        var(--studio-accent);

    outline-offset:
        3px;
}

.song-row__action--disabled,
.song-row__action:disabled {
    color: var(--studio-text-muted);
    background: rgba(255, 255, 255, 0.025);
    border-color: var(--studio-border);

    cursor: not-allowed;
    opacity: 0.62;
}

.song-row__action--disabled:hover,
.song-row__action:disabled:hover {
    color: var(--studio-text-muted);
    background: rgba(255, 255, 255, 0.025);
    border-color: var(--studio-border);

    transform: none;
}

.song-row__open-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    color: var(--studio-text-muted);

    font-size: 1rem;
    line-height: 1;

    transition:
        color var(--studio-transition-fast),
        transform var(--studio-transition-normal);
}

.song-row--interactive:hover .song-row__open-arrow,
.song-row--interactive:focus-visible .song-row__open-arrow {
    color: var(--studio-accent);

    transform: translateX(3px);
}

@media (
    max-width: 720px
) {
    .song-row__actions {
        align-items: flex-end;
        flex-direction: column-reverse;
    }
}

@media (
    max-width: 520px
) {
    .song-row__actions {
        grid-column:
            1 /
            -1;

        align-items: center;
        flex-direction: row;
        justify-content: flex-end;

        width: 100%;
        margin-top:
            var(--studio-space-2);
    }
}
