/* Custom overrides on top of Pico CSS */

/* --- Wallpaper & dark palette --- */
body {
    background-image: url('/static/broadway-casadeco-vert-canopee-wallpaper.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center top;
    min-height: 100vh;
}

[data-theme="dark"] {
    --pico-font-size: 16px;
    --pico-background-color: transparent;
    --pico-card-background-color: rgba(10, 28, 26, 0.88);
    --pico-color: #eef2f0;
    --pico-muted-color: #8bbfb8;
    --pico-muted-border-color: rgba(139, 191, 184, 0.2);
    --pico-border-color: rgba(139, 191, 184, 0.25);
    /* Copper accent from the wallpaper leaf veins */
    --pico-primary: #c8845a;
    --pico-primary-hover: #d8967a;
    --pico-primary-background: #c8845a;
    --pico-primary-inverse: #fff;
    --pico-secondary-background: rgba(40, 90, 85, 0.7);
    --pico-secondary-inverse: #eef2f0;
    --pico-secondary-border: rgba(139, 191, 184, 0.4);
}

header.container {
    background: rgba(8, 24, 22, 0.82);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(139, 191, 184, 0.2);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

main.container {
    background: rgba(8, 24, 22, 0.75);
    backdrop-filter: blur(4px);
    border-radius: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

footer.container {
    background: rgba(8, 24, 22, 0.75);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(139, 191, 184, 0.2);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

header h1 {
    margin-bottom: 0.25rem;
    color: #eef2f0;
}

header p {
    margin-top: 0;
    color: var(--pico-muted-color);
}

.genre-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.genre-filters button {
    padding: 0.25rem 0.6rem;
    font-size: 0.875rem;
    line-height: 1.3;
    text-align: center;
}

.genre-filters .clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.25rem 0.7rem;
}

@media (max-width: 480px) {
    .genre-filters button {
        padding: 0.2rem 0.45rem;
        font-size: 0.8rem;
    }
}

.genre-count {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
}

.event-card {
    margin-bottom: 1rem;
    background: rgba(10, 28, 26, 0.90) !important;
    border: 1px solid rgba(139, 191, 184, 0.2) !important;
}

.event-card header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.event-time {
    color: var(--pico-muted-color);
    font-size: 0.875rem;
}

.tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: rgba(200, 132, 90, 0.25);
    color: #e8a880;
    border: 1px solid rgba(200, 132, 90, 0.4);
    border-radius: 1rem;
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.date-heading {
    border-bottom: 1px solid rgba(139, 191, 184, 0.3);
    padding-bottom: 0.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #8bbfb8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

#event-list {
    min-height: 200px;
}

.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: inline;
}

.threshold-row {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.threshold-row label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.threshold-row input[type="range"] {
    flex: 1;
    max-width: 200px;
    margin: 0;
    padding: 0;
}

.sounds-like-chip {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    background: var(--pico-secondary-background);
    color: var(--pico-secondary-inverse);
    border: 1px solid var(--pico-secondary-border);
    border-radius: 2rem;
    cursor: pointer;
    margin: 0;
}
