/* ============================================================
   market_momentum.css
   Market Momentum Detector — Styling
   ============================================================ */

/* ─── Banner ─────────────────────────────────────────────── */
#mm-banner {
    width: 100%;
    padding: 0;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.9rem;
    animation: mm-slideDown 0.3s ease;
}

@keyframes mm-slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.mm-banner-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    flex-wrap: wrap;
}

.mm-banner--early    { background: #2a2410; border: 1px solid #8a6d00; color: #ffd700; }
.mm-banner--confirmed{ background: #0d2a1a; border: 1px solid #00a854; color: #00d46a; }
.mm-banner--strong   { background: #0a1f0a; border: 1px solid #00ff6a; color: #00ff6a; }

@keyframes mm-pulse-border {
    0%, 100% { border-color: #00ff6a; box-shadow: 0 0 8px rgba(0,255,106,0.3); }
    50%       { border-color: #00a854; box-shadow: 0 0 20px rgba(0,255,106,0.7); }
}
.mm-banner--pulse { animation: mm-pulse-border 1.5s ease-in-out infinite; }

.mm-banner-text  { flex: 1; font-weight: 500; }
.mm-banner-link  { color: inherit; opacity: 0.8; text-decoration: underline; white-space: nowrap; font-size: 0.85rem; }
.mm-banner-link:hover { opacity: 1; }
.mm-banner-close { background: none; border: none; color: inherit; cursor: pointer; opacity: 0.5; font-size: 1rem; padding: 0 0.25rem; }
.mm-banner-close:hover { opacity: 1; }

/* ─── Widget ─────────────────────────────────────────────── */
#mm-widget {
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.mm-widget-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.mm-widget-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #ccc;
    flex: 1;
}

/* Badges */
.mm-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}
.mm-badge--none      { background: #222; color: #666; border: 1px solid #333; }
.mm-badge--early     { background: #2a2410; color: #ffd700; border: 1px solid #8a6d00; }
.mm-badge--confirmed { background: #0d2a1a; color: #00d46a; border: 1px solid #00a854; }
.mm-badge--strong    { background: #0a1a0a; color: #00ff6a; border: 1px solid #00ff6a;
                       box-shadow: 0 0 8px rgba(0,255,106,0.4); }

.mm-score-text { font-size: 1.1rem; font-weight: 700; color: #fff; }
.mm-updated    { font-size: 0.75rem; color: #555; margin-left: auto; }

/* Metrics grid */
.mm-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mm-metric {
    background: #161616;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mm-metric-label { font-size: 0.68rem; color: #555; text-transform: uppercase; letter-spacing: 0.05em; }
.mm-metric-val   { font-size: 0.95rem; font-weight: 600; color: #ccc; }

/* Score balk */
.mm-score-bar-wrap { margin-bottom: 1rem; }
.mm-score-bar {
    position: relative;
    height: 10px;
    background: #1a1a1a;
    border-radius: 5px;
    overflow: visible;
}
.mm-score-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.6s ease, background 0.4s ease;
}
.mm-score-fill--none      { background: #333; }
.mm-score-fill--early     { background: linear-gradient(90deg, #8a6d00, #ffd700); }
.mm-score-fill--confirmed { background: linear-gradient(90deg, #00a854, #00d46a); }
.mm-score-fill--strong    { background: linear-gradient(90deg, #00a854, #00ff6a);
                             box-shadow: 0 0 10px rgba(0,255,106,0.5); }

.mm-score-zones {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 0;
}
.mm-score-zones span {
    position: absolute;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: #444;
}

/* Kleuren helpers */
.mm-val--green { color: #00d46a !important; }
.mm-val--red   { color: #ff4d4d !important; }

/* ─── Index Pakket ───────────────────────────────────────── */
.mm-package {
    margin-top: 1.25rem;
    border-top: 1px solid #222;
    padding-top: 1rem;
}

.mm-package h4 {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #aaa;
}

.mm-pkg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.mm-pkg-table th {
    text-align: left;
    color: #555;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid #222;
}
.mm-pkg-table td {
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid #191919;
    color: #ccc;
}
.mm-pkg-table tr:last-child td { border-bottom: none; }
.mm-pkg-table tr:hover td      { background: #161616; }

.mm-pkg-num    { color: #555; width: 28px; }
.mm-pkg-sym    { color: #fff; }
.mm-pkg-score  { color: #888; }
.mm-pkg-weight { color: #aaa; font-variant-numeric: tabular-nums; }
.mm-pkg-sector { color: #555; font-size: 0.75rem; }
