/* Events Grid Block - Frontend Styles */

/***********************************************************************************
    GLOBAL STYLES FOR ALL VIEWS (Cards + List)
***********************************************************************************/

.sr-only
{
    position: absolute;
    left: -9999px;
}

.ozx-events-grid__main-link
{
    font-weight: 700;
}

.ozx-events-grid__meta-link
{
    font-weight: 700;
}

.ozx-event-types,
.ozx-event-location,
.ozx-event-title
{
    color: var(--ozarks-blue);
}

.ozx-event-types a,
.ozx-event-location a,
.ozx-event-title a
{
    color: var(--ozarks-blue);
    text-decoration: underline;
}

.ozx-event-time,
.ozx-event-short-description
{
    color: black;
}

.ozx-events-grid__card-meta,
.ozx-events-grid__list-meta
{
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 0.35rem;
}

.ozx-event-meta-item
{
    display: flex;
    align-items: center;
    gap: 0;
    color: var(--ozarks-blue);
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.ozx-event-meta-item i
{
    font-size: 1.05rem;
    margin-right: 0.5rem;
}

/***********************************************************************************
    GENERAL / CONTAINER
***********************************************************************************/

.ozx-events-grid 
{
    margin: 1rem 0;
}

.ozx-events-grid__block-title
{
    margin: 0 0 1.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ozarks-blue);
}

.ozx-icon 
{
    display: inline-block;
    font-style: normal;
    font-size: 1.1em;
}

/***********************************************************************************
    CARDS VIEW (Cards, Internal)
***********************************************************************************/

.ozx-events-grid__items 
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ozx-events-grid--featured-list .ozx-events-grid__items 
{
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 0;
}

.ozx-events-grid__featured-column
{
    display: flex;
    flex-direction: column;
}

.ozx-events-grid__list-column
{
    display: flex;
    flex-direction: column;
}

.ozx-events-grid__items .ozx-events-grid__card h2.ozx-events-grid__card-title,
.ozx-events-grid__items .ozx-events-grid__card h3.ozx-events-grid__card-title,
.ozx-events-grid__items .ozx-events-grid__card h4.ozx-events-grid__card-title
{
    padding-top: 0;
}

