﻿/* ======= CALENDAR + EVENT LIST GRID ======= */
.ccCalendarCombo {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-evenly;
    height: 20%;
    width: 80%;
    background: #fff;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}


/* ======= CALENDAR STYLES ======= */
.ccCalendar {
    /* background: #f7f7f7; */
    border-radius: 5px;
    padding: 0em 1.5em 1.5em 1.5em;
    overflow-x: hidden;
    margin: 1em;
    flex: 0 0 35%;
    border-radius: 1.25rem; /*added per judge feedback*/
}

.stdLayout .ccCalendarCombo { /*standard page style*/
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.15);
    width: 100%;
    border-radius: 1rem;
    margin: 1rem 0;
}

.ccCalendar *, .ccCalendar *::before, .ccCalendar *::after {
    box-sizing: border-box;
}

/* --- Title Bar --- */
.ccCalendar .calTitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.4em;
    padding: 0.5em 0.75em;
    /* border-bottom: 1px solid #ccc; */
}

    .ccCalendar .calTitle .curMonth {
        flex-grow: 1;
        text-align: center;
        font-size: 1.5rem;
        font-weight: bold;
    }

    .ccCalendar .calTitle .nav {
        user-select: none;
        font-size: 1.5rem;
        padding: 0.25em 0.5em;
        color: #333;
    }

    .ccCalendar .calTitle .navFull {
        display: inline;
        color: #333;
    }
    /*added per judge feedback*/
    .ccCalendar .calTitle button {
        border: none;
        background: unset;
        color: #333;
    }

    .ccCalendar .calTitle .navSmall {
        display: none;
    }

/* --- Calendar Grid --- */
.ccCalendar .cc-calendar-root {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    /* padding: 0 0.5rem; */
    font-size: clamp(0.8rem, 2vw, 1rem);
}

/* --- Weekday Headers --- */
.ccCalendar .columnHeader {
    font-weight: bold;
    text-align: center;
    padding: 0.5rem;
    min-height: 3rem;
    /* background: #f9f9f9; */
    border-radius: 4px;
}
/* --- Day Cells --- */
.ccCalendar .dayCell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    background: #eeeeee;
    border-radius: 5px;
    height: 3.25rem;
    padding: .5rem 0 0 0;
    overflow: hidden;
    transition: background 0.2s, color 0.2s;
    position: relative;
}

    .ccCalendar .dayCell.has-events {
        cursor: pointer;
    }

    .ccCalendar .dayCell:hover {
        background-color: #e7d4d4;
        /* color: #fff; */
    }

    .ccCalendar .dayCell.today {
        background-color: #d7dee2;
        /* color: #fff; */
        font-weight: bold;
    }

    .ccCalendar .dayCell > .date {
        display: block;
        line-height: 1;
        padding-top: .5rem;
        flex: 1 1 100%;
        font-size: 1.15rem;
    }

/* --- Event Dots --- */
.ccCalendar .eventDot {
    height: 7px;
    width: 100%;
    background-color: #567e9a;
    /* border-radius: 50%; */
    display: inline-block;
    align-self: center;
    justify-self: flex-end;
    /* position: absolute; */
    bottom: 11px;
}

.ccCalendar .dayCell.today .eventDot {
    /* background-color: #5f8593; */
    /* border: 1px solid var(--cc-darkBlue); */
}

/* --- Tooltip --- */
.ccCalendar .dayCell .event-tooltip {
    visibility: hidden;
    opacity: 0;
    background: #333;
    color: #fff;
    border-radius: 5px;
    padding: 0.3em 0.6em;
    position: absolute;
    z-index: 10;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.2s;
    white-space: nowrap;
    font-size: 0.8em;
}

.ccCalendar .dayCell.has-events:hover .event-tooltip {
    visibility: visible;
    opacity: 1;
}

/* ======= EVENT LIST STYLES ======= */
.cc-event-list {
    display: flex;
    flex-direction: column;
    container-name: eventList;
    flex: 1;
    margin: 1em;
}

.eventlist-item {
    display: flex;
    flex-direction: row;
    margin: 0 0 2rem 0;
    border-radius: 2px;
    /* box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.25); */
    overflow: hidden;
    /* border-radius: 1.25rem; */ /*added per judge feedback*/
}

    .eventlist-item.feature {
        justify-content: flex-start;
        min-height: 8em;
        color: #333;
        /* border-radius: 1rem; */
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #ddd;
    }

.eventlist-item-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    width: 5rem;
    /* color: #fff; */
    border-right: 1px solid var(--cc-blueAccent01);
    padding: 0 1rem 0 0;
    font-size: 1.5rem;
}

    .eventlist-item-date span:first-child {
        font-size: 1.75rem;
        line-height: 1;
    }

.eventlist-item-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* background: var(--cc-lightGrey); */
    padding: .5rem 1rem;
    flex: 1 1 auto;
}

.eventlist-item-image {
    width: 15%;
    background-size: cover;
    background-position: center;
    border-radius: 1.5rem;
    margin-right: 1rem;
}

