/* /layout-styles.css */
/* ===================================================================
   === 1. GLOBAL & THEME STYLES
   =================================================================== */
body {
    font-family: 'Inter', sans-serif;
    background-color: #380000;
}
.font-cinzel {
    font-family: 'Cinzel', serif;
}
.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.bg-brand-dark {
    background-color: #380000;
}
.bg-brand-card {
    background-color: #2a0000;
}
.text-brand-gold {
    color: #fde047; /* Tailwind's yellow-300 */
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===================================================================
   === 2. COMPONENT: Velvet Curtain Button
   =================================================================== */
.btn-velvet {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #000;
    color: #fde047;
    background-color: #4c0000;
    background-image: linear-gradient(45deg, rgba(0,0,0,0.2) 25%, transparent 25%, transparent 50%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.2) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.7);
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block; /* Changed from flex for better inline-block behavior */
    align-items: center;
    justify-content: center;
}
.btn-velvet:not(.disabled):hover {
    background-color: #fde047;
    color: #4c0000;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3), 0 0 10px rgba(255, 255, 255, 0.3);
    background-image: none;
}
.btn-velvet.primary {
    background-color: #fde047;
    color: #4c0000;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
    background-image: none;
}
.btn-velvet.primary:not(.disabled):hover {
    background-color: #facc15;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.4), 0 0 10px rgba(255, 255, 255, 0.3);
}
.btn-velvet.disabled {
    background-color: #4a5568; /* gray-700 */
    color: #a0aec0; /* gray-500 */
    cursor: not-allowed;
    background-image: none;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
    opacity: 0.6;
}

/* ===================================================================
   === 3. PAGE: Admin Panel
   =================================================================== */
