/* Explain: Styles for live stream calendar, filters, and reminder elements. */
/* --- Lives : filtres, statuts, vignettes --- */
.sa-filter {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    font-size: .85rem;
    cursor: pointer;
    transition: border-color .25s, color .25s, background .25s;
}
.sa-filter:hover { color: var(--gold-color); border-color: var(--gold-color); }
.sa-filter.is-active {
    background: linear-gradient(135deg, var(--primary-color), #4c1d95);
    border-color: transparent;
    color: #fff;
}

.sa-live-group + .sa-live-group { margin-top: 3.5rem; }
.sa-live-group.hidden { display: none; }

.sa-live-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #0b0518;
}
.sa-live-thumb img { width: 100%; height: 100%; object-fit: cover; }

.sa-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .75rem;
    border-radius: 999px;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
}
.sa-live-thumb .sa-status { position: absolute; top: .7rem; left: .7rem; }
.sa-status-live { background: rgba(220, 38, 38, .92); color: #fff; }
.sa-status-live i { font-size: .5rem; animation: sa-blink 1.4s ease-in-out infinite; }
.sa-status-soon { background: rgba(232, 196, 122, .92); color: #1a0e05; }
.sa-status-replay { background: rgba(76, 29, 149, .92); color: #fff; }

@keyframes sa-blink { 50% { opacity: .2; } }

/* --- Salle de diffusion --- */
.sa-stream {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #05010c;
}
.sa-stream iframe,
.sa-stream img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* --- Cadeaux virtuels --- */
.sa-gift-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 560px) { .sa-gift-grid { grid-template-columns: repeat(3, 1fr); } }

.sa-gift {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: .7rem .5rem;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(27, 16, 51, .9), rgba(12, 6, 26, .9));
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    text-align: center;
    transition: transform .25s, border-color .25s;
}
.sa-gift:hover { transform: translateY(-3px); border-color: var(--gold-color); }
.sa-gift img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
.sa-gift-name { font-size: .82rem; }
.sa-gift-cost { font-size: .74rem; color: var(--gold-color); }

.sa-gift-layer { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.sa-gift-float {
    position: absolute;
    bottom: -90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    animation: sa-gift-rise 4.2s ease-out forwards;
}
.sa-gift-float img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(232, 196, 122, .5);
    box-shadow: 0 0 24px rgba(232, 196, 122, .45);
}
.sa-gift-float-cap {
    font-size: .72rem;
    white-space: nowrap;
    padding: .15rem .55rem;
    border-radius: 999px;
    background: rgba(10, 5, 22, .88);
    border: 1px solid var(--border-color);
    color: var(--gold-color);
}
@keyframes sa-gift-rise {
    0% { transform: translateY(0) scale(.8); opacity: 0; }
    12% { opacity: 1; }
    100% { transform: translateY(-92vh) scale(1.06); opacity: 0; }
}

/* --- Chat --- */
.sa-chat-scroll { max-height: 420px; overflow-y: auto; padding-right: .3rem; }
.sa-chat-line {
    padding: .5rem .75rem;
    border-radius: 12px;
    background: rgba(27, 16, 51, .55);
    border: 1px solid var(--border-color);
    font-size: .9rem;
}
.sa-chat-line b { color: var(--gold-color); font-weight: 600; }
.sa-chat-line span { color: var(--text-color); }

/* --- Calendrier des lives --- */
.sa-cal { display: flex; flex-direction: column; gap: 1rem; }

.sa-cal-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
}
@media (min-width: 760px) {
    .sa-cal-item { grid-template-columns: auto 1fr auto; }
}

.sa-cal-date {
    display: grid;
    place-items: center;
    width: 4.6rem;
    height: 4.6rem;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(139, 92, 246, .28), rgba(27, 16, 51, .92));
    border: 1px solid var(--border-gold);
    color: var(--gold-color);
    text-align: center;
    line-height: 1.15;
}
.sa-cal-date b { font-family: var(--font-heading); font-size: 1.7rem; }
.sa-cal-date span { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.sa-cal-date em {
    display: block;
    font-style: normal;
    font-size: .62rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.sa-cal-title { font-size: 1.15rem; }
.sa-cal-meta {
    margin-top: .4rem;
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .9rem;
    font-size: .82rem;
    color: var(--text-muted);
}
.sa-cal-meta i { color: var(--gold-color); }
.sa-cal-desc { margin-top: .55rem; font-size: .9rem; color: var(--text-muted); }
.sa-cal-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.sa-reminder-note { border-style: dashed; }