/*
============================================================
CHANNEL 3 EVENTS CALENDAR
============================================================
*/

/* ==========================================================
   MAIN WRAPPER
   ========================================================== */

.c3-calendar-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: #ffffff;
    font-family: inherit;
}


/* ==========================================================
   CALENDAR HEADER
   ========================================================== */

.c3-calendar-header {
    margin: 0 0 35px;
    text-align: center;
}

.c3-calendar-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.c3-calendar-subtitle {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* ==========================================================
   CALENDAR CONTAINER
   ========================================================== */

.c3-calendar {
    --fc-page-bg-color: #000000;
    --fc-neutral-bg-color: #000000;
    --fc-neutral-text-color: rgba(255, 255, 255, 0.65);
    --fc-border-color: rgba(255, 255, 255, 0.10);
    --fc-today-bg-color: rgba(237, 38, 72, 0.055);

    position: relative;

    width: 100%;
    padding: 25px;
    box-sizing: border-box;

    background: #000000;

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 4px;

    /*
    ========================================================
    TV BACKLIGHT EFFECT
    ========================================================

    Tight white halo directly around the edge,
    surrounded by a stronger deep-blue glow.
    The calendar surface itself stays pure black.
    */

    box-shadow:
        /* Crisp white edge */
        0 0 4px rgba(255, 255, 255, 0.55),

        /* Short white diffusion */
        0 0 14px rgba(255, 255, 255, 0.25),

        /* Blue backlight */
        0 0 28px rgba(25, 85, 220, 0.38),

        /* Wider blue atmospheric glow */
        0 0 55px rgba(20, 65, 190, 0.28),

        /* Very wide ambient spill */
        0 0 90px rgba(15, 50, 160, 0.16),

        /* Normal depth shadow */
        0 15px 40px rgba(0, 0, 0, 0.70);
}


/* ==========================================================
   REMOVE THEME / ELEMENTOR TABLE STYLING
   ========================================================== */

.c3-calendar table,
.c3-calendar thead,
.c3-calendar tbody,
.c3-calendar tr,
.c3-calendar th,
.c3-calendar td {
    background-color: transparent !important;
}

.c3-calendar table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}


/* ==========================================================
   TOOLBAR
   ========================================================== */

.c3-calendar .fc-header-toolbar {
    position: relative !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    min-height: 40px;

    margin-bottom: 25px;
}


/* ==========================================================
   CENTER MONTH / YEAR
   ========================================================== */

.c3-calendar .fc-toolbar-title {
    position: absolute !important;

    top: 50%;
    left: 50%;

    width: max-content !important;
    margin: 0 !important;

    transform: translate(-50%, -50%) !important;

    color: #ffffff !important;

    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.1;

    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;

    white-space: nowrap;
}


/* ==========================================================
   TOOLBAR CHUNKS
   ========================================================== */

.c3-calendar .fc-toolbar-chunk {
    display: flex;
    align-items: center;
}

.c3-calendar .fc-toolbar-chunk:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
}

.c3-calendar .fc-toolbar-chunk:last-child {
    margin-left: auto;
}


/* ==========================================================
   NAVIGATION BUTTONS
   ========================================================== */

