* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 4rem;
    background: #1a1a2e;
    color: #e0e0e0;
}

.site-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.site-header h1 {
    font-size: 1.8rem;
    font-weight: 300;
    color: #7f8c9a;
    letter-spacing: 0.1em;
}

main {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.city-filter {
    width: 100%;
    background: #16213e;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.city-filter h2 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #7f8c9a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
    width: 25%;
}

.filters {
    background: #16213e;
    border-radius: 8px;
    padding: 1rem;
}

.filters h2 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #7f8c9a;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #e0e0e0;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.filter-btn:hover {
    background: #1f2b47;
}

.filter-btn.active {
    background: #2d4a7c;
    color: #fff;
}

#events-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.event-row {
    background: #16213e;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.event-row:hover {
    background: #1f2b47;
}

.event-date {
    color: #7f8c9a;
    font-size: 0.95rem;
    white-space: nowrap;
}

.separator {
    color: #3a4a5a;
    font-size: 0.95rem;
}

.event-title a {
    color: #64b5f6;
    text-decoration: none;
    font-size: 0.95rem;
}

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

.event-title {
    color: #e0e0e0;
    font-size: 0.95rem;
}

.event-source {
    color: #7f8c9a;
    font-size: 0.95rem;
}

.loading,
.error,
.empty {
    text-align: center;
    padding: 2rem;
    color: #7f8c9a;
}

.error {
    color: #ef5350;
}

footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: #5a6a7a;
}

@media (max-width: 600px) {
    body {
        padding: 0.75rem;
    }

    .sidebar {
        width: 100%;
    }

    .filter-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .event-row {
        padding: 0.6rem 0.8rem;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #16213e;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid #2d4a7c;
}

.close-modal {
    color: #7f8c9a;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #fff;
}

.modal h3 {
    margin-bottom: 0.5rem;
    color: #fff;
}

#report-event-title {
    color: #7f8c9a;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.report-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.report-btn {
    background: #1f2b47;
    border: 1px solid #2d4a7c;
    color: #e0e0e0;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.report-btn:hover {
    background: #2d4a7c;
    color: #fff;
    transform: translateY(-1px);
}

.report-heart {
    cursor: pointer;
    margin-left: auto;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    padding: 0.25rem;
}

.report-heart:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #16213e;
    border-top: 1px solid #2d4a7c;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    z-index: 100;
}

.bottom-nav a {
    color: #7f8c9a;
    text-decoration: none;
    transition: color 0.2s;
}

.bottom-nav a:hover {
    color: #fff;
}

.nav-separator {
    color: #3a4a5a;
}

/* Modal Enhancements */
.modal-desc {
    color: #7f8c9a;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.modal-input {
    width: 100%;
    background: #1f2b47;
    border: 1px solid #2d4a7c;
    color: #fff;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-family: inherit;
    font-size: 1rem;
}

.modal-input:focus {
    outline: none;
    border-color: #64b5f6;
}

.submit-btn {
    width: 100%;
    background: #2d4a7c;
    border: none;
    color: #fff;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #3e5f96;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}