/* css/cosplay.css — cosplay app additions on top of style.css */

.cosplay-wide {
    max-width: 640px;
}

.contest-section {
    border-top: 2px solid #e0e0e0;
    margin-top: 15px;
    padding-top: 10px;
}

/* Slot picker */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
    margin: 10px 0 20px;
}
.slot-btn {
    padding: 16px 4px;
    font-size: 1.15em;
    font-weight: bold;
    border: 2px solid #4a90d9;
    background: #fff;
    color: #2c5f8a;
    border-radius: 8px;
    cursor: pointer;
}
.slot-btn:hover, .slot-btn:focus {
    background: #4a90d9;
    color: #fff;
}

/* Entry type badges */
.entry-badge {
    display: inline-block;
    padding: 2px 8px;
    margin: 1px 2px;
    border-radius: 10px;
    font-size: 0.78em;
    color: #fff;
    white-space: nowrap;
}
.badge-craftsmanship { background: #7b1fa2; }
.badge-performance   { background: #1976d2; }
.badge-runway        { background: #388e3c; }

/* Favorites */
.heart-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 1em;
    color: #888;
}
.heart-btn.heart-on {
    color: #d81b60;
    border-color: #d81b60;
    background: #fce4ec;
}

/* Judge photo grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}
.photo-item img {
    width: 100%;
    height: 95px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin-bottom: 4px;
}
.photo-item .btn { font-size: 0.75em; padding: 2px 8px; }

/* Receipt */
.receipt-blurb {
    border-top: 1px solid #e0e0e0;
    margin-top: 15px;
    padding-top: 10px;
}

@media print {
    .noprint { display: none !important; }
    body.login-page { background: #fff; }
    .login-container { box-shadow: none; max-width: 100%; }
    .receipt.card { border: 1px solid #999; box-shadow: none; }
}

/* Bookmark callout on the receipt */
.bookmark-box {
    border: 2px dashed #4a90d9;
    background: #eef5fc;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
    text-align: left;
    word-break: break-all;
}

/* Unmissable judging-time CTA on the entrant profile */
.cta-banner {
    background: #c62828;
    color: #fff;
    border-radius: 10px;
    padding: 20px;
    font-size: 1.15em;
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    animation: cta-pulse 1.6s ease-in-out infinite;
}
.cta-btn {
    background: #fff;
    color: #c62828;
    font-weight: bold;
    font-size: 1.05em;
    border: none;
    white-space: nowrap;
}
.cta-btn:hover { background: #ffe5e5; color: #b71c1c; }
@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.55); }
    50%      { box-shadow: 0 0 0 10px rgba(198, 40, 40, 0); }
}
@media print { .cta-banner { display: none; } }

/* Roster: entry badge + its heart on one line */
.entry-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 3px 0;
    white-space: nowrap;
}
.entry-line .heart-btn { padding: 1px 8px; font-size: 0.9em; }

/* Audio-missing variant of the CTA banner */
.cta-audio {
    background: #e65100;
    animation-name: cta-pulse-amber;
}
.cta-btn-audio { color: #e65100; }
.cta-btn-audio:hover { background: #ffe8d6; color: #bf360c; }
@keyframes cta-pulse-amber {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230, 81, 0, 0.55); }
    50%      { box-shadow: 0 0 0 10px rgba(230, 81, 0, 0); }
}

/* Compact skit audio player on the roster */
.mini-audio {
    display: block;
    height: 26px;
    width: 185px;
    margin-top: 4px;
}

/* DataTables buttons + header tweaks on the roster */
#roster-table_wrapper .dt-buttons { margin-bottom: 8px; }
#roster-table_wrapper .dt-button {
    border: 1px solid #4a90d9; background: #fff; color: #2c5f8a;
    border-radius: 6px; padding: 5px 12px; margin-right: 6px; cursor: pointer;
}
#roster-table_wrapper .dt-button:hover { background: #4a90d9; color: #fff; }
#roster-table thead th { cursor: pointer; }

/* Extra roster columns: keep long text readable when enabled */
#roster-table td:nth-child(n+9) { max-width: 220px; overflow-wrap: break-word; }
#roster-table_wrapper .dt-button-collection { max-height: 60vh; overflow-y: auto; }

/* Roster photo thumbnails (Photos column) */
.roster-photo {
    height: 42px; width: 42px; object-fit: cover;
    border-radius: 4px; margin: 1px; vertical-align: middle;
}

/* Lightbox */
.lb-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.88);
    display: none; align-items: center; justify-content: center;
}
.lb-overlay.lb-open { display: flex; }
.lb-overlay img {
    max-width: 92vw; max-height: 90vh;
    border-radius: 6px; box-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.lb-btn {
    position: absolute; background: rgba(255,255,255,0.12); color: #fff;
    border: none; border-radius: 50%; width: 44px; height: 44px;
    font-size: 1.5em; cursor: pointer; line-height: 1;
}
.lb-btn:hover { background: rgba(255,255,255,0.3); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-caption {
    position: absolute; bottom: 14px; left: 0; right: 0;
    text-align: center; color: #ddd; font-size: 0.95em;
}

/* Rules link in the Agreements section */
.rules-callout {
    background: #eef5fc;
    border-left: 4px solid #4a90d9;
    padding: 10px 12px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 12px;
}
.rules-callout a { font-weight: bold; }

/* Selected slot on the signup form */
.slot-btn.slot-selected {
    background: #2c5f8a;
    color: #fff;
    border-color: #2c5f8a;
}
#slot-chosen { margin-top: 8px; color: #2e7d32; }

/* Day accordion for the slot pickers */
.day-acc {
    border: 1px solid #d6e2ef;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fff;
}
.day-acc summary {
    cursor: pointer;
    padding: 14px 12px;
    font-weight: bold;
    font-size: 1.05em;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-tap-highlight-color: rgba(74,144,217,0.15);
}
.day-acc summary::-webkit-details-marker { display: none; }
.day-acc summary::after { content: '▸'; color: #4a90d9; transition: transform 0.15s; }
.day-acc[open] summary::after { transform: rotate(90deg); }
.day-acc .day-count {
    font-weight: normal;
    font-size: 0.85em;
    color: #2e7d32;
    margin-left: 8px;
    margin-right: 8px;
}
.day-acc .slot-grid { padding: 0 10px 10px; margin: 0; }

/* Admin: day / blackout / new-event forms lay out side-by-side on desktop */
.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.inline-form .form-group {
    flex: 1 1 150px;
    margin-bottom: 0;
    min-width: 130px;
}
.inline-form .form-group label { display: block; margin-bottom: 4px; }
.inline-form input, .inline-form select { width: 100%; }
@media (max-width: 600px) {
    .inline-form { flex-direction: column; align-items: stretch; }
    .inline-form .form-group { flex: 1 1 auto; }
}

/* Staff list: selection column + blast panel */
#staff-table .select-col { width: 34px; text-align: center; }
.sms-blast-card textarea { width: 100%; }
.sms-counter { margin-top: 4px; font-size: 0.9em; }

/* Staff list: dept filter beside the DataTables search box */
#dept-filter { margin-right: 8px; padding: 6px 8px; }
#staff-table_wrapper .dt-search { display: flex; align-items: center; }

/* Collapsible SMS blast panel */
.sms-blast-card summary { padding: 12px; }
.sms-blast-card .blast-body { padding: 0 12px 12px; }