.eventlist-item-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    flex: 1 1 auto;
}

.eventlist-item-about {
    padding: 0.5em;
    max-height: 180px;
    overflow: hidden;
}

.eventlist-item-title {
    color: #333;
    font-weight: bold;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.eventlist-item-details {
    padding: 5px 5px 2px 0;
    border-top: 1px solid #003b8d;
    /* background: var(--cc-lightGrey); */
}

.eventlist-location {
    padding: 0 5px;
    font-size: 15px;
}

.eventlist-item-detail-date {
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.event-title h3 {
    color: #333;
}
/* make the whole card-link look like a card, not a blue underlined link */
a.eventlist-item,
a.eventlist-item:visited {
    color: inherit;
    text-decoration: none;
    transition: all .2s ease;
}

    a.eventlist-item:focus-visible {
        outline: 3px solid var(--cc-yellowAccent);
        outline-offset: 3px;
    }

    a.eventlist-item:hover {
        filter: brightness(0.98);
        background: #c3d1db45;
        border-radius: .5rem;
    }
/*--------Home Style--------*/
.homepageCal {
    display: flex;
    justify-content: center;
    padding: 1rem 0 5rem 0;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(rgba(255,255,255,1), rgba(255,255,255,0.75)), url(../images/DSC00026.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    .homepageCal > h2 {
        font-size: 2em;
        font-weight: bold;
        position: relative;
        display: inline-block;
        width: 25%;
        color: #3a557a !important;
        letter-spacing: 1px;
        border-bottom: 2px solid var(--cc-yellowAccent);
        padding: 0.25em !important;
        text-align: center;
        margin-bottom: 3rem;
    }

    .homepageCal .eventlist-item-body {
        margin-right: 15%;
    }

/*Cal Modal Style*/
.calModelList ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

    .calModelList ul .modal-list-item {
        position: relative;
        padding: 0.75rem 1rem;
        border-radius: .25rem;
        margin: .25rem;
        background: #efefef;
        cursor: pointer;
        transition: all 0.25s ease;
        color: #333;
    }

        .calModelList ul .modal-list-item:hover {
            background: #d7dee2;
            font-weight: bold;
            margin-left: 1rem;
        }


        .calModelList ul .modal-list-item:focus {
            outline: 2px solid #b8860b;
            outline-offset: 2px;
        }

/*
    /////
    RESPONSIVE
    /////
*/

/* Extra large desktops */
@media (max-width: 1400px) {
}
/* Tablets 12.9 ipadpro*/
@media (max-width: 1366px) {
    .ccCalendarCombo {
        width: 90%;
    }

    .ccCalendar {
        flex: 0 0 40%;
    }

    .eventlist-item-body {
        margin-right: 10%;
    }
}
@media (max-width: 1080px) {
    .homepageCal > h2 {
        width: 80%;
    }
}
    /* Large desktops */
    @media (max-width: 1200px) {
    }

    /* Small desktops / large tablets */
    @media (max-width: 992px) {
        .ccCalendar .columnHeader,
        .ccCalendar .dayCell {
            min-height: 4rem;
        }
    }

    /* Tablets */
    @media (max-width: 768px) {
        .homepageCal > h2 {
            width: 80%;
        }

        .ccCalendarCombo {
            flex-direction: column;
            padding: .25rem;
        }

        .ccCalendar {
            margin: 2rem;
            padding: .5rem 1rem;
            flex: 0 0 auto;
            width: -webkit-fill-available;
            width: stretch;
        }

            .ccCalendar .columnHeader, .ccCalendar .dayCell {
                height: 2.9rem;
            }

            .ccCalendar .calTitle .navFull {
                display: none;
            }

            .ccCalendar .calTitle .navSmall {
                display: inline;
            }

        .cc-event-list {
            width: stretch;
            width: -webkit-fill-available;
        }
    }

    /* Large phones */
    @media (max-width: 576px) {
        .ccCalendar {
            margin: 0 0 1rem 0;
            padding: .5rem;
        }

        .eventlist-item.feature {
            flex-direction: column;
        }

        .eventlist-item-image {
            display: none;
        }

        .event-title h3 {
            color: #333;
            font-size: 1.2rem;
            margin-top: 0;
        }

        .eventlist-item-date {
            padding: 0 1rem 0 0;
            font-size: 1.25rem;
        }

        .eventlist-item-text {
            width: 100%;
            border-left: 1rem solid var(--cc-blueAccent01);
            padding: 0 .25rem;
        }

        .eventlist-item {
            margin: 0 0 1rem 0;
        }

        .ccCalendar .cc-calendar-root {
            gap: .5rem;
        }

        .ccCalendar .columnHeader, .ccCalendar .dayCell {
            min-height: 3.5rem;
        }

        .homepageCal .eventlist-item-body {
            margin-right: 0;
        }
    }

    /* Small phones */
    @media (max-width: 480px) {
    }

    /* Very small devices */
    @media (max-width: 360px) {
    }
