/* ============================================================
   Blackout Schedule Block — Styles
   ============================================================ */

/* Wrapper */
.bsb-schedule-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 1.5em 0;
}

/* ---- Header ---- */
.bsb-schedule-header {
    margin-bottom: 1em;
}

.bsb-schedule-title {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 0 0.25em;
    line-height: 1.3;
    color: #1a1a1a;
}

.bsb-schedule-badge {
    color: #198754;
    font-size: inherit;
    white-space: nowrap;
}

.bsb-schedule-updated {
    font-size: 0.82em;
    color: #6c757d;
    margin: 0;
}

/* ---- Grid ---- */
.bsb-schedule-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1em;
}

@media (max-width: 1024px) {
    .bsb-schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .bsb-schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .bsb-schedule-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- Card ---- */
.bsb-queue-card {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.bsb-queue-header {
    background: #f8f9fa;
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    font-size: 0.9em;
}

.bsb-queue-header a {
    color: #0d6efd;
    text-decoration: none;
}

.bsb-queue-header a:hover {
    text-decoration: underline;
}

.bsb-queue-body {
    flex: 1;
    padding: 0;
}

.bsb-queue-footer {
    font-size: 0.75em;
    color: #6c757d;
    text-align: center;
    padding: 6px 8px;
    border-top: 1px solid #dee2e6;
    background: #fafafa;
}

/* ---- Intervals ---- */
.bsb-interval {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    font-size: 0.87em;
    border-bottom: 1px solid #f0f0f0;
}

.bsb-interval:last-child {
    border-bottom: none;
}

.bsb-interval--highlight {
    background-color: #fff3cd;
}

.bsb-interval--off .bsb-interval-time {
    color: #6c757d;
}

.bsb-interval-time {
    flex: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.bsb-interval-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 6px;
    flex-shrink: 0;
}

.bsb-interval-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* Editor */
.bsb-editor-preview .bsb-schedule-wrap {
    pointer-events: none;
}


/* ---- Empty ---- */
.bsb-empty {
    color: #6c757d;
    font-style: italic;
    padding: 1em 0;
}

/* ---- Editor specific ---- */
.bsb-editor-wrap .bsb-schedule-title {
    font-size: 1.3em;
}

.bsb-editor-block {
    position: relative;
}