.c3-calendar .fc-button {
    padding: 9px 15px !important;

    border: 1px solid #ed2648 !important;
    border-radius: 3px !important;

    background: transparent !important;
    color: #ffffff !important;

    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    letter-spacing: 1px;
    text-transform: uppercase;

    box-shadow: none !important;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.c3-calendar .fc-button:hover {
    background: #ed2648 !important;
    color: #ffffff !important;

    box-shadow:
        0 0 10px rgba(237, 38, 72, 0.35) !important;
}

.c3-calendar .fc-button:active,
.c3-calendar .fc-button-active {
    background: #ed2648 !important;
    border-color: #ed2648 !important;
    color: #ffffff !important;
}

.c3-calendar .fc-button:focus {
    box-shadow: none !important;
}


/* ==========================================================
   CALENDAR GRID
   ========================================================== */

.c3-calendar .fc-scrollgrid {
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 3px;

    background: #000000 !important;
}

.c3-calendar .fc-scrollgrid td,
.c3-calendar .fc-scrollgrid th {
    border-color: rgba(255, 255, 255, 0.10) !important;
}


/* ==========================================================
   DAY-OF-WEEK HEADER
   ========================================================== */

.c3-calendar .fc-scrollgrid-section-header,
.c3-calendar .fc-scrollgrid-section-header > td,
.c3-calendar .fc-scrollgrid-section-header > th,
.c3-calendar .fc-col-header,
.c3-calendar .fc-col-header thead,
.c3-calendar .fc-col-header tbody,
.c3-calendar .fc-col-header tr,
.c3-calendar .fc-col-header th {
    background: #000000 !important;
    background-color: #000000 !important;
}

.c3-calendar .fc-col-header-cell {
    height: auto !important;
    min-height: 0 !important;

    padding: 13px 5px !important;

    background: #000000 !important;

    border-color: rgba(255, 255, 255, 0.10) !important;
}

.c3-calendar .fc-col-header-cell-cushion {
    color: rgba(255, 255, 255, 0.65) !important;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;
    text-decoration: none;

    text-transform: uppercase;
}


/* ==========================================================
   DAY CELLS
   ========================================================== */

.c3-calendar .fc-daygrid-day {
    min-height: 115px;

    background: #000000 !important;

    transition: background 0.15s ease;
}

.c3-calendar .fc-daygrid-day:hover {
    background: rgba(255, 255, 255, 0.025) !important;
}

.c3-calendar .fc-daygrid-day-frame,
.c3-calendar .fc-daygrid-day-top {
    background: transparent !important;
}


/* ==========================================================
   DATE NUMBERS
   ========================================================== */

.c3-calendar .fc-daygrid-day-number {
    padding: 9px 10px;

    color: rgba(255, 255, 255, 0.60) !important;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;
}


/* ==========================================================
   TODAY
   ========================================================== */

.c3-calendar .fc-day-today {
    background: rgba(237, 38, 72, 0.055) !important;
}

.c3-calendar .fc-day-today .fc-daygrid-day-number {
    color: #ed2648 !important;
    font-weight: 800;
}


/* ==========================================================
   EVENTS
   ========================================================== */

.c3-calendar .fc-event {
    margin: 4px 5px !important;
    padding: 6px 8px !important;

    border: 1px solid #ed2648 !important;
    border-radius: 3px !important;

    background: rgba(237, 38, 72, 0.12) !important;
    color: #ffffff !important;

    cursor: pointer;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;

    transition:
        background 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.c3-calendar .fc-event:hover {
    background: #ed2648 !important;

    box-shadow:
        0 0 10px rgba(237, 38, 72, 0.35);

    transform: translateY(-1px);
}

.c3-calendar .fc-event-main,
.c3-calendar .fc-event-title {
    color: #ffffff !important;
    font-weight: 700;
}


/* ==========================================================
   REMOVE FULLCALENDAR EVENT DOT
   ========================================================== */

.c3-calendar .fc-daygrid-event-dot {
    display: none !important;
}

.c3-calendar .fc-daygrid-event {
    border-left: 0 !important;
}


/* ==========================================================
   MORE EVENTS
   ========================================================== */

.c3-calendar .fc-daygrid-more-link {
    padding: 3px 7px;

    color: #ed2648 !important;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
}

.c3-calendar .fc-daygrid-more-link:hover {
    color: #ffffff !important;
}


/* ==========================================================
   EVENT POPUP
   ========================================================== */

.c3-event-modal {
    position: fixed;
    inset: 0;

    z-index: 999999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.c3-event-modal.is-open {
    display: flex;
}


/* ---------- Overlay ---------- */

.c3-event-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.85);

    backdrop-filter: blur(5px);
}


/* ---------- Popup ---------- */

.c3-event-modal-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 560px;
    max-height: 90vh;

    overflow-y: auto;

    padding: 40px;

    box-sizing: border-box;

    background: #000000;

    border: 1px solid #ed2648;
    border-radius: 4px;

    box-shadow:
        0 0 15px rgba(237, 38, 72, 0.25),
        0 20px 70px rgba(0, 0, 0, 0.8);
}