.approved-movie-card {
    position: relative;
    overflow: hidden;
    background-color: #1f2937;
    border: 1px solid #4a5568;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
}
.poster-upload-area {
    border: 2px dashed #4a5568;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background-color: #374151;
    color: #d1d5db;
    border-radius: 8px;
}
.poster-upload-area.drag-over {
    border-color: #fde047;
    background-color: #4b5563;
}
.edit-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.edit-form-grid .col-span-2 {
    grid-column: span 2 / span 2;
}
.edit-form-grid label {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
    display: block;
}
.edit-form-grid input,
.edit-form-grid textarea {
    width: 100%;
    background-color: #111827;
    border: 1px solid #4a5568;
    color: white;
    border-radius: 0.375rem;
    padding: 0.5rem;
    font-size: 0.875rem;
}
.edit-form-grid input[type="checkbox"] {
    width: auto;
    height: 1.25rem;
    width: 1.25rem;
    border-radius: 0.25rem;
    color: #fde047;
    background-color: #374151;
}
.status-flag {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
}
.status-flag-current { background-color: #fde047; }
.status-flag-upcoming { background-color: #3b82f6; }
.status-flag-past { background-color: #6b7280; }

/* ===================================================================
   === 4. PAGE: Signups
   =================================================================== */
#thermostat-container {
    touch-action: pan-y;
}
.thermostat-track-horizontal {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 12px;
    background: linear-gradient(to right, #3B82F6, #FBBF24, #EF4444);
    border-radius: 6px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}
.thermostat-thumb-horizontal {
    position: absolute;
    top: 50%;
    width: 32px;
    height: 32px;
    background-color: #fff;
    border-radius: 50%;
    border: 3px solid #4a5568;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transform: translate(-50%, -50%);
    cursor: pointer;
}

/* ===================================================================
   === 5. NEW STYLES (Includes Auction and Homepage Toggle)
   =================================================================== */
.temporary-content-container {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.admin-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.admin-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.admin-toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #374151; /* gray-700 */
    transition: .4s;
    border-radius: 34px;
    border: 1px solid #4a5568; /* gray-600 */
}
.admin-toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.admin-toggle-switch input:checked + .slider {
    background-color: #fde047; /* yellow-300 */
    border-color: #facc15; /* yellow-400 */
}
.admin-toggle-switch input:checked + .slider:before {
    transform: translateX(26px);
    background-color: #4c0000;
}

/* Auction Styles */
.item-card {
    background-color: rgba(0,0,0,0.2);
    border: 1px solid rgba(253, 224, 71, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease-in-out;
}
.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border-color: rgba(253, 224, 71, 0.3);
}
.item-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.bid-button {
    font-family: 'Cinzel', serif;
    padding: 0.75rem 1.5rem;
    background-color: #fde047;
    color: #4c0000;
    border: none;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
.bid-button:hover {
    background-color: #facc15;
}

#add-item-form input, #add-item-form textarea,
.item-edit-form input, .item-edit-form textarea {
    width: 100%;
    background-color: rgba(0,0,0,0.3);
    border: 1px solid rgba(252, 211, 77, 0.2);
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease-in-out;
}
#add-item-form input:focus, #add-item-form textarea:focus,
.item-edit-form input:focus, .item-edit-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #fcd34d;
    border-color: #fcd34d;
}

/* Auction Admin */
#add-item-form label, .item-edit-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.25rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.05em;
}
.item-card-admin-container {
    background-color: rgba(0,0,0,0.2);
    border: 1px solid rgba(253, 224, 71, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out;
}
.item-card-admin-container.item-closed {
    opacity: 0.6;
    border-color: rgba(107, 114, 128, 0.2);
}
.item-card-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}
.item-card-admin .delete-button,
.item-card-admin .toggle-bids-button,
.item-card-admin .edit-button {
    font-family: 'Cinzel', serif;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
}
.item-card-admin .delete-button {
    background-color: #991b1b; color: #fecaca; border-color: #ef4444;
}
.item-card-admin .delete-button:hover {
    background-color: #ef4444; color: white;
}
.item-card-admin .toggle-bids-button {
    background-color: #1e3a8a; color: #bfdbfe; border-color: #3b82f6;
}
.item-card-admin .toggle-bids-button:hover {
    background-color: #3b82f6; color: white;
}
.item-card-admin .edit-button {
    background-color: #166534; color: #bbf7d0; border-color: #22c55e;
}
.item-card-admin .edit-button:hover {
    background-color: #22c55e; color: white;
}
.closed-badge {
    background-color: #4b5563;
    color: #d1d5db;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
    font-family: 'Inter', sans-serif;
}

.bids-section {
    padding: 0 1rem 1rem 1rem;
    background-color: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(253, 224, 71, 0.1);
}
.bids-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.bids-table th, .bids-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(253, 224, 71, 0.1);
}
.bids-table th {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: #d1d5db;
    text-transform: uppercase;
}
.bids-table .reject-bid-button {
    font-family: 'Inter', sans-serif;
    background-color: #991b1b;
    color: #fecaca;
    border: 1px solid #ef4444;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
}
.bids-table .reject-bid-button:hover {
    background-color: #ef4444;
    color: white;
}

/* ===================================================================
   === 6. SANTA SIGNUP STYLES (NEW)
   =================================================================== */
.time-slot-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.75rem 0.5rem;
    border-radius: 0.375rem; /* rounded-md */
    border: 1px solid;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.time-slot-btn.available {
    background-color: rgba(0, 0, 0, 0.3); /* black/30 */
    border-color: rgba(252, 211, 77, 0.2); /* yellow-300/20 */
    color: #fff;
    cursor: pointer;
}

.time-slot-btn.available:hover {
    background-color: rgba(252, 211, 77, 0.2); /* yellow-300/20 */
    border-color: rgba(252, 211, 77, 0.4); /* yellow-300/40 */
}

.time-slot-btn.taken {
    background-color: rgba(75, 85, 99, 0.3); /* gray-600/30 */
    border-color: rgba(75, 85, 99, 0.2); /* gray-600/20 */
    color: #9ca3af; /* gray-400 */
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.7;
}

/* --- NEW SPINNER (for santa-signup.js) --- */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fde047; /* text-brand-gold */
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
/* --- END NEW SPINNER --- */

/* NEW: Santa Gallery Styles */
.santa-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem; /* 16px */
}

.santa-gallery-item {
    aspect-ratio: 3 / 2; /* 3:2 aspect ratio */
    border-radius: 0.5rem; /* rounded-lg */
    overflow: hidden;
    border: 2px solid rgba(252, 211, 77, 0.1); /* yellow-300/10 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease-in-out;
}

.santa-gallery-item:hover {
    border-color: rgba(252, 211, 77, 0.4); /* yellow-300/40 */
    transform: scale(1.03);
}

.santa-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the container */
}


/* NOTE: All datepicker styles have been moved to datepicker-theme.css */
/* Build Timestamp: 11/8/2025, 4:09:00 PM MST */