/* =====================================================
   BOWERBIRD EVENT ARCHIVE
   Unique classes prefixed with bbrd-archive-
   ===================================================== */

.bbrd-archive-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0;
}

/* =====================================================
   LAYOUT — SIDEBAR + MAIN
   ===================================================== */

.bbrd-archive-layout {
    display: flex;
    gap: 40px;
}

/* =====================================================
   LEFT SIDEBAR NAVIGATION
   ===================================================== */

.bbrd-archive-sidebar {
    flex: 0 0 220px;
    max-height: calc(100vh - 200px); /* Prevent sidebar from being too tall */
    overflow-y: auto; /* Scroll if needed */
    position: sticky;
    top: 20px;
}

/* Search Box */
.bbrd-archive-search {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eeeeee;
}

.bbrd-archive-search form {
    display: flex;
    gap: 8px;
}

.bbrd-archive-search-input {
    flex: 1;
    padding: 10px 12px;
    font-family: "Sora", sans-serif;
    font-size: 0.9375rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.bbrd-archive-search-input:focus {
    outline: none;
    border-color: #00ACE1;
}

.bbrd-archive-search-button {
    padding: 10px 14px;
    background: #00ACE1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.bbrd-archive-search-button:hover {
    background: #0096c7;
}

.bbrd-archive-search-button .search-icon {
    font-size: 1.125rem;
    display: block;
    line-height: 1;
}

.bbrd-archive-clear-search {
    display: inline-block;
    margin-top: 8px;
    font-family: "Sora", sans-serif;
    font-size: 0.875rem;
    color: #00ACE1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bbrd-archive-clear-search:hover {
    color: #ec008c;
}

/* Navigation Title */
.bbrd-archive-nav-title {
    font-family: "Sora", sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000000;
}

.bbrd-archive-year-link {
    display: block;
    padding: 10px 15px;
    margin-bottom: 6px;
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #000000;
    background: #F6F6F6;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.bbrd-archive-year-link:hover {
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: #ec008c;
}

.bbrd-archive-year-link.bbrd-archive-year-active {
    background: #000000;
    color: #ffffff;
}

.bbrd-archive-year-link.bbrd-archive-year-active:hover {
    background: #000000;
    color: #ffffff;
}

/* =====================================================
   MAIN CONTENT AREA
   ===================================================== */

.bbrd-archive-main {
    flex: 1;
}

.bbrd-archive-year-title {
    font-family: "Sora", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eeeeee;
    color: #000000;
    letter-spacing: -0.02em;
}

/* =====================================================
   3-COLUMN EVENTS GRID
   ===================================================== */

.bbrd-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* =====================================================
   INDIVIDUAL EVENT CARD
   ===================================================== */

.bbrd-archive-event {
    background: #F6F6F6;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bbrd-archive-event:hover {
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.bbrd-archive-event-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.bbrd-archive-event-link:hover {
    text-decoration: none;
}

/* Event Image */
.bbrd-archive-event-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.bbrd-archive-event-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease;
}

.bbrd-archive-event:hover .bbrd-archive-event-image img {
    transform: scale(1.03);
}

/* Event Content */
.bbrd-archive-event-content {
    padding: 15px;
}

/* Event Title */
.bbrd-archive-event-title {
    font-family: "Sora", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 10px 0;
    color: #000000;
    text-transform: none;
    transition: color 0.3s ease;
}

.bbrd-archive-event:hover .bbrd-archive-event-title {
    color: #ec008c;
}

/* Event Subtitle */
.bbrd-archive-event-subtitle {
    font-family: "Sora", sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: #555555;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

/* Event Date */
.bbrd-archive-event-date {
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ec008c;
    margin: 0;
    line-height: 1.5;
}

/* =====================================================
   EMPTY STATE
   ===================================================== */

.bbrd-archive-empty {
    text-align: center;
    padding: 80px 20px;
    background: #F6F6F6;
}

.bbrd-archive-empty p {
    font-family: "Sora", sans-serif;
    font-size: 1.125rem;
    color: #555555;
}

/* =====================================================
   RESPONSIVE — TABLETS
   ===================================================== */

@media (max-width: 1024px) {
    .bbrd-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   RESPONSIVE — MOBILE
   ===================================================== */

@media (max-width: 768px) {
    .bbrd-archive-container {
        padding: 0 24px;
    }
    
    .bbrd-archive-layout {
        flex-direction: column;
    }
    
    .bbrd-archive-sidebar {
        flex: 0 0 auto;
        margin-bottom: 40px;
        max-height: none;
        position: static;
    }
    
    .bbrd-archive-search {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .bbrd-archive-search-input {
        font-size: 0.875rem;
    }
    
    .bbrd-archive-nav-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .bbrd-archive-year-link {
        font-size: 1rem;
        padding: 10px 15px;
    }
    
    .bbrd-archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bbrd-archive-year-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .bbrd-archive-event-title {
        font-size: 1.125rem;
    }
    
    .bbrd-archive-event-subtitle {
        font-size: 1rem;
    }
    
    .bbrd-archive-event-date {
        font-size: 0.9375rem;
    }
}
