/* === SEQUENCE SNIPER — Styles dédiés ===
 * Chargé après assets/css/games.css (uniforme catégorie games)
 * Style monospace + visuel terminal pour les commandes CLI.
 */

/* ── Zones d'affichage / reproduction ───────────────────────────────────── */
.ss-show-zone,
.ss-play-zone {
    background: var(--bg-soft, #f6f7fb);
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 12px;
    padding: 1rem 1.1rem 1.25rem;
    margin: 1rem 0 .5rem;
}

.ss-show-zone {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #e5e7eb;
    border-color: #1f2937;
    animation: ss-fade-in .35s ease;
}

[data-theme="dark"] .ss-play-zone {
    background: #11141c;
    border-color: #232733;
}

.ss-show-header {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .85rem;
    font-size: 1rem;
}

.ss-eye-icon { font-size: 1.3rem; }

.ss-countdown {
    margin-left: auto;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    padding: .15rem .65rem;
    border-radius: 6px;
    min-width: 60px;
    text-align: center;
}

/* ── Séquence à mémoriser (phase 1) ─────────────────────────────────────── */
.ss-sequence {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.ss-seq-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: .55rem .75rem;
    animation: ss-slide-in .25s ease backwards;
}

.ss-seq-item:nth-child(1)  { animation-delay: 0.00s; }
.ss-seq-item:nth-child(2)  { animation-delay: 0.05s; }
.ss-seq-item:nth-child(3)  { animation-delay: 0.10s; }
.ss-seq-item:nth-child(4)  { animation-delay: 0.15s; }
.ss-seq-item:nth-child(5)  { animation-delay: 0.20s; }
.ss-seq-item:nth-child(6)  { animation-delay: 0.25s; }
.ss-seq-item:nth-child(7)  { animation-delay: 0.30s; }
.ss-seq-item:nth-child(8)  { animation-delay: 0.35s; }
.ss-seq-item:nth-child(9)  { animation-delay: 0.40s; }
.ss-seq-item:nth-child(10) { animation-delay: 0.45s; }
.ss-seq-item:nth-child(11) { animation-delay: 0.50s; }
.ss-seq-item:nth-child(12) { animation-delay: 0.55s; }

.ss-seq-rank {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
}

/* ── Slots (phase 2 reproduction) ──────────────────────────────────────── */
.ss-zone-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text, #111);
    margin: 0 0 .65rem;
    letter-spacing: .01em;
}

.ss-slots {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.ss-slot {
    display: flex;
    align-items: center;
    gap: .65rem;
    background: var(--surface, #fff);
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: .5rem .7rem;
    min-height: 44px;
    transition: all .2s ease;
}

.ss-slot-rank {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #374151;
    font-size: .8rem;
    font-weight: 800;
}

.ss-slot-content {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #94a3b8;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.ss-slot-filled {
    border-style: solid;
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.ss-slot-filled .ss-slot-rank {
    background: #6366f1;
    color: #fff;
}

.ss-slot-ok {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.08) !important;
}

.ss-slot-ok .ss-slot-rank { background: #22c55e; }

.ss-slot-ko {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

.ss-slot-ko .ss-slot-rank { background: #ef4444; }

/* ── Palette (boutons cliquables) ───────────────────────────────────────── */
.ss-palette {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .5rem;
}

.ss-pal-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--surface, #fff);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: .5rem .75rem;
    cursor: pointer;
    transition: all .15s ease;
    font-family: inherit;
}

.ss-pal-btn:hover:not(.ss-used) {
    border-color: #6366f1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.ss-pal-btn:focus-visible {
    outline: 3px solid #6366f1;
    outline-offset: 2px;
}

.ss-pal-btn.ss-used {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    text-decoration: line-through;
}

/* ── Code monospace + badges techno ─────────────────────────────────────── */
.ss-cmd {
    font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: .92rem;
    font-weight: 600;
    color: inherit;
    background: transparent;
    padding: 0;
}

.ss-show-zone .ss-cmd { color: #38bdf8; }

.ss-techno-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .15rem .5rem;
    border-radius: 4px;
    color: #fff;
    min-width: 58px;
    text-align: center;
}

.ss-techno-angular { background: #dd0031; }
.ss-techno-git     { background: #f05033; }
.ss-techno-linux   { background: #fcc624; color: #1e293b; }
.ss-techno-docker  { background: #2496ed; }
.ss-techno-npm     { background: #cb3837; }

/* ── Alertes overlay ─────────────────────────────────────────────────────── */
.ss-alert {
    position: fixed;
    top: calc(var(--navbar-height, 56px) + 0.75rem);
    right: 1rem;
    z-index: 99999;
    min-width: 350px;
    max-width: 400px;
    transform: translateX(0);
    transition: transform .35s ease, opacity .35s ease;
    opacity: 1;
}

.ss-alert-out {
    transform: translateX(110%);
    opacity: 0;
}

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes ss-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ss-slide-in {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Mobile responsive ──────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .ss-cmd { font-size: .82rem; }
    .ss-pal-btn { padding: .4rem .6rem; }
    .ss-techno-badge { min-width: 50px; font-size: .62rem; }
    .ss-countdown { font-size: 1rem; min-width: 50px; }
}
