/**
 * GBH Events - Frontend CSS
 * @version 1.3.0
 */

:root {
    --gbh-color-primary:   #250E05;
    --gbh-color-secondary: #532611;
    --gbh-color-text:      #210D04;
    --gbh-color-accent:    #C36407;
    --gbh-color-white:     #FFFFFF;
    --gbh-color-offwhite:  #FFFAF8;
}

/* ── Schedule button ───────────────────────────────────────────── */

.gbh-schedule-btn {
    background-color: var(--e-global-color-primary, var(--gbh-color-primary)) !important;
    font-family: var(--e-global-typography-text-font-family, "Hanken Grotesk"), sans-serif !important;
    font-size: var(--e-global-typography-text-font-size, 18px) !important;
    font-weight: var(--e-global-typography-text-font-weight, 400) !important;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.5) !important;
    border-style: solid !important;
    border-width: 3px !important;
    border-color: #fff !important;
    padding: 15px 30px !important;
    color: var(--gbh-color-offwhite) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    text-decoration: none !important;
    text-align: center;
    line-height: 1;
    display: inline-block;
}

.gbh-schedule-btn:hover {
    background-color: var(--e-global-color-secondary, var(--gbh-color-secondary)) !important;
    transform: scale(1.1);
    color: var(--gbh-color-offwhite) !important;
    text-decoration: none !important;
}

/* ── Admin link button ─────────────────────────────────────────── */

.gbh-admin-link {
    display: inline-block;
    background-color: var(--gbh-color-primary);
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 400;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.5);
    border: 4px solid var(--gbh-color-accent);
    padding: 20px 30px;
    color: var(--gbh-color-offwhite);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    text-align: center;
    line-height: 1;
}

.gbh-admin-link:hover {
    background-color: var(--gbh-color-secondary);
    color: var(--gbh-color-offwhite);
    text-decoration: none;
}

/* ── Events list (for popup/embed) ─────────────────────────────── */

.gbh-events-list {
    font-family: "Hanken Grotesk", sans-serif;
    color: #FFFAF8 !important;
}

.gbh-events-list__header {
    font-family: "Germania One", sans-serif;
    font-size: 31px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.6em;
    color: #FFFAF8 !important;
    margin: 0 0 4px;
}

.gbh-events-list__subtitle {
    font-size: 18px;
    color: #FFFAF8 !important;
    margin: 0 0 16px;
    opacity: 0.8;
}

.gbh-events-list__divider {
    height: 2px;
    background: var(--gbh-color-accent);
    border: none;
    margin: 0 0 24px;
}

/* Navigation */
.gbh-events-list__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.gbh-events-list__nav-btn {
    background-color: var(--e-global-color-accent, #C36407) !important;
    font-family: var(--e-global-typography-text-font-family, "Hanken Grotesk"), sans-serif !important;
    font-size: 14px !important;
    font-weight: var(--e-global-typography-text-font-weight, 400) !important;
    color: var(--e-global-color-8afcb1a, #FFFAF8) !important;
    border: none !important;
    border-radius: 100px !important;
    padding: 6px 15px !important;
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-decoration: none !important;
}

.gbh-events-list__nav-btn:hover {
    opacity: 0.8;
}

.gbh-events-list__nav-month {
    font-family: "Germania One", sans-serif;
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
    color: #FFFAF8 !important;
}

/* Event rows */
.gbh-events-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gbh-events-list__event {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0 14px 16px;
    border-left: 3px solid var(--gbh-color-accent);
    margin-bottom: 4px;
}

.gbh-events-list__date {
    font-size: 16px;
    color: #FFFAF8 !important;
    min-width: 100px;
    flex-shrink: 0;
}

.gbh-events-list__icon {
    font-size: 24px;
    flex-shrink: 0;
}

.gbh-events-list__title {
    font-size: 18px;
    color: #FFFAF8 !important;
}

.gbh-events-list__empty {
    text-align: center;
    color: #FFFAF8 !important;
    opacity: 0.5;
    font-size: 18px;
    padding: 40px 0;
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .gbh-events-list__event {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .gbh-events-list__date {
        min-width: auto;
    }

    .gbh-events-list__header {
        font-size: 24px;
    }
}
