/* ==============================================================================
 * includes/frontend/smart_pages/shortcode-ticker-chart/shortcode-ticker-chart.css
 * VERSION 4.9.0 - REPLAY COCKPIT & PROGRESS BAR STYLING
 * ============================================================================== */

.etea-ticker-chart-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    position: relative;
    overflow: hidden !important;
    border-radius: 8px;
    background: rgba(8, 12, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

.etea-ticker-chart-canvas {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 180px;
    position: relative;
    overflow: hidden !important;
    display: block;
}

.etea-ticker-chart-canvas canvas {
    max-width: 100% !important;
}

.etea-chart-mini-cockpit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Share Tech Mono', monospace;
}

.cockpit-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-rec-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #089981;
    box-shadow: 0 0 8px #089981;
}
.live-rec-dot.recording { animation: pulseGreenRec 1s infinite alternate; }
.live-rec-dot.paused { background: #ffd700; box-shadow: 0 0 6px #ffd700; animation: none; }

@keyframes pulseGreenRec { from { opacity: 1; } to { opacity: 0.4; } }

.cockpit-mode-tag {
    font-size: 9px;
    font-weight: 900;
    color: #089981;
    letter-spacing: 0.5px;
}

.cockpit-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mini-transport-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c9d1d9;
    font-family: 'Share Tech Mono', monospace;
    font-size: 9.5px;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mini-transport-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: #00f0ff;
    color: #00f0ff;
}

.mini-transport-btn.btn-speed {
    color: #ffd700;
}

/* 🟢 FIX DE LA LIGNE BLEUE : La barre de progression démarre à 0% et ne traverse plus le haut */
.etea-chart-progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00f0ff, #089981);
    box-shadow: 0 0 6px #089981;
    transition: width 0.1s linear;
}

.etea-ticker-chart-empty {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 20, 0.95);
    color: var(--fin-text-muted, #8b949e);
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.5px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* ==============================================================================
 * 🟢 BARRE D'EXPLICATION CINÉMATIQUE INTERACTIVE (STYLE TERMINAL NARRATION)
 * ============================================================================== */

.etea-chart-narration-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    line-height: 1.2;
    overflow: hidden;
    box-sizing: border-box;
}

.etea-chart-narration-bar.etea-hidden,
#pro-explorer-narration.etea-hidden,
.explorer-narration.etea-hidden {
    display: none !important;
}

.etea-chart-narration-bar .narration-step-tag {
    color: var(--fin-cyan, #00f0ff) !important;
    font-weight: 900 !important;
    letter-spacing: 0.6px !important;
    flex-shrink: 0 !important;
    text-transform: uppercase !important;
    background: rgba(0, 240, 255, 0.1) !important;
    border: 1px solid rgba(0, 240, 255, 0.25) !important;
    padding: 1px 6px !important;
    border-radius: 3px !important;
}

.etea-chart-narration-bar .narration-message {
    color: #c9d1d9 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    flex: 1 !important;
}

.etea-chart-narration-bar .narration-message strong {
    color: #ffffff !important;
    font-weight: bold !important;
}

/* ==============================================================================
   🟢 STYLE PLEIN ÉCRAN PRIORITAIRE POUR TICKER CHART (ZÉRO ÉCRAN NOIR)
   ============================================================================== */
body.etea-no-scroll {
    overflow: hidden !important;
}

.etea-ticker-chart-wrapper.is-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999999 !important;
    background: #05080f !important;
    padding: 20px 25px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

.etea-ticker-chart-wrapper.is-fullscreen .etea-ticker-chart-canvas {
    flex-grow: 1 !important;
    width: 100% !important;
    height: calc(100vh - 140px) !important;
}