/* =========================================
   GLOBAL
========================================= */
html{
    background: radial-gradient(circle at top, #0f172a, #0b0f17);
}

body {
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    margin: 0;
    background: radial-gradient(circle at top, #0f172a, #0b0f17);
    color: #f1f5f9;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   LAYOUT
========================================= */

.calendar-container {
    display: flex;
    min-height: 100vh;
    padding: 0px 6% 30px 6%;
    gap: 60px;
    margin-top: 60px;
}

/* =========================================
   CALENDAR SECTION
========================================= */

.calendar-section {
    flex: 2;
}

/* ===== HEADER ===== */

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

/* Month Title */
#monthYear {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Navigation Buttons */
#prevMonth,
#nextMonth {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 20px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#prevMonth:hover,
#nextMonth:hover {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.5);
}

.calendar-header button {
    flex-shrink: 0;
}

/* =========================================
   CALENDAR GRID
========================================= */

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 18px;
}

/* Day Card */
.day {
    background: rgba(255, 255, 255, 0.05);
    padding: 26px 10px;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    font-weight: 500;
    outline: none;
}

/* Hover */
.day:hover {
    transform: translateY(-6px) scale(1.03);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Keyboard Focus (NEW) */
.day:focus {
    border: 2px solid #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.7);
    transform: translateY(-4px) scale(1.03);
}

/* Prevent double animation conflict */
.day:focus:hover {
    transform: translateY(-6px) scale(1.03);
}

/* Selected Day (UPDATED – modern look) */
.selected-day {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: white;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
}

/* Days That Have Events */
.has-event {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    font-weight: 600;
}

.has-event:hover {
    opacity: 0.95;
}

/* Today Highlight */
.today {
    border: 2px solid #facc15;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.5);
}

/* =========================================
   WEEKDAY HEADER ROW
========================================= */

.weekday {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    border-radius: 6px;
    font-size: 14px;
    margin-top: -30px;
}

/* =========================================
   EVENT PANEL
========================================= */

.event-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}

.event-meta {
    margin: 6px 0;
    font-size: 14px;
    color: #d1d5db;
}

#eventDetails {
    max-height: 550px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Event Card */
.event-card {
    background: rgba(255, 255, 255, 0.07);
    padding: 26px;
    border-radius: 22px;
    margin-bottom: 18px;
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

/* Event Title */
.event-card h3 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

/* Event Details */
.event-card p {
    margin: 6px 0;
    font-size: 14px;
    color: #d1d5db;
}

/* Ticket Button */
.event-card a {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.event-card a:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.5);
}

/* =========================================
   FILTER PANEL
========================================= */

.filter-panel {
    flex: 0 0 220px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    height: fit-content;
}

.filter-panel h3 {
    margin-top: 0;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Filter labels */

.filter-panel label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #cbd5f5;
}

/* Dropdowns */

.filter-panel select {

    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;

    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);

    color: #f1f5f9;
    border-radius: 12px;

    font-size: 14px;
    cursor: pointer;

    transition: all 0.25s ease;
}

/* Hover */

.filter-panel select:hover {
    background: rgba(255,255,255,0.12);
}

/* Focus */

.filter-panel select:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56,189,248,0.4);
}

/* FIX: dropdown option visibility */

.filter-panel select option {
    background: #0f172a;   /* dark elegant dropdown */
    color: #f1f5f9;        /* readable text */
}

/* Optional: highlighted option */

.filter-panel select option:hover {
    background: #1e293b;
}

/* Checkbox filter groups */

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px; /* smaller space between options */
    margin-bottom: 16px;
}

/* Checkbox label alignment */

.filter-group label {
    display: flex;
    align-items: center; /* aligns checkbox + text perfectly */
    gap: 6px;            /* space between checkbox and text */

    font-size: 14px;
    color: #e2e8f0;

    cursor: pointer;
    line-height: 1.2;
}

/* Checkbox styling */

.filter-group input[type="checkbox"] {
    width: 15px;
    height: 15px;

    margin: 0; /* removes browser offset */

    accent-color: #38bdf8;
    cursor: pointer;
}
/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1024px) {
    .calendar-container {
        flex-direction: column;
    }

    .event-panel {
        width: 100%;
    }

    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #monthYear {
        font-size: 22px;
    }
}