/**
 * Events Page Styling
 * Event cards, filters, and listing components
 */

/* ============================================================================
   Event Cards
   ============================================================================ */

.event-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.event-image {
    position: relative;
    width: 100%;
    padding-top: 60%; /* 5:3 aspect ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.event-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.event-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.event-title a:hover {
    color: #007bff;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.event-excerpt {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #495057;
    margin: 0;
    margin-top: auto;
}

/* ============================================================================
   Filter Components
   ============================================================================ */

.filter-loading,
.no-results {
    padding: 3rem 1rem;
    text-align: center;
    color: #6c757d;
    font-size: 1.125rem;
}

.no-results p {
    margin: 0.5rem 0;
}

/* Active filters tags */
#active-filters-container {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #007bff;
    color: #fff;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-tag-remove {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.125rem;
    line-height: 1;
    padding: 0;
    margin: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.filter-tag-remove:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ============================================================================
   Dark Theme Support
   ============================================================================ */

[data-theme="dark"] .event-card {
    background: #2d2d2d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .event-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .event-title a {
    color: #e0e0e0;
}

[data-theme="dark"] .event-title a:hover {
    color: #79b8ff;
}

[data-theme="dark"] .event-excerpt {
    color: #b0b0b0;
}

[data-theme="dark"] .event-meta {
    color: #888;
}

[data-theme="dark"] #active-filters-container {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .filter-loading,
[data-theme="dark"] .no-results {
    color: #888;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 768px) {
    .event-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .event-content {
        padding: 1rem;
    }
    
    .event-title {
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .event-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .event-meta span::before {
        content: '';
        display: inline-block;
        width: 1px;
        height: 12px;
        background: #dee2e6;
        margin-right: 0.75rem;
    }
    
    .event-meta span:first-child::before {
        display: none;
    }
}
