/* ═══════════════════════════════════════════════
   SCR Show Calendar — Light Broadcast Theme
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

#scr-show-calendar-app {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f4f5f7;
    color: #1a1d2b;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#scr-show-calendar-app *,
#scr-show-calendar-app *::before,
#scr-show-calendar-app *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Loading ── */
.scr-loading {
    text-align: center;
    padding: 80px 20px;
    color: #a0a6b8;
}
.scr-loading-spinner {
    width: 32px; height: 32px;
    border: 3px solid #e4e6ec;
    border-top: 3px solid #0d9b5c;
    border-radius: 50%;
    animation: scr-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes scr-spin { to { transform: rotate(360deg); } }
.scr-loading-text { font-size: 14px; }

/* ── Header ── */
.scr-header {
    background: #ffffff;
    padding: 28px 48px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid #e4e6ec;
    flex-wrap: wrap;
    gap: 16px;
}
.scr-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #0d9b5c;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.scr-dot {
    width: 7px; height: 7px;
    background: #0d9b5c;
    border-radius: 50%;
    display: inline-block;
    animation: scr-pulse 2s ease-in-out infinite;
}
@keyframes scr-pulse { 0%,100% { opacity:1; } 50% { opacity:0.25; } }

.scr-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1a1d2b;
    line-height: 1.1;
}
.scr-submit-btn {
    background: #0d9b5c;
    color: #ffffff;
    border: none;
    padding: 11px 26px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}
.scr-submit-btn:hover {
    background: #0b8a51;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,155,92,0.25);
}

/* ── Filter Bar ── */
.scr-bar {
    display: flex;
    gap: 14px;
    padding: 16px 48px;
    background: #ffffff;
    border-bottom: 1px solid #e4e6ec;
    flex-wrap: wrap;
    align-items: center;
}
.scr-search {
    background: #f4f5f7;
    border: 1.5px solid #e4e6ec;
    color: #1a1d2b;
    padding: 12px 18px;
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    width: 420px;
    max-width: 100%;
    border-radius: 8px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}
.scr-search:focus {
    border-color: #0d9b5c;
    box-shadow: 0 0 0 3px rgba(13,155,92,0.1);
}
.scr-search::placeholder { color: #a0a6b8; }

.scr-dropdown {
    background: #f4f5f7;
    border: 1.5px solid #e4e6ec;
    color: #1a1d2b;
    padding: 12px 18px;
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    min-width: 140px;
}
.scr-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #a0a6b8;
    margin-left: auto;
    font-weight: 500;
}

/* ── Event List ── */
.scr-list {
    padding: 12px 48px 40px;
}
.scr-item {
    display: grid;
    grid-template-columns: 80px 1fr 170px;
    gap: 24px;
    padding: 20px 24px;
    margin: 6px 0;
    border-radius: 10px;
    background: #ffffff;
    border: 1.5px solid #ecedf1;
    transition: all 0.15s;
    cursor: pointer;
    align-items: center;
}
.scr-item:hover {
    border-color: #d0d4de;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.scr-item.scr-item-expanded {
    border-color: #0d9b5c;
    box-shadow: 0 2px 16px rgba(13,155,92,0.08);
}

/* Date column */
.scr-dt { text-align: center; }
.scr-dt-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 26px;
    font-weight: 700;
    color: #0d9b5c;
    line-height: 1;
}
.scr-dt-month {
    font-size: 12px;
    color: #a0a6b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 3px;
    font-weight: 500;
}

/* Detail column */
.scr-detail-name {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 3px 0;
    color: #1a1d2b;
    line-height: 1.3;
}
.scr-detail-loc {
    font-size: 14px;
    color: #7a8299;
}

