/* bot-decisions.css — bloc « Ce que le bot a décidé » de la landing (chargé après style.css) */

/* Onglets Observer / Décider (dans la section du défi) */
.live-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 860px;
    margin: 0 auto 2.5rem;
}

.live-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.9rem 1.1rem;
    text-align: left;
    font-family: var(--font-main);
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.live-tab:hover {
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.live-tab.is-active {
    color: var(--text-primary);
    background: var(--bg-card-hover);
    border-color: #ff8844;
    box-shadow: 0 0 0 1px rgba(255, 136, 68, 0.35);
}

.live-tab-step {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.live-tab.is-active .live-tab-step {
    color: #ff8844;
}

.live-tab-label {
    font-size: 1.05rem;
    font-weight: 600;
}

.live-tab-badge {
    margin-left: 0.35rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    color: var(--bg-primary);
    background: var(--accent-green);
}

.bot-live .section-tag {
    background: var(--accent-purple-glow);
    color: #b77cf2;
}

.bot-panel {
    max-width: 860px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.bot-status {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.bot-status strong {
    color: var(--text-primary);
}

.bot-status.is-error {
    color: var(--accent-orange);
}

.bot-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: var(--text-muted);
    vertical-align: 1px;
}

.bot-status-dot.is-active {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.bot-status-sep {
    margin: 0 0.4rem;
    color: var(--text-muted);
}

.bot-status-text {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Lecture du marché par la méthode : même composant que .pilot-gauge du cours (piste, curseur, 3 libellés).
   5 positions fixes, aucune graduation : le curseur ne traduit aucune valeur continue. */
.bot-reading {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-subtle);
}

.bot-reading-title {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
}

.bot-gauge {
    width: 100%;
    max-width: 420px;
}

.bot-gauge-track {
    position: relative;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg,
        var(--accent-red, #ff4466) 0%, var(--text-muted) 50%, var(--accent-green, #00ff88) 100%);
    opacity: 0.85;
}

.bot-gauge-marker {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-primary, #fff);
    border: 2px solid var(--bg-card, #0f1c28);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
    transform: translate(-50%, -50%);
}

.bot-gauge-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.3rem;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.bot-reading-text {
    margin: 0.75rem 0 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-primary);
}

.bot-reading-meta {
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.bot-reading-meta strong {
    color: var(--text-primary);
}

.bot-reading-note {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.bot-chart-wrap {
    margin-top: 1.25rem;
}

.bot-chart {
    display: block;
    width: 100%;
    height: 260px;
}

.bot-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.bot-legend-item::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 0.4rem;
    border-radius: 2px;
    vertical-align: -1px;
}

.bot-legend-item.is-buy::before { background: var(--accent-green); }
.bot-legend-item.is-sell::before { background: var(--accent-red); }
.bot-legend-item.is-mr::before { background: rgba(0, 212, 255, 0.25); }
.bot-legend-item.is-tf::before { background: rgba(138, 43, 226, 0.4); }

.bot-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.bot-item {
    display: flex;
    gap: 0.9rem;
    padding: 0.9rem 0;
    border-top: 1px solid var(--border-subtle);
}

.bot-item-num {
    flex: 0 0 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.6rem;
    text-align: center;
    color: var(--bg-primary);
    background: var(--text-secondary);
}

.bot-item.is-buy .bot-item-num { background: var(--accent-green); }
.bot-item.is-sell .bot-item-num { background: var(--accent-red); }

.bot-item-title {
    font-weight: 600;
    color: var(--text-primary);
}

.bot-item-meta {
    margin-top: 0.15rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.bot-item-text {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.bot-cta {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.bot-cta p {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 1rem;
}

.bot-cta .bot-cta-title {
    margin-bottom: 0.4rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.bot-cta-course {
    display: block;
    margin-top: 0.9rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.bot-cta-course:hover {
    color: var(--accent-cyan);
}

.bot-more {
    display: block;
    margin: 0.25rem auto 0;
    padding: 0.5rem 1rem;
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    background: none;
    border: 1px solid var(--border-accent);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
}

.bot-more:hover {
    background: var(--accent-cyan-glow);
}

.bot-more[hidden],
.bot-item[hidden] {
    display: none;
}

.bot-disclaimer {
    margin: 1rem 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.bot-limits a {
    color: inherit;
    text-decoration: underline;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .live-tabs { gap: 0.5rem; margin-bottom: 1.5rem; }
    .live-tab { padding: 0.7rem 0.8rem; }
    .live-tab-label { font-size: 0.95rem; }
    .bot-panel { padding: 1rem; }
    .bot-chart { height: 220px; }
    .bot-status-sep { display: none; }
    .bot-status-part { display: block; }
}
