/* Events Browse Page with Filters to Left of Centered Events */

/* Wrapper for events content - centered */
.events-browse-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    padding-left: 280px; /* Space for filters (240px + 40px gap) */
}

/* Filters sidebar - positioned to the left */
.events-filters {
    position: fixed;
    left: 0;
    top: 100px; /* Below topbar */
    width: 240px;
    background-color: transparent;
    border: none;
    padding: 20px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 100;
    margin-left: 20px;
}

/* Events content - centered */
.events-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
    gap: 16px;
}

.events-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: #000000;
    flex: 1;
    min-width: 0;
}

.create-event-button {
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Playfair Display', 'Libre Baskerville', 'Georgia', 'Times New Roman', 'Times', serif;
    background-color: var(--accent-color);
    color: #ffffff;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.create-event-button:hover {
    background-color: #333333;
    border-color: #333333;
    color: #ffffff;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    width: 100%;
    max-width: 1200px;
}

.events-list .event-card {
    width: 100%;
}

.create-event-link {
    margin-top: 40px;
    text-align: center;
    padding: 0;
    width: 100%;
    max-width: 1200px;
}

.events-filters h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #000000;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 12px;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.filter-group input[type="text"],
.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Playfair Display', 'Libre Baskerville', 'Georgia', 'Times New Roman', 'Times', serif;
    background-color: #ffffff;
    color: #000000;
    min-height: 40px;
}

.filter-group input[type="text"]:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(82, 131, 138, 0.2);
}

.filter-button {
    padding: 12px 20px;
    background-color: var(--accent-color);
    color: #ffffff;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Playfair Display', 'Libre Baskerville', 'Georgia', 'Times New Roman', 'Times', serif;
    cursor: pointer;
    transition: opacity 0.2s ease;
    min-height: 40px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filter-button:hover {
    opacity: 0.8;
    filter: brightness(0.9);
}

.clear-filters {
    text-align: center;
    padding: 10px;
    color: var(--accent-color);
    text-decoration: underline;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.clear-filters:hover {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .events-browse-wrapper {
        padding-left: 0;
    }
    
    .events-filters {
        position: static;
        width: calc(100% - 40px);
        top: auto;
        max-height: none;
        margin: 0 20px 24px 20px;
    }
    
    .events-content h1 {
        font-size: 28px;
        padding: 0;
    }
    
    .events-list {
        padding: 0;
    }
    
    .create-event-link {
        padding: 0;
    }
}
