/**
 * assets/css/responsive.css 
 * Optimized for Nevada State Branding & Section 508 ADA Compliance
 * Maintained by: Kristina Meyers
 */

/* --- 1. Variables & Root --- */
:root {
--nv-navy: #003366;
    --nv-gold: #FFCC00;
    --nv-slate: #64748b;
    --nv-light-bg: #f8fafc;
    --nv-border: #e2e8f0;
    --nv-font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* --- 2. Global & Accessibility --- */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.nv-full-width-override {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}
/* ADA Keyboard Focus States */
.nv-event-link:focus, 
.nv-summary-link:focus, 
.nv-nav-btn:focus,
.google-maps-link:focus,
.nv-back-button:focus {
    outline: 3px solid solid #FFCC00 !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.2);
}

/* --- 3. Single Event View --- */

/* Container */
body.single-event .single-event-container {
    max-width: 1100px !important;
    margin: 40px auto !important;
    padding: 0 40px !important;
    display: block !important;
    float: none !important;
    clear: both !important;
}

/* Header branding */
body.single-event .event-header {
    border-bottom: 4px solid #003366 !important;
    margin-bottom: 30px !important;
    padding-bottom: 20px !important;
    clear: both;
}

body.single-event .event-header h1 {
    color: #003366 !important;
    font-size: 2.8rem !important;
    margin: 0 0 10px 0 !important;
    font-weight: 800 !important;
}

body.single-event .event-meta-date {
    font-size: 1.3rem;
    font-weight: 600;
    color: #555;
}

/* Location Box */
body.single-event .event-location-box {
    background: #f9f9f9 !important;
    border-left: 6px solid #003366 !important;
    padding: 25px !important;
    margin: 30px 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

body.single-event .event-location-box h3 {
    margin-top: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #003366;
}

body.single-event .google-maps-link {
    display: inline-block !important;
    background-color: #003366 !important;
    color: #ffffff !important;
    padding: 12px 24px !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
}

/* --- 4. Flyer/Minimalist List View --- */
.nv-minimalist-list-wrapper {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.nv-list-event-row {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
}

.nv-date-sidebar {
    flex: 0 0 65px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 10px 5px;
    text-align: center;
}

.nv-month {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: #003366;
}

.nv-day {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
}

.nv-event-title a {
    color: #003366;
    text-decoration: none;
    font-weight: 700;
}

/* --- 5. Interactive Month Grid --- */
.nv-calendar-month-wrapper {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.nv-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #003366;
    color: #fff;
    padding: 15px;
}

.nv-grid-header-row {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #cbd5e1;
}

.nv-grid-header {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #64748b;
}

.nv-grid-row {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.nv-calendar-day {
    flex: 1;
    min-height: 110px;
    padding: 10px;
    border-right: 1px solid #e2e8f0;
    position: relative;
}

.nv-event-link {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    padding: 4px 6px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.75rem;
    color: #003366;
    border-left: 3px solid #003366;
    margin-top: 4px;
}

/* --- 6. Tooltips & Flyer Previews --- */
.nv-flyer-preview {
    display: none;
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    background: #fff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 12px;
    border-radius: 6px;
    pointer-events: none;
}

.nv-event-link:hover .nv-flyer-preview {
    display: block;
}

/* --- 7. Sidebar Summary View --- */
.nv-summary-wrapper {
    background: #fff;
    border-top: 4px solid #003366;
    padding: 15px 0;
}

.nv-summary-heading {
    font-size: 1.2rem;
    font-weight: 800;
    color: #003366;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* --- 8. Responsive Breakpoints --- */
@media (max-width: 768px) {
    .event-header h1 {
        font-size: 2rem;
    }

    .single-event-container {
        padding: 0 20px;
    }

    .nv-calendar-day {
        min-height: 60px;
        padding: 5px;
    }

    .nv-event-text {
        display: none; /* Hide text on mobile grid, show dots only */
    }

    .nv-event-link {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        padding: 0;
        border: none;
        background: #003366;
    }
}

/* Flatpickr State Theme */
.flatpickr-calendar.nv-state-theme {
    border: 1px solid var(--nv-navy);
}
.nv-state-theme .flatpickr-day.selected {
    background: var(--nv-navy) !important;
}