/* =============================================
   BASED EVENTS PAGE - Washington Post Style
   ============================================= */

/* Page Container */
.events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 40px) 20px 60px;
}

/* Page Header */
.events-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.events-page-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.events-page-subtitle {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 20px;
    color: var(--text-tertiary);
    font-style: italic;
    margin: 0;
}

/* =============================================
   HERO SECTION - Featured Event
   ============================================= */
.events-hero {
    margin-bottom: 60px;
}

.hero-event {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.hero-image-container {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.hero-image-container a {
    display: block;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image-container:hover .hero-image {
    transform: scale(1.02);
}

.hero-content {
    padding-top: 20px;
}

.hero-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 16px;
}

.hero-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.hero-title a {
    color: inherit;
    text-decoration: none;
}

.hero-title a:hover {
    text-decoration: underline;
}

.hero-subtitle {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.hero-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
}

.hero-score svg {
    color: var(--primary);
}

.hero-source {
    font-style: italic;
}

/* =============================================
   TIME PERIOD SECTIONS
   ============================================= */
.events-section {
    margin-bottom: 60px;
}

.section-header {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    padding-bottom: 16px;
    border-bottom: 3px solid var(--text-primary);
    margin: 0 0 24px 0;
}

/* =============================================
   EVENTS GRID - Card Layout
   ============================================= */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Event Card */
.event-card {
    display: flex;
    flex-direction: column;
}

.event-card-image-link {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.event-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card-image-link:hover .event-card-image {
    transform: scale(1.05);
}

.event-card-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 8px;
}

.event-card-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.event-card-title a {
    color: inherit;
    text-decoration: none;
}

.event-card-title a:hover {
    text-decoration: underline;
}

.event-card-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: auto;
    padding-top: 8px;
}

.event-card-score {
    font-weight: 600;
    color: var(--text-secondary);
}

/* =============================================
   EMPTY STATE
   ============================================= */
.events-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-style: italic;
}

/* =============================================
   ERROR STATE
   ============================================= */
.events-error {
    text-align: center;
    padding: 80px 20px;
}

.events-error h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.events-error p {
    color: var(--text-secondary);
    margin: 0 0 24px 0;
}

.events-error-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.events-error-btn:hover {
    background: var(--primary-hover, #cc0000);
}

/* =============================================
   LOADING STATE
   ============================================= */
.events-loading {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.events-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* =============================================
   BACK LINK
   ============================================= */
.events-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.events-back-link:hover {
    color: var(--text-primary);
}

.events-back-link svg {
    width: 16px;
    height: 16px;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .hero-event {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-image {
        height: 300px;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .events-container {
        padding: calc(var(--header-height) + 24px) 16px 40px;
    }

    .events-page-title {
        font-size: 36px;
    }

    .events-page-subtitle {
        font-size: 18px;
    }

    .section-header {
        font-size: 24px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .events-container {
        padding: calc(var(--header-height) + 20px) 12px 32px;
    }

    .events-page-title {
        font-size: 28px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-title {
        font-size: 24px;
    }

    .section-header {
        font-size: 22px;
    }

    .event-card-title {
        font-size: 18px;
    }

    .event-card-image {
        height: 200px;
    }
}
