/**
 * Bondgenoot — assets/css/components/live-event-banner.css (Cluster-N5 F413)
 *
 * Banner-styling voor actieve live-events ingame.
 */

.bg-live-events {
    margin: 0.5rem 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.bg-live-event {
    border: 1px solid rgba(184, 135, 14, 0.45);
    border-left-width: 4px;
    border-radius: 4px;
    background: linear-gradient(to right, rgba(247, 220, 130, 0.18), rgba(247, 236, 203, 0.08));
    overflow: hidden;
    transition: background 0.15s ease;
}
.bg-live-event.is-ended { opacity: 0.55; }

.bg-live-event--resource-bonus    { border-left-color: #2e8a45; }
.bg-live-event--double-xp         { border-left-color: #b8870e; }
.bg-live-event--achievement-window{ border-left-color: #7a4eb5; }
.bg-live-event--special-quest     { border-left-color: #4e9ec4; }

.bg-live-event__head {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 0.55rem;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    color: #3a2a10;
    font: inherit;
}
.bg-live-event__head:hover { background: rgba(247, 220, 130, 0.25); }
.bg-live-event__head:focus-visible {
    outline: 2px solid #b8870e;
    outline-offset: -2px;
}

.bg-live-event__icon {
    font-size: 1.2rem;
    line-height: 1;
}
.bg-live-event__title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bg-live-event__effect {
    font-size: 0.85rem;
    color: #6a5230;
    padding: 0.1rem 0.5rem;
    background: rgba(120, 90, 50, 0.1);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}
.bg-live-event__countdown {
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    font-variant-numeric: tabular-nums;
    font-size: 0.85rem;
    color: #3a2a10;
    background: #fff5d0;
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(184, 135, 14, 0.4);
    min-width: 5ch;
    text-align: center;
}
.bg-live-event__chev {
    color: #6a5230;
    transition: transform 0.15s ease;
}
.bg-live-event.is-open .bg-live-event__chev { transform: rotate(180deg); }

.bg-live-event__body {
    padding: 0 0.75rem 0.75rem;
    border-top: 1px solid rgba(184, 135, 14, 0.25);
    margin-top: -1px;
    background: rgba(255, 250, 230, 0.4);
}
.bg-live-event__desc {
    margin: 0.5rem 0;
    color: #4a3820;
    font-size: 0.92rem;
}
.bg-live-event__meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.25rem 0.75rem;
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
}
.bg-live-event__meta dt {
    color: #6a5230;
    font-weight: 600;
}
.bg-live-event__meta dd {
    margin: 0;
    color: #3a2a10;
}

@media (max-width: 600px) {
    .bg-live-event__head {
        grid-template-columns: auto 1fr auto;
        gap: 0.4rem;
    }
    .bg-live-event__effect {
        grid-column: 2 / 4;
        grid-row: 2;
        margin-top: 0.1rem;
    }
    .bg-live-event__chev { display: none; }
}
