/* ═══════════════════════════════════════════════════════════
   FESTIVALS — Command Center Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Layout ──────────────────────────────────────────────── */
.fest-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

.fest-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0 12px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
}

.fest-back-link {
    color: #666;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    transition: color 0.2s;
}
.fest-back-link:hover { color: var(--accent); border-color: rgba(240,208,64,0.3); }

.fest-eyebrow {
    color: #333;
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fest-loading {
    text-align: center;
    color: #444;
    margin-top: 60px;
    font-style: italic;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
}

.fest-loading-small {
    color: #888;
    font-style: italic;
    font-size: 0.75rem;
    padding: 8px 12px;
}

.fest-empty {
    text-align: center;
    color: #444;
    margin-top: 60px;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
}

.fest-section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #555;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1c1c1c;
}

/* ── Hero Section ────────────────────────────────────────── */
.fest-hero {
    border-radius: 16px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid #222;
    animation: fadeInCard 0.35s ease forwards;
}

.fest-hero.hero-locked-in {
    border: 1px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.12);
}

.fest-hero-poster {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #000;
}

.fest-hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.fest-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22,22,22,0.95) 0%, rgba(22,22,22,0.6) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.fest-hero-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.fest-hero-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    margin: 0;
}

.fest-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.fest-hero-location {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

.fest-hero-location .meta-venue {
    color: #bbb;
}

/* Hero body panels */
.fest-hero-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Logistics dashboard */
.fest-hero-logistics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.fest-hero-logistics .logistics-bar {
    width: 100%;
    margin-top: 4px;
}

/* Hotel cancel warning */
.fest-cancel-warn {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #ff4444;
    background: rgba(255, 68, 68, 0.06);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    animation: pulse-border 1.5s infinite;
}

/* Notes */
.fest-hero-notes {
    font-family: 'Barlow', sans-serif;
    font-size: 0.85rem;
    color: #999;
    line-height: 1.5;
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border-left: 2px solid #333;
    white-space: pre-line;
}

/* Weather */
.fest-hero-weather {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #777;
}

/* ── Lineup Panel ────────────────────────────────────────── */
.fest-lineup-panel {
    border-top: 1px solid #1c1c1c;
    padding-top: 16px;
}

.fest-lineup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.fest-lineup-toggle {
    width: 100%;
    background: none;
    border: 1px solid #1c1c1c;
    border-radius: 8px;
    color: #555;
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s, border-color 0.2s;
}
.fest-lineup-toggle:hover { color: #888; border-color: #333; }

.fest-lineup-arrow {
    margin-left: auto;
    font-size: 0.65rem;
    transition: transform 0.2s;
}
.fest-lineup-arrow.open { transform: rotate(180deg); }

.fest-lineup-body { margin-top: 12px; }
.fest-lineup-body.hidden { display: none; }

.fest-lineup-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #666;
}

.fest-lineup-stats {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #555;
}

.fest-lineup-group {
    margin-bottom: 12px;
}

.fest-lineup-role {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #444;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #1a1a1a;
}

.fest-lineup-artist {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-family: 'Barlow', sans-serif;
    font-size: 0.85rem;
    color: var(--text);
}

.fest-lineup-artist .tier-badge {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.tier-must-see { background: rgba(240,208,64,0.15); color: #f0d040; }
.tier-solid    { background: rgba(46,125,50,0.15); color: #4caf50; }
.tier-so-so    { background: rgba(255,152,0,0.15); color: #ff9800; }
.tier-skip     { background: rgba(66,66,66,0.15); color: #666; }

.fest-lineup-fetch-btn {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--sameday);
    background: rgba(3, 218, 198, 0.08);
    border: 1px solid rgba(3, 218, 198, 0.25);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.fest-lineup-fetch-btn:hover {
    background: rgba(3, 218, 198, 0.15);
    border-color: rgba(3, 218, 198, 0.5);
}
.fest-lineup-fetch-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.fest-lineup-empty {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #444;
    padding: 12px 0;
}

/* ── Prep Checklist ──────────────────────────────────────── */
.fest-prep-panel {
    border-top: 1px solid #1c1c1c;
    padding-top: 16px;
}

.fest-prep-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 12px;
}

.fest-prep-progress {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #555;
}

.fest-prep-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fest-prep-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background 0.15s;
    cursor: pointer;
}
.fest-prep-item:hover {
    background: rgba(255,255,255,0.03);
}

.fest-prep-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #333;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}

.fest-prep-item input[type="checkbox"]:checked {
    border-color: var(--sameday);
    background: rgba(3, 218, 198, 0.15);
}

.fest-prep-item input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sameday);
    font-size: 0.7rem;
    font-weight: 700;
}

.fest-prep-text {
    font-family: 'Barlow', sans-serif;
    font-size: 0.85rem;
    color: var(--text);
    flex: 1;
}
.fest-prep-item.done .fest-prep-text {
    text-decoration: line-through;
    color: #555;
}

.fest-prep-remove {
    background: none;
    border: none;
    color: #333;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
}
.fest-prep-item:hover .fest-prep-remove { opacity: 1; }
.fest-prep-remove:hover { color: #ff4444; }

.fest-prep-add {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.fest-prep-add input {
    flex: 1;
    background: transparent;
    border: 1px solid #222;
    border-radius: 6px;
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    font-size: 0.85rem;
    padding: 8px 12px;
    outline: none;
    transition: border-color 0.2s;
}
.fest-prep-add input:focus { border-color: #444; }
.fest-prep-add input::placeholder { color: #333; }

.fest-prep-add button {
    background: rgba(3, 218, 198, 0.08);
    border: 1px solid rgba(3, 218, 198, 0.25);
    color: var(--sameday);
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.fest-prep-add button:hover { background: rgba(3, 218, 198, 0.15); }

/* ── Upcoming Grid ───────────────────────────────────────── */
.fest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.fest-card {
    display: flex;
    flex-direction: row;
    background: var(--card);
    border-radius: 12px;
    border: 1px solid #222;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
    animation: fadeInCard 0.35s ease forwards;
}
.fest-card:hover {
    border-color: #333;
    transform: translateY(-2px);
}
.fest-card.card-ready {
    border-color: rgba(255, 215, 0, 0.3);
}
.fest-card.card-ready:hover {
    border-color: rgba(255, 215, 0, 0.5);
}

.fest-card-poster {
    position: relative;
    width: 120px;
    flex-shrink: 0;
    background: #000;
}

.fest-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.fest-card-poster .status {
    position: absolute;
    top: 8px;
    left: 8px;
    width: auto;
    bottom: auto;
    padding: 3px 8px;
    font-size: 0.5rem;
    letter-spacing: 2px;
    border-radius: 4px;
}

.fest-card-info {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.fest-card-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fest-card-dates {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #888;
    margin-top: 4px;
}

.fest-card-location {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #666;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fest-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.fest-card-footer .kit-chip {
    font-size: 0.55rem;
    padding: 2px 6px;
}

.fest-card-footer .event-countdown {
    font-size: 0.55rem;
}

/* ── Detail Panel (inline expand below grid card) ────────── */
.fest-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.fest-detail-content {
    background: var(--card);
    border: 1px solid #333;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeInCard 0.2s ease forwards;
}

.fest-detail-close {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px 0;
    z-index: 1;
}

.fest-detail-close button {
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    color: #888;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.2s;
}
.fest-detail-close button:hover { color: var(--text); }

/* ── Past Archive ────────────────────────────────────────── */
.fest-past {
    margin-top: 40px;
}

.fest-past-toggle {
    width: 100%;
    background: none;
    border: 1px solid #1c1c1c;
    border-radius: 8px;
    color: #555;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s, border-color 0.2s;
}
.fest-past-toggle:hover { color: #888; border-color: #333; }

.fest-past-count {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #444;
}

.fest-past-arrow {
    margin-left: auto;
    font-size: 0.65rem;
    transition: transform 0.2s;
}
.fest-past-arrow.open { transform: rotate(180deg); }

.fest-past-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fest-past-list.hidden { display: none; }

.fest-past-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    border-left: 2px solid #222;
    transition: background 0.15s;
}
.fest-past-row:hover { background: rgba(255,255,255,0.02); }

.fest-past-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fest-past-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #555;
    flex-shrink: 0;
}

.fest-past-location {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #444;
    flex-shrink: 0;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Master Checklist ────────────────────────────────────── */
.fest-master {
    margin-bottom: 20px;
}

.fest-master-toggle {
    width: 100%;
    background: none;
    border: 1px solid #1c1c1c;
    border-radius: 8px;
    color: var(--accent);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s, border-color 0.2s;
}
.fest-master-toggle:hover { border-color: rgba(240,208,64,0.3); }

.fest-master-body {
    padding: 12px 0;
}
.fest-master-body.hidden { display: none; }

.fest-master-item {
    cursor: default;
}
.fest-master-item .fest-prep-text {
    flex: 1;
}

.fest-master-controls {
    display: flex;
    gap: 2px;
    align-items: center;
    opacity: 0;
    transition: opacity 0.15s;
}
.fest-master-item:hover .fest-master-controls { opacity: 1; }

.fest-master-move {
    background: none;
    border: none;
    color: #444;
    font-size: 0.6rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
}
.fest-master-move:hover { color: var(--accent); }

/* ── All Details Panel ───────────────────────────────────── */
.fest-details-panel {
    border-top: 1px solid #1c1c1c;
    padding-top: 16px;
}

.fest-details-toggle {
    width: 100%;
    background: none;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    color: #555;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s, border-color 0.2s;
}
.fest-details-toggle:hover { color: #888; border-color: #333; }
.fest-details-toggle .fest-past-arrow { margin-left: auto; }

.fest-details-body {
    margin-top: 10px;
}
.fest-details-body.hidden { display: none; }

.fest-details-group {
    margin-bottom: 12px;
}

.fest-details-group-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #444;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #1a1a1a;
}

.fest-details-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
    gap: 12px;
}

.fest-details-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: #555;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fest-details-value {
    font-family: 'Barlow', sans-serif;
    font-size: 0.8rem;
    color: var(--text);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .fest-hero-poster { height: 220px; }
    .fest-hero-name { font-size: 1.5rem; }
    .fest-hero-overlay { padding: 16px; }
    .fest-hero-body { padding: 16px; }

    .fest-grid { grid-template-columns: 1fr; }

    .fest-card-poster { width: 100px; }
    .fest-card-name { font-size: 0.95rem; }

    .fest-past-location { display: none; }
    .fest-past-row { gap: 8px; }

    .fest-detail-overlay { padding: 8px; }
    .fest-detail-content { max-height: 95vh; }
}

@media (hover: none) and (pointer: coarse) {
    .fest-prep-item { padding: 12px 10px; min-height: 44px; }
    .fest-prep-remove { opacity: 0.5; }
    .fest-lineup-artist { padding: 8px 0; min-height: 40px; }
    .fest-master-controls { opacity: 0.5; }
    .fest-master-move { padding: 8px; font-size: 0.7rem; }
}

/* ── Set Time Badges ─────────────────────────────────────── */
.fest-set-time {
    font-size: 0.65rem; color: #bb86fc; margin-left: 6px;
    opacity: 0.8;
}

/* ── Set Time Review Modal ───────────────────────────────── */
.st-review-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}
.st-review-modal {
    background: #1e1e1e; border-radius: 12px;
    padding: 20px; width: 95%; max-width: 700px;
    max-height: 85vh; display: flex; flex-direction: column;
    color: #e0e0e0;
}
.st-review-title {
    font-size: 0.95rem; font-weight: 600; color: #bb86fc;
    margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em;
}
.st-review-scroll {
    overflow-y: auto; flex: 1; margin-bottom: 12px;
}
.st-review-table {
    width: 100%; border-collapse: collapse; font-size: 0.8rem;
}
.st-review-table th {
    text-align: left; padding: 6px 4px; color: #888;
    border-bottom: 1px solid #333; font-weight: 500;
    position: sticky; top: 0; background: #1e1e1e;
}
.st-review-table td { padding: 4px; }
.st-input {
    background: #2a2a2a; border: 1px solid #444; border-radius: 4px;
    color: #fff; padding: 5px 6px; font-size: 0.8rem; width: 100%;
    box-sizing: border-box;
}
.st-input:focus { border-color: #bb86fc; outline: none; }
.st-name { color: #aaa; }
.st-review-actions {
    display: flex; justify-content: flex-end; gap: 10px;
}
.st-review-cancel {
    background: transparent; border: 1px solid #555; color: #aaa;
    padding: 7px 16px; border-radius: 6px; cursor: pointer; font-size: 0.85rem;
}
.st-review-cancel:hover { border-color: #888; color: #fff; }
.st-review-save {
    background: rgba(187,134,252,0.15); border: 1px solid rgba(187,134,252,0.4);
    color: #bb86fc; padding: 7px 16px; border-radius: 6px;
    cursor: pointer; font-size: 0.85rem; font-weight: 600;
}
.st-review-save:hover { background: rgba(187,134,252,0.25); }