/* Right column */
.scr-right { text-align: right; }
.scr-right-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 600;
    color: #1a1d2b;
}
.scr-right-tables {
    font-size: 12px;
    color: #a0a6b8;
    margin-top: 3px;
}
.scr-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.scr-badge-free { background: #edfcf2; color: #0d9b5c; }
.scr-badge-paid { background: #fef3ee; color: #d4652e; }

/* Expanded detail */
.scr-expand {
    grid-column: 1 / -1;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid #ecedf1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 32px;
    font-size: 13px;
}
.scr-expand-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a0a6b8;
    margin-bottom: 2px;
}
.scr-expand-val { color: #4a5068; }
.scr-expand-full { grid-column: 1 / -1; }

/* Empty state */
.scr-empty {
    text-align: center;
    padding: 60px 20px;
    color: #a0a6b8;
}
.scr-empty-icon { font-size: 36px; margin-bottom: 12px; }
.scr-empty-title { font-size: 16px; font-weight: 600; color: #7a8299; margin-bottom: 4px; }
.scr-empty-text { font-size: 13px; }

/* ── Modal Overlay ── */
.scr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,29,43,0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}
.scr-modal {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 32px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.15);
}
.scr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.scr-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1d2b;
}
.scr-close {
    background: #f4f5f7;
    border: none;
    width: 36px; height: 36px;
    border-radius: 8px;
    font-size: 18px;
    color: #7a8299;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.scr-close:hover { background: #ecedf1; }

/* Form grid */
.scr-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.scr-field { display: flex; flex-direction: column; }
.scr-full { grid-column: 1 / -1; }

.scr-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #7a8299;
    margin-bottom: 5px;
}
.scr-input {
    background: #f4f5f7;
    border: 1.5px solid #e4e6ec;
    color: #1a1d2b;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    border-radius: 8px;
    outline: none;
    transition: border 0.2s;
    width: 100%;
}
.scr-input:focus { border-color: #0d9b5c; }
.scr-input::placeholder { color: #b8bdcc; }
.scr-textarea { min-height: 72px; resize: vertical; }

.scr-divider {
    padding: 8px 0 4px;
    border-top: 1px solid #ecedf1;
    margin-top: 4px;
    grid-column: 1 / -1;
}
.scr-divider-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a0a6b8;
}

.scr-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #ecedf1;
}
.scr-btn-ghost {
    background: transparent;
    border: 1.5px solid #e4e6ec;
    color: #7a8299;
    padding: 11px 24px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}
.scr-btn-ghost:hover { border-color: #d0d4de; background: #f9f9fb; }
.scr-btn-primary {
    background: #0d9b5c;
    color: #ffffff;
    border: none;
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.scr-btn-primary:hover { background: #0b8a51; }
.scr-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* Success state */
.scr-success-icon { font-size: 48px; margin-bottom: 16px; }
.scr-success-text { color: #7a8299; font-size: 14px; max-width: 340px; margin: 0 auto 24px; }

/* Form error */
.scr-form-error {
    background: #fef3ee;
    color: #d4652e;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    grid-column: 1 / -1;
}

/* Honeypot */
.scr-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ── Pagination ── */
.scr-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 24px 48px 8px;
    flex-wrap: wrap;
}
.scr-page-btn {
    background: #ffffff;
    border: 1.5px solid #e4e6ec;
    color: #4a5068;
    padding: 8px 14px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 40px;
    text-align: center;
}
.scr-page-btn:hover:not(.scr-page-disabled):not(.scr-page-active) {
    border-color: #0d9b5c;
    color: #0d9b5c;
}
.scr-page-active {
    background: #0d9b5c;
    border-color: #0d9b5c;
    color: #ffffff;
    font-weight: 600;
}
.scr-page-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Responsive ── */
@media (max-width: 720px) {
    .scr-header { padding: 20px 16px; }
    .scr-bar { padding: 12px 16px; }
    .scr-list { padding: 8px 12px 32px; }
    .scr-title { font-size: 26px; }
    .scr-item {
        grid-template-columns: 60px 1fr;
        padding: 14px 14px;
        gap: 14px;
    }
    .scr-right {
        grid-column: 2;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    .scr-search { width: 100%; }
    .scr-expand { grid-template-columns: 1fr; }
    .scr-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .scr-form-grid { grid-template-columns: 1fr; }
    .scr-modal { padding: 20px; margin: 10px; }
    .scr-count { display: none; }
}
