﻿/* ================================================
   Events Archive Page Styles (archive-tribe_events.php)
   Relies on sounds-of-summer.css for card/drawer base styles
   ================================================ */

/* ── Hero Banner ─────────────────────────────── */
.ae-hero-banner {
    background: linear-gradient(135deg, #c0392b 0%, #922b21 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.ae-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.ae-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}
.ae-hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}
.ae-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.ae-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* ── Archive Main ────────────────────────────── */
.ae-archive-main {
    background: #f6f6f6;
    min-height: 60vh;
    padding: 0 0 80px;
}
.ae-archive-container {
    padding-top: 40px;
}

/* ── Controls Bar (Search + Months) ─────────── */
.ae-controls-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

/* Search */
.ae-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 560px;
}
.ae-search-icon {
    position: absolute;
    left: 16px;
    color: #999;
    pointer-events: none;
    flex-shrink: 0;
}
.ae-search-input {
    width: 100%;
    padding: 14px 48px 14px 48px;
    border: 2px solid #e8e8e8;
    border-radius: 50px;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ae-search-input:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 4px rgba(192,57,43,0.12);
}
.ae-search-input::placeholder { color: #aaa; }
.ae-search-clear {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #999;
    display: flex;
    align-items: center;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
}
.ae-search-clear:hover {
    color: #c0392b;
    background: rgba(192,57,43,0.08);
}

/* Month tabs */
.ae-month-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ae-month-tab {
    padding: 8px 20px;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    background: #ffffff;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.ae-month-tab:hover {
    border-color: #c0392b;
    color: #c0392b;
}
.ae-month-tab.is-active {
    background: #c0392b;
    border-color: #c0392b;
    color: #ffffff;
}

/* No results */
.ae-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1.1rem;
}

/* ── Events Grid ─────────────────────────────── */
.ae-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* View Event Link (hidden inline, just for accessibility / right-click) */
.ae-view-event-link {
    display: none;
    position: absolute;
    bottom: 0; right: 0;
    font-size: 0;
    width: 0; height: 0;
    overflow: hidden;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
    .ae-events-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .ae-hero-banner {
        padding: 50px 0 40px;
    }
    .ae-controls-bar {
        gap: 12px;
    }
    .ae-search-wrap {
        max-width: 100%;
    }
    .ae-archive-container {
        padding-top: 24px;
    }
}
