/* ============================================================
 * StarkTrade 5.0K - style.css
 * Sensor de mercado, botones, layout del Cerebro IA, animaciones.
 * - Reset, variables y app shell:    style-layout.css
 * - Tablas y utilidades profit/loss: style-tables.css
 * - Logs y leyenda IA:               style-logs.css
 * ============================================================ */

/* ─── Animaciones ───────────────────────────────────────────── */
@keyframes pulse {
    0%   { opacity: 1;   text-shadow: 0 0 5px currentColor; }
    50%  { opacity: 0.6; text-shadow: 0 0 0px currentColor; }
    100% { opacity: 1;   text-shadow: 0 0 5px currentColor; }
}

#market-pulse { transition: color 0.5s ease; }

/* ─── Detalles del Sensor ───────────────────────────────────── */
.sensor-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-row .label {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.detail-row .value {
    font-size: 0.8rem;
    font-weight: 700;
}

.divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 5px 0;
}

.trend-meter-container { margin-top: 10px; }
.trend-meter-container .label {
    font-size: 0.6rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-align: center;
}

.trend-meter {
    height: 6px;
    background: #1a1a1e;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
}

.trend-bar {
    height: 100%;
    width: 0%;
    transition: width 1s ease, background-color 1s ease;
    box-shadow: 0 0 10px currentColor;
}

/* ─── Botones ───────────────────────────────────────────────── */
.btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #00cfff;
    color: #00cfff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 2px;
    margin-top: 10px;
    transition: 0.3s;
}
.btn-primary:hover:not(:disabled) {
    background: #00cfff;
    color: var(--bg-black);
    box-shadow: 0 0 20px #00cfff;
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-sm {
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    cursor: pointer;
    border-radius: 2px;
    transition: 0.2s;
}
.btn-sm:hover { border-color: var(--accent-neon); color: var(--accent-neon); }

/* ─── Cerebro IA ────────────────────────────────────────────── */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.card-header-row h3 { margin-bottom: 0; }

.card-desc {
    font-size: 0.65rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 8px 0 4px;
}

.brain-sensor-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.candle-panel .label { font-size: 0.6rem; color: var(--text-secondary); }

.trigger-result    { margin-top: 14px; font-size: 0.7rem; line-height: 1.7; }
.trigger-decision  { font-size: 1rem; font-weight: 700; margin-bottom: 6px; letter-spacing: 1px; }
.trigger-reasoning { color: var(--text-secondary); margin-bottom: 4px; }
.trigger-meta      { color: var(--text-secondary); font-size: 0.62rem; }

/* Modal + widgets Fase 1/2 viven en style-extras.css */

/* ─── Responsive de este archivo ───────────────────────────── */
@media (max-width: 768px) {
    .brain-sensor-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .btn-primary { font-size: 0.72rem; padding: 10px; }
}
