/*
 * Vick's Supper Club FullCalendar Customizations
 * Version: v1.0 (2026-03-14)
 * Scope: Calendar styling for event calendar
 *        Overrides FullCalendar defaults to match Vick's brand
 *
 * Dependencies:
 *   - css/style.css (brand color tokens - MUST load before this file)
 *   - FullCalendar v6.x library styles
 *
 * Related Files:
 *   - includes/fullcalendar.php - CDN includes
 *   - includes/event-modal.php - Event details modal
 *   - js/fullcalendar-init.js - Calendar initialization
 */

/* ── Calendar Container ───────────────────────────────── */
.calendar-section {
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
    padding: 0;
}

.calendar-section .section-title {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

/* ── FullCalendar Overrides ───────────────────────────── */

/* Toolbar (header with nav arrows + title) */
.fullcalendar-vicks .fc-toolbar-title {
    font-family: 'Playfair Display', serif !important;
    color: var(--gold) !important;
    font-size: 1.4rem !important;
}

.fullcalendar-vicks .fc-button {
    background-color: var(--bg-card) !important;
    border-color: var(--gold-dark) !important;
    color: var(--gold) !important;
    font-family: 'Josefin Sans', sans-serif !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
}

.fullcalendar-vicks .fc-button:hover {
    background-color: var(--gold-dark) !important;
    color: var(--bg-dark) !important;
}

.fullcalendar-vicks .fc-button-active {
    background-color: var(--gold) !important;
    color: var(--bg-dark) !important;
}

/* Day headers (Mon, Tue, etc.) */
.fullcalendar-vicks .fc-col-header-cell {
    background-color: var(--bg-card) !important;
}

.fullcalendar-vicks .fc-col-header-cell-cushion {
    color: var(--gold) !important;
    font-family: 'Josefin Sans', sans-serif !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.05em;
}

/* Day cells */
.fullcalendar-vicks .fc-daygrid-day {
    background-color: var(--bg-dark) !important;
    border-color: rgba(212, 175, 55, 0.15) !important;
}

.fullcalendar-vicks .fc-daygrid-day-number {
    color: var(--text-cream) !important;
    font-family: 'Crimson Pro', serif !important;
}

/* Today highlight */
.fullcalendar-vicks .fc-day-today {
    background-color: rgba(212, 175, 55, 0.12) !important;
}

.fullcalendar-vicks .fc-day-today .fc-daygrid-day-number {
    color: var(--gold-light) !important;
    font-weight: 700 !important;
}

/* Past dates */
.fullcalendar-vicks .fc-day-past:not(.fc-day-today) {
    background-color: rgba(13, 13, 13, 0.7) !important;
}

.fullcalendar-vicks .fc-day-past:not(.fc-day-today) .fc-daygrid-day-number {
    opacity: 0.4;
}

/* Other month days */
.fullcalendar-vicks .fc-day-other .fc-daygrid-day-number {
    opacity: 0.25;
}

/* Events */
.fullcalendar-vicks .fc-event {
    background-color: var(--burgundy) !important;
    border-color: var(--gold-dark) !important;
    color: var(--text-cream) !important;
    font-family: 'Crimson Pro', serif !important;
    border-radius: 2px !important;
}

/* Scrollbar for calendar table */
.fullcalendar-vicks .fc-scrollgrid {
    border-color: rgba(212, 175, 55, 0.2) !important;
}

.fullcalendar-vicks .fc-theme-standard td,
.fullcalendar-vicks .fc-theme-standard th {
    border-color: rgba(212, 175, 55, 0.15) !important;
}

/* ── Event Details Modal ──────────────────────────────── */

/* Modal content container */
.vicks-modal {
    background-color: var(--bg-card);
    color: var(--text-cream);
    border: 1px solid var(--gold-dark);
}

/* Modal header - burgundy gradient */
.vicks-modal-header {
    background: linear-gradient(135deg, var(--burgundy), #4a1a1f);
    border-bottom: 1px solid var(--gold-dark);
}

/* Modal title */
.vicks-modal-title {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
}

/* Modal field labels (dt) */
.vicks-modal-label {
    color: var(--gold);
    font-family: 'Josefin Sans', sans-serif;
}

/* Modal field values (dd) */
.vicks-modal-value {
    font-family: 'Crimson Pro', serif;
}

/* Modal event image - full width between header and body */
.vicks-modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-bottom: 1px solid var(--gold-dark);
}

/* Modal footer */
.vicks-modal-footer {
    border-top: 1px solid var(--gold-dark);
}

/* Modal close button */
.vicks-modal-btn {
    background-color: var(--burgundy);
    color: var(--text-cream);
    border: 1px solid var(--gold-dark);
}

.vicks-modal-btn:hover {
    background-color: var(--gold-dark);
    color: var(--bg-dark);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    .calendar-section .section-title {
        font-size: 1.4rem;
    }

    .fullcalendar-vicks .fc-toolbar-title {
        font-size: 1.1rem !important;
    }

    .fullcalendar-vicks .fc-button {
        font-size: 0.75rem !important;
        padding: 0.25em 0.5em !important;
    }
}

@media (max-width: 480px) {
    .calendar-section {
        padding: 0 0.5rem;
    }

    .fullcalendar-vicks .fc-toolbar {
        flex-direction: column !important;
        gap: 0.5rem;
    }
}