/* ---------- Close Button ---------- */

.c3-event-close {
    position: absolute;

    top: 10px;
    right: 15px;

    width: 35px;
    height: 35px;

    padding: 0;

    border: 0;

    background: transparent;

    color: rgba(255, 255, 255, 0.65);

    font-size: 30px;
    line-height: 35px;

    cursor: pointer;
}

.c3-event-close:hover {
    color: #ed2648;
}


/* ---------- Event Title ---------- */

.c3-event-title {
    padding-right: 35px;

    color: #ffffff;

    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
}


/* ---------- Event Date ---------- */

.c3-event-date {
    margin-top: 15px;

    color: #ed2648;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.3px;
}


/* ---------- Location ---------- */

.c3-event-location {
    margin-top: 10px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 13px;
}


/* ---------- Description ---------- */

.c3-event-description {
    margin-top: 22px;

    color: rgba(255, 255, 255, 0.80);

    font-size: 14px;
    line-height: 1.65;
}


/* ---------- Event Link ---------- */

.c3-event-link {
    display: inline-block;

    margin-top: 25px;
    padding: 11px 20px;

    border: 1px solid #ed2648;
    border-radius: 3px;

    background: #ed2648;

    color: #ffffff;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;
    text-transform: uppercase;

    text-decoration: none;

    transition:
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.c3-event-link:hover {
    background: transparent;
    color: #ffffff;

    box-shadow:
        0 0 10px rgba(237, 38, 72, 0.3);
}


/* ==========================================================
   ERROR
   ========================================================== */

.c3-calendar-error {
    margin-bottom: 15px;
    padding: 15px;

    border: 1px solid #ed2648;

    color: #ffffff;

    text-align: center;

    font-size: 13px;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 700px) {

    .c3-calendar-header {
        margin-bottom: 20px;
    }

    .c3-calendar-title {
        font-size: 30px;
    }

    .c3-calendar-subtitle {
        font-size: 9px;
        letter-spacing: 1.5px;
    }


    /* Calendar */

    .c3-calendar {
        padding: 10px;
        border-radius: 3px;

        box-shadow:
            0 0 4px rgba(255, 255, 255, 0.50),
            0 0 12px rgba(255, 255, 255, 0.22),
            0 0 25px rgba(25, 85, 220, 0.38),
            0 0 50px rgba(20, 65, 190, 0.24),
            0 0 75px rgba(15, 50, 160, 0.12),
            0 12px 30px rgba(0, 0, 0, 0.70);
    }


    /* Toolbar */

    .c3-calendar .fc-header-toolbar {
        min-height: 75px;
        margin-bottom: 15px;
    }


    /* Centered month */

    .c3-calendar .fc-toolbar-title {
        top: 0;
        left: 50%;

        width: 100% !important;

        transform: translateX(-50%) !important;

        font-size: 19px !important;

        text-align: center;
    }


    /* Mobile navigation */

    .c3-calendar .fc-toolbar-chunk:first-child {
        position: absolute;

        left: 0;
        bottom: 0;

        gap: 6px;
    }


    /* Buttons */

    .c3-calendar .fc-button {
        padding: 7px 10px !important;
        font-size: 9px !important;
    }


    /* Day headers */

    .c3-calendar .fc-col-header-cell {
        padding: 9px 2px !important;
    }

    .c3-calendar .fc-col-header-cell-cushion {
        font-size: 8px;
        letter-spacing: 0.5px;
    }


    /* Days */

    .c3-calendar .fc-daygrid-day {
        min-height: 70px;
    }

    .c3-calendar .fc-daygrid-day-number {
        padding: 5px;
        font-size: 10px;
    }


    /* Events */

    .c3-calendar .fc-event {
        margin: 2px !important;
        padding: 4px 5px !important;

        font-size: 9px;
    }


    /* Popup */

    .c3-event-modal-content {
        padding: 30px 22px;
    }

    .c3-event-title {
        font-size: 23px;
    }
}


/* ==========================================================
   PREVENT BACKGROUND SCROLL WHEN POPUP IS OPEN
   ========================================================== */

body.c3-modal-open {
    overflow: hidden;
}