/* ── EAA Events Plugin — Styles ───────────────────────────────────── */

/* ── Upcoming widget (homepage) ── */

.eaa-upcoming-events {
    width: 100%;
}

/* ── Event grid ── */

.eaa-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.eaa-events-grid--4col {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .eaa-events-grid--4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .eaa-events-grid,
    .eaa-events-grid--4col {
        grid-template-columns: 1fr;
    }
}

/* ── Event card ── */

.eaa-event-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.eaa-event-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.eaa-event-card-inner {
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* ── Cancelled state ── */

.eaa-cancelled-ribbon {
    background: #e53e3e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    padding: 6px 12px;
    width: 100%;
}

.eaa-event-card--cancelled {
    border-color: #feb2b2;
    background: #fff5f5;
}

.eaa-event-card--cancelled .eaa-event-date-badge { border-color: #feb2b2; }
.eaa-event-card--cancelled .eaa-event-month      { background: #e53e3e; }
.eaa-event-card--cancelled .eaa-event-day        { color: #718096; }
.eaa-event-card--cancelled .eaa-event-title      { text-decoration: line-through; color: #718096; }

.eaa-event-card--cancelled .eaa-event-time,
.eaa-event-card--cancelled .eaa-event-loc,
.eaa-event-card--cancelled .eaa-event-excerpt    { opacity: 0.6; }

/* ── Past state ── */

.eaa-event-card--past                            { opacity: 0.7; }
.eaa-event-card--past .eaa-event-month           { background: #718096; }
.eaa-event-card--past .eaa-event-day             { color: #4a5568; }
.eaa-event-card--past.eaa-event-card--cancelled  { opacity: 0.6; }

/* ── Date badge ── */

.eaa-event-date-badge {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    min-width: 56px;
    text-align: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.eaa-event-month {
    display: block;
    background: #1a6fc4;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    padding: 5px 8px;
    text-transform: uppercase;
}

.eaa-event-day {
    display: block;
    color: #1c2536;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 8px 7px;
}

/* ── Card body ── */

.eaa-event-body { flex: 1; }

.eaa-event-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.eaa-event-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: #e8f0fb;
    color: #1a6fc4;
    border-radius: 4px;
    padding: 2px 8px;
}

.eaa-event-title {
    font-size: 17px;
    font-weight: 700;
    color: #1c2536;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.eaa-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.eaa-event-time,
.eaa-event-loc {
    font-size: 13px;
    color: #4a5568;
}

.eaa-event-excerpt {
    font-size: 14px;
    color: #718096;
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.eaa-event-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.eaa-event-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #1a6fc4;
    text-decoration: none;
}

.eaa-event-link:hover { text-decoration: underline; }

.eaa-event-register-btn {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: #1a6fc4;
    border-radius: 4px;
    padding: 5px 14px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.15s ease;
}

.eaa-event-register-btn:hover {
    background: #155da0;
    color: #ffffff;
}

.eaa-event-reg-closed {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #718096;
    background: #edf2f7;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 4px 10px;
    letter-spacing: 0.3px;
}

/* ── No events placeholder ── */

.eaa-no-events {
    text-align: center;
    color: #718096;
    font-size: 16px;
    padding: 40px 0;
}

/* ── Year + category filter bar ── */

.eaa-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.eaa-year-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #4a5568;
    white-space: nowrap;
}

.eaa-year-select {
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%228%22 viewBox=%220 0 12 8%22%3E%3Cpath d=%22M1 1l5 5 5-5%22 stroke=%22%231a6fc4%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 36px 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1c2536;
    cursor: pointer;
    transition: border-color 0.15s ease;
    min-width: 110px;
}

.eaa-year-select:hover,
.eaa-year-select:focus {
    border-color: #1a6fc4;
    outline: none;
}

/* ── Category pills ── */

.eaa-cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.eaa-cat-btn {
    appearance: none;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.4;
}

.eaa-cat-btn:hover {
    border-color: #1a6fc4;
    color: #1a6fc4;
}

.eaa-cat-btn--active {
    background: #1a6fc4;
    border-color: #1a6fc4;
    color: #ffffff;
}

.eaa-cat-btn--active:hover {
    background: #155da0;
    border-color: #155da0;
    color: #ffffff;
}

/* ── Category combobox (mobile only) ── */

.eaa-cat-select {
    display: none;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%228%22 viewBox=%220 0 12 8%22%3E%3Cpath d=%22M1 1l5 5 5-5%22 stroke=%22%231a6fc4%22 stroke-width=%222%22 fill=%22none%22 stroke-linecap=%22round%22/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 36px 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1c2536;
    cursor: pointer;
    transition: border-color 0.15s ease;
    width: 100%;
    font-family: inherit;
}

.eaa-cat-select:focus {
    border-color: #1a6fc4;
    outline: none;
}

@media (max-width: 1200px) {
    .eaa-upcoming-events .eaa-events-grid .eaa-event-card:nth-child(4) { display: none; }
}

@media (max-width: 600px) {
    .eaa-cat-filter { display: none; }
    .eaa-cat-select { display: block; }
    .eaa-upcoming-events .eaa-event-excerpt { display: none; }
}

/* ── Section wrappers ── */

.eaa-all-events { width: 100%; }

.eaa-events-section { position: relative; }

.eaa-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.eaa-events-section + .eaa-events-section {
    margin-top: 56px;
}

.eaa-section-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.eaa-section-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0;
}

.eaa-section-header--upcoming .eaa-section-title { color: #1a6fc4; }
.eaa-section-header--past .eaa-section-title     { color: #718096; }

/* ── Pagination ── */

.eaa-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.eaa-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    text-decoration: none;
    background: #fff;
    transition: all 0.15s ease;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
}

.eaa-page-btn:hover {
    background: #f4f6f9;
    border-color: #1a6fc4;
    color: #1a6fc4;
}

.eaa-page-btn.eaa-page-active {
    background: #1a6fc4;
    border-color: #1a6fc4;
    color: #fff;
}

.eaa-page-btn:disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* ── Loading overlay ── */

.eaa-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
    min-height: 120px;
}

.eaa-loading[hidden] { display: none; }

.eaa-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: #1a6fc4;
    border-radius: 50%;
    animation: eaa-spin 0.7s linear infinite;
}

@keyframes eaa-spin {
    to { transform: rotate(360deg); }
}

/* ── Footer airventure list ── */

.eaa-footer-airventure {
    display: flex;
    flex-direction: column;
}

.eaa-footer-av-link {
    color: #9aabb8;
    text-decoration: none;
    font-size: 13px;
    line-height: 2.1;
}

.eaa-footer-av-link:hover { color: #ffffff; }

.eaa-footer-av-year {
    font-weight: 700;
    color: #c8d6e0;
}
