/* ═══════════════════════════════════════════
   BroBot V21 - L'Échiquier Design System
   ═══════════════════════════════════════════ */

html, body { overflow-x: hidden; }
body { background-color: #0b0f19; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0b0f19; }
::-webkit-scrollbar-thumb { background: #1e2636; border-radius: 3px; }

/* ═══════════════════════════════════════════
   SECTOR TICKER TAGS
   ═══════════════════════════════════════════ */

.sector-ticker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 55px;
    text-align: center;
}

.sector-idle {
    color: #cbd5e1;
    background: #111827;
    border: 1.5px solid #1e293b;
}
.sector-idle:hover {
    color: #ffffff;
    background: #1e293b;
    border-color: #475569;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Title glow — CELI vert, CASH bleu */
.title-glow-celi {
    color: #22c55e;
    animation: title-glow-green 2s ease-in-out infinite;
}
@keyframes title-glow-green {
    0%, 100% { text-shadow: 0 0 4px rgba(34, 197, 94, 0.3); }
    50% { text-shadow: 0 0 20px rgba(34, 197, 94, 0.8), 0 0 40px rgba(34, 197, 94, 0.4); }
}
.title-glow-cash {
    color: #005eff;
    animation: title-glow-blue 2s ease-in-out infinite;
}
@keyframes title-glow-blue {
    0%, 100% { text-shadow: 0 0 4px rgba(0, 94, 255, 0.3); }
    50% { text-shadow: 0 0 20px rgba(0, 94, 255, 0.8), 0 0 40px rgba(0, 94, 255, 0.4); }
}

/* Actif (position ouverte) — VERT avec pulse glow */
.sector-active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #052e16, #14532d) !important;
    border: 2px solid #22c55e !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    animation: glow-active-green 2s ease-in-out infinite !important;
}
@keyframes glow-active-green {
    0%, 100% { box-shadow: 0 0 6px rgba(34, 197, 94, 0.2), 0 0 2px rgba(34, 197, 94, 0.1); border-color: #22c55e; }
    50% { box-shadow: 0 0 30px rgba(34, 197, 94, 0.8), 0 0 12px rgba(34, 197, 94, 0.5), 0 0 4px rgba(134, 239, 172, 0.3); border-color: #86efac; }
}
.sector-active:hover {
    box-shadow: 0 0 36px rgba(34, 197, 94, 0.9) !important;
    transform: translateY(-2px);
}

/* Cible (target en attente d'exec MKT 9h45) — JAUNE */
.sector-pending {
    color: #fde047;
    background: linear-gradient(135deg, #1a1500, #2d2300);
    border: 2px solid #facc15;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.4);
    font-weight: 700;
    animation: pulse-yellow 2.5s ease-in-out infinite;
}
.sector-pending:hover {
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.6);
    transform: translateY(-2px);
}

@keyframes pulse-yellow {
    0%, 100% { box-shadow: 0 0 6px rgba(250, 204, 21, 0.25); }
    50% { box-shadow: 0 0 16px rgba(250, 204, 21, 0.55); }
}

/* Candidat top 20 — MAUVE */
.sector-candidate {
    color: #c4b5fd;
    background: linear-gradient(135deg, #1a1040, #2d1b69);
    border: 1.5px solid #8b5cf6;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.25);
}
.sector-candidate:hover {
    color: #ffffff;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.45);
    transform: translateY(-1px);
}

/* Cooldown — ROUGE */
.sector-cooldown {
    color: #fca5a5;
    background: linear-gradient(135deg, #1a0505, #2d0a0a);
    border: 1.5px dashed #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.2);
}
.sector-cooldown:hover {
    color: #ffffff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

/* Rejected (quality filter) — ORANGE BARRE */
.sector-rejected {
    color: #fdba74;
    background: linear-gradient(135deg, #1a0f00, #2d1a05);
    border: 1.5px dashed #f97316;
    box-shadow: 0 0 6px rgba(249, 115, 22, 0.2);
    text-decoration: line-through;
}
.sector-rejected:hover {
    color: #ffffff;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
    transform: translateY(-1px);
    text-decoration: line-through;
}

/* ═══════════════════════════════════════════
   TOOLTIP — floating card on hover
   ═══════════════════════════════════════════ */

.tooltip-card {
    position: absolute;
    z-index: 100;
    background: #1a2035;
    border: 1px solid #2a3550;
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 180px;
    max-width: 260px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.tooltip-card.hidden {
    display: none;
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
    .sector-ticker {
        font-size: 11px;
        padding: 3px 7px;
    }
}

@media (max-width: 480px) {
    .sector-ticker {
        font-size: 10px;
        padding: 2px 5px;
    }
}
