/* results.css */

/* Global Typography */
body, h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', sans-serif;
}

.hidden { display: none; }

/* Filter Buttons & Sidebar */
.filter-btn {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    position: relative;
    font-weight: 500;
    color: #1f2937;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
    background: #f9fafb;
    border-color: #3fb584;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.filter-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3fb584;
}

.subtype-btn {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    background: #ffffff;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    margin-top: 0.5rem;
    color: #374151;
    display: block;
}

.subtype-btn:hover {
    background: #ecfdf5;
    border-color: #34d399;
    color: #065f46;
}

/* Badges & Counters */
.counter-badge {
    background: linear-gradient(135deg, #34d399, #2f9d6f);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-left: 0.5rem;
}

.selected-filter-badge {
    display: inline-flex;
    align-items: center;
    background: #d1fae5;
    color: #065f46;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    margin: 0.5rem 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #a7f3d0;
}

.selected-filter-badge:hover {
    background: #34d399;
    color: white;
    transform: scale(1.05);
}

/* Primary Actions */
.btn-accent {
    background: linear-gradient(135deg, #3fb584, #2f9d6f);
    color: white !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #2f9d6f, #248759);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Sidebar Sticky Logic */
@media (min-width: 768px) {
    .filters-sidebar {
        position: sticky;
        top: 5rem;
        align-self: flex-start;
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
        background: #f9fafb;
        border-radius: 0.75rem;
        padding: 1rem;
    }

    /* Hide scrollbar for cleaner look but keep functionality */
    .filters-sidebar::-webkit-scrollbar { width: 4px; }
    .filters-sidebar::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 10px; }
}

/* Mobile Filter Overlay */
.mobile-filter-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ffffff;
    z-index: 100;
    overflow-y: auto;
    padding: 2rem;
    display: none;
}

.mobile-filter-overlay.active { display: block; }

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 9999;
}

.toast {
    background-color: #333;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
}

.toast.show { opacity: 1; transform: translateX(0); }
.toast.success { background-color: #3fb584; }
.toast.removed { background-color: #f87171; }

/* Bookmark Animation */
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.save-event-btn path.saved-animate {
    animation: pop 0.3s ease forwards;
}