/**
 * Retro Recordings XR — Outboard / Effects Page
 *
 * Category-grouped flat list (compressors, EQ, reverbs, delays, pitch, exciters, specials).
 * Each unit: image left + content right (mobile: stacks).
 *
 * CSS prefix: ob-
 * Loaded conditionally via inc/enqueue.php — only on page-outboard.php template.
 *
 * @package    RetroRecordingsXR
 * @since      2.0.0
 */

/* ==========================================================================
   Layout shell
   ========================================================================== */

.ob-layout {
    display: flex;
    flex-direction: column;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
    gap: 4rem;
}

/* ==========================================================================
   Category header
   ========================================================================== */

.ob-category {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ob-category-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 165, 116, 0.15);
}

/* ==========================================================================
   Unit cards — 240px image left + content right (matches archive pattern)
   ========================================================================== */

.ob-units {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ob-unit {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: 2px;
    background: rgba(26, 18, 10, 0.45);
    transition: border-color 0.2s ease;
}

.ob-unit:hover {
    border-color: rgba(212, 165, 116, 0.35);
}

/* ── Media column ─────────────────────────────────────────────────────── */

.ob-unit-media {
    width: 240px;
}

.ob-unit-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

.ob-unit-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: rgba(212, 165, 116, 0.04);
    border: 1px dashed rgba(212, 165, 116, 0.2);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

/* ── Content column ───────────────────────────────────────────────────── */

.ob-unit-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ob-unit-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ob-unit-meta {
    display: flex;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.ob-meta-label {
    color: rgba(232, 160, 84, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.7rem;
    min-width: 100px;
    flex-shrink: 0;
}

.ob-meta-value {
    color: rgba(244, 228, 215, 0.8);
}

.ob-unit-story {
    margin-top: 0.5rem;
}

.ob-unit-mechanism .ob-meta-label,
.ob-unit-uses .ob-meta-label {
    display: block;
    margin-bottom: 0.4rem;
}

.ob-unit-uses ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ob-unit-uses li::before {
    content: '— ';
    color: rgba(232, 160, 84, 0.4);
}

/* ==========================================================================
   References + manuals — small tag-style buttons
   ========================================================================== */

.ob-unit-links .ob-meta-label {
    display: block;
    margin-bottom: 0.5rem;
}

.ob-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ob-link {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(244, 228, 215, 0.75);
    background: rgba(212, 165, 116, 0.06);
    border: 1px solid rgba(212, 165, 116, 0.18);
    border-radius: 2px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    white-space: nowrap;
}

.ob-link:hover {
    color: rgba(244, 228, 215, 0.95);
    background: rgba(212, 165, 116, 0.12);
    border-color: rgba(212, 165, 116, 0.4);
}

/* Type-specific accent — manuals get a brass-tinted tone */
.ob-link[data-link-type="manual"],
.ob-link[data-link-type="schematic"] {
    border-color: rgba(232, 160, 84, 0.3);
    color: rgba(232, 160, 84, 0.85);
}

.ob-link[data-link-type="manual"]:hover,
.ob-link[data-link-type="schematic"]:hover {
    border-color: rgba(232, 160, 84, 0.55);
    color: rgba(244, 228, 215, 0.95);
}

/* ==========================================================================
   Mobile — stacked layout (matches archive-card mobile pattern)
   ========================================================================== */

@media (max-width: 700px) {
    .ob-layout {
        padding: 0 1rem 3rem;
        gap: 3rem;
    }

    .ob-unit {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .ob-unit-media {
        width: 100%;
    }

    .ob-unit-meta {
        flex-direction: column;
        gap: 0.15rem;
    }

    .ob-meta-label {
        min-width: 0;
    }
}
