/* File: prj-setlist-builder/assets/css/frontend/prj-frontend-setlist.css */
/* ============================================================
   MAIN FRONTEND WRAPPER
============================================================ */
.prj-setlist-wrapper {
    max-width: 100%;
    margin: 2rem auto 3rem;
    padding: 1.5rem 1.75rem 2rem;
    background: #050505;
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03);
    color: #f5f5f5;
    font-size: 14px;
    line-height: 1.4;
}

/* ============================================================
   SETLIST HEADER
============================================================ */
.prj-setlist-header {
    margin-bottom: 0.75rem;
}

.prj-setlist-title {
    margin: 0 0 0.25rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.prj-setlist-meta {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
}

/* ============================================================
   STATUS MESSAGE
============================================================ */
.prj-setlist-message {
    margin: 0 0 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(255,45,164,0.08);
    border: 1px solid rgba(255,45,164,0.35);
    color: #ff0373;
    font-size: 0.9rem;
}

/* ============================================================
   TABLE WRAPPER
============================================================ */
.prj-setlist-table-wrapper {
    overflow-x: auto;
}

/* ============================================================
   SONGS TABLE
============================================================ */
.prj-setlist-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.prj-setlist-table thead th {
    padding: 0.55rem 0.6rem;
    background: #181818;
    color: #fdfdfd;
    border-bottom: 2px solid #ff0373;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
    white-space: nowrap;
}

.prj-setlist-table thead th:nth-child(1),
.prj-setlist-table thead th:nth-child(2) {
    text-align: center;
}

.prj-setlist-table tbody td {
    padding: 0.5rem 0.6rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.prj-setlist-table tbody tr:nth-child(even) {
    background: #0e0e0e;
}

.prj-setlist-table tbody tr:nth-child(odd) {
    background: #090909;
}

.prj-setlist-table tbody tr:hover {
    background: #171717;
}

.prj-setlist-table tbody td:nth-child(1),
.prj-setlist-table tbody td:nth-child(2) {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Make dashes a bit lighter */
.prj-setlist-table td::selection,
.prj-setlist-table th::selection {
    background: #ff0373;
    color: #000;
}

/* ============================================================
   INSTRUMENT COLUMNS
============================================================ */
.prj-col-gtr1,
.prj-col-gtr2,
.prj-col-bass,
.prj-col-drums,
.prj-col-keys,
.prj-col-bvox,
.prj-col-other {
    text-align: center;
    min-width: 80px;
}

/* Labels inside cells (read-only view) */
.prj-instr-label {
    display: inline-block;
    padding: 0.1rem 0.25rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.03);
}

/* Empty slots */
.prj-setlist-table td:empty::before,
.prj-setlist-table td:contains('-') {
    color: rgba(255,255,255,0.4);
}

/* ============================================================
   FRONTEND EDIT MODE (admin only)
============================================================ */

/* Hide selects by default, show labels */
.prj-setlist-wrapper .prj-instr-select {
    display: none;
}

/* When checkbox is on: show selects, hide labels */
.prj-setlist-wrapper.prj-edit-mode .prj-instr-select {
    display: inline-block;
    max-width: 100%;
    background: #111;
    border: 1px solid #444;
    color: #f5f5f5;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 0.8rem;
}

.prj-setlist-wrapper.prj-edit-mode .prj-instr-label {
    display: none;
}

/* Small helper text near the toggle if you add one */
.prj-instr-edit-toggle-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.5rem;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

/* ============================================================
   STATUS-BASED VISIBILITY HELPERS
============================================================ */

/* Hide these elements by default */
.prj-hide-singer-class,
.prj-hide-instrumentalist-class {
    display: none !important;
}

/* Show singer buttons during planning → open_instruments */
body.prj-status-planning .prj-hide-singer-class,
body.prj-status-open_songs .prj-hide-singer-class,
body.prj-status-voting .prj-hide-singer-class,
body.prj-status-open_instruments .prj-hide-singer-class {
    display: inline-block !important;
}

/* Show instrumentalist buttons only during open_instruments */
body.prj-status-open_instruments .prj-hide-instrumentalist-class {
    display: inline-block !important;
}

/* Hide this button during:
   - open_instruments
   - final
   - archived
*/
body.prj-status-open_instruments .prj-hide-when-instruments-open,
body.prj-status-final .prj-hide-when-instruments-open,
body.prj-status-archived .prj-hide-when-instruments-open {
    display: none !important;
}