.ozx-events-grid__card 
{
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.ozx-events-grid__card:hover 
{
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: transparent;
    transform: translateY(-4px);
}

.ozx-events-grid__card:focus-within
{
    outline: 2px solid var(--ozarks-blue);
    outline-offset: 2px;
}

.ozx-events-grid__card-image 
{
    width: 100%;
    min-height: 240px;
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
}

.ozx-events-grid .ozx-events-grid__items .ozx-events-grid__card .ozx-events-grid__card-image img 
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.ozx-events-grid__date-badge 
{
    position: absolute;
    top: 0;
    left: 0;
    background: var(--honors-yellow);
    color: #000;
    font-weight: 700;
    font-size: 1.5rem;
    width: auto;
    max-width: 150px;
    text-align: center;
    padding: 0.4rem 1.25rem;
    border-radius: 14px 16px 16px 0; /* matches image corner */
}

.ozx-events-grid__card-content 
{
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

.ozx-events-grid__card-title,
.ozx-events-grid__card-title a 
{
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.ozx-events-grid__card-time 
{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.ozx-events-grid__card-description 
{
    margin: 0.3rem 0 0.85rem;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

/***********************************************************************************
    FEATURED VIEW (Featured + List, Homepage)
***********************************************************************************/

.ozx-events-grid--homepage .ozx-events-grid__featured,
.ozx-events-grid--featured-list .ozx-events-grid__featured 
{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ozx-events-grid--featured-list
{
    display: grid;
    grid-template-columns: 1fr;
}

.ozx-events-grid__featured-event
{
    border: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: initial;
    cursor: initial;
    height: initial;
    display: block;
}

.ozx-events-grid__featured-event-image
{
    width: 100%;
    min-height: 240px;
    overflow: hidden;
    background-color: #f5f5f5;
    position: relative;
}

.ozx-events-grid__featured-event-image img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.ozx-events-grid__featured-event-content
{
    padding: 0;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 0;
}

.ozx-events-grid__featured-event-title,
.ozx-events-grid__featured-event-title a
{
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.ozx-events-grid__featured-event-time
{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.ozx-events-grid__featured-event-description
{
    margin: 0.3rem 0 0.85rem;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 0;
}

.ozx-events-grid__featured-event:hover 
{
    box-shadow: initial;
    border-color: initial;
    transform: initial;
}

.ozx-events-grid.ozx-events-grid--featured-list .ozx-events-grid__items
{
    gap: 3rem;
}

/***********************************************************************************
    LIST VIEW (List, Day-Grouped)
***********************************************************************************/

.ozx-events-grid--list .ozx-events-grid__list
{
    display: grid;
    gap: 0;
}

.ozx-events-grid--featured-list .ozx-events-grid__list
{
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ozx-events-grid__list-group
{
    padding: 1.25rem 0 0 0;
}

.ozx-events-grid__list-group:first-child
{
    padding-top: 0;
}
.ozx-events-grid__list > .ozx-events-grid__list-group:first-child > h3
{
    padding-top: 0;
}

.ozx-events-grid__list-group-title
{
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ozarks-blue);
    border-bottom: 2px solid var(--honors-yellow);
    padding-bottom: 0.35rem;
}

.ozx-events-grid__list-item
{
    border: none;
    border-radius: 0;
    padding: 0.8rem 0;
    padding-bottom: 0;
    background-color: transparent;
    transition: background-color 0.3s ease;
    margin: 0;
}

.ozx-events-grid__list-item + .ozx-events-grid__list-item
{
    border-top: 1px solid var(--honors-yellow);
    padding-top: 2rem;
    padding-bottom: 0.8rem;
    margin-top: 0.75rem;
}

.ozx-events-grid__list-item:hover
{
    background-color: transparent;
}

.ozx-events-grid__list .ozx-events-grid__list-group .ozx-events-grid__list-item .ozx-events-grid__list-title
{
    margin: 0 0 0.3rem;
    padding-top: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.ozx-events-grid__list-title,
.ozx-events-grid__list-title a
{
    font-weight: 700;
}

.ozx-events-grid__list-time
{
    margin: 0.35rem 0 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
}

/***********************************************************************************
    SHARED COMPONENTS
***********************************************************************************/

.ozx-events-grid__no-results 
{
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.ozx-events-grid__pagination 
{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.ozx-pagination__link 
{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.ozx-pagination__link:hover,
.ozx-pagination__link:focus 
{
    background-color: #e0e0e0;
}

.ozx-pagination__prev::before,
.ozx-pagination__next::after 
{
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
}

.ozx-pagination__prev::before 
{
    border-width: 4px 6px 4px 0;
    border-color: transparent #333 transparent transparent;
}

.ozx-pagination__next::after 
{
    border-width: 4px 0 4px 6px;
    border-color: transparent transparent transparent #333;
}

.ozx-pagination__info 
{
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.ozx-pagination__link:hover 
{
    background-color: #002559;
}

/***********************************************************************************
    EDITOR PLACEHOLDER
***********************************************************************************/

.ozx-events-grid-placeholder 
{
    padding: 2rem;
    border: 2px dashed #0066cc;
    border-radius: 4px;
    background-color: #f0f7ff;
    text-align: center;
    color: #0066cc;
}

.ozx-events-grid-placeholder p 
{
    margin: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.ozx-events-grid-placeholder small 
{
    display: block;
    font-size: 0.85rem;
    color: #0066cc;
    opacity: 0.8;
    margin-top: 1rem;
}

/***********************************************************************************
    RESPONSIVE
***********************************************************************************/

@media (max-width: 1024px)
{
    .ozx-events-grid--featured-list .ozx-events-grid__items
    {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Cards view on mobile */
@media (max-width: 768px) 
{
    .ozx-events-grid__items 
    {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Pagination on mobile */
@media (max-width: 768px) 
{
    .ozx-events-grid__pagination 
    {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .ozx-pagination__link 
    {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}