﻿/* ── [cmc_altcoin_season_2] Altcoin Season Full Dashboard ────────────────── */

.cmc-cas2 {
    font-family: inherit!important;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    direction: rtl;
    width: 100%;
}

.cmc-cas2-error {
    padding: 20px;
    color: #64748b;
    font-size: 13px;
}

/* ── Top: chart + sidebar ── */
.cmc-cas2-top {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 420px;
}

/* ── Chart panel ── */
.cmc-cas2-chart-panel {
    flex: 1 1 0;
    min-width: 0;
    padding: 16px 20px 10px;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cmc-cas2-chart-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl;
    flex-wrap: wrap;
    gap: 8px;
}

.cmc-cas2-chart-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cmc-cas2-chart-badge {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    display: block;
}

.cmc-cas2-badge-score { color: #0f172a; }
.cmc-cas2-badge-mcap  { color: #64748b; font-weight: 500; }

/* Range tabs */
.cmc-cas2-tabs {
    display: flex;
    gap: 4px;
    direction: ltr;
    flex-shrink: 0;
}

.cmc-cas2-tab {
    background: transparent!important;
    border: 1px solid #e2e8f0!important;
    cursor: pointer!important;
    font-size: 11px!important;
    font-weight: 600!important;
    color: #64748b!important;
    padding: 3px 10px!important;
    border-radius: 4px!important;
    transition: all 0.12s!important;
    font-family: inherit!important;
    line-height: 1.4!important;
    white-space: nowrap!important;
}

.cmc-cas2-tab:hover { background: #f8fafc!important; color: #334155!important; }
.cmc-cas2-tab--active { background: #0f172a!important; color: #fff!important; border-color: #0f172a!important; }

/* Chart canvas */
.cmc-cas2-chart-wrap {
    flex: 1;
    position: relative;
    min-height: 280px;
}

.cmc-cas2-chart-wrap canvas { width: 100% !important; height: 100% !important; }

/* Chart footer */
.cmc-cas2-chart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
    font-size: 10px;
    color: #94a3b8;
}

.cmc-cas2-axis-btc { color: #f97316; font-weight: 600; }
.cmc-cas2-axis-alt { color: #f59e0b; font-weight: 600; }
.cmc-cas2-axis-src { color: #94a3b8; }

/* ── Sidebar ── */
.cmc-cas2-sidebar {
    flex: 0 0 230px;
    display: flex;
    flex-direction: column;
    order: -1;
}

/* ── Score card ── */
.cmc-cas2-score-card {
    padding: 16px 14px 14px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
    flex-shrink: 0;
    text-align: center;
}

.cmc-cas2-score-title {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.cmc-cas2-score-num {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.cmc-cas2-score-lbl {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-top: 4px;
    margin-bottom: 10px;
}

/* Score classification colors */
.cmc-cas2-cls-alt-season   .cmc-cas2-score-num { color: #16c784; }
.cmc-cas2-cls-leaning-alt  .cmc-cas2-score-num { color: #93d150; }
.cmc-cas2-cls-neutral      .cmc-cas2-score-num { color: #f0b429; }
.cmc-cas2-cls-leaning-btc  .cmc-cas2-score-num { color: #f97316; }
.cmc-cas2-cls-btc-season   .cmc-cas2-score-num { color: #ea3943; }

/* Score track */
.cmc-cas2-score-track {
    position: relative;
    height: 6px;
    background: linear-gradient(to right, #ea3943, #f97316, #f0b429, #93d150, #16c784);
    border-radius: 3px;
    margin: 0 4px 4px;
}

.cmc-cas2-score-fill {
    display: none; /* dot approach instead */
}

.cmc-cas2-score-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #334155;
    border-radius: 50%;
    pointer-events: none;
}

.cmc-cas2-score-labels {
    display: flex;
    justify-content: space-between;
    margin: 2px 4px 0;
    font-size: 9px;
    color: #94a3b8;
}

/* ── Shared sidebar card ── */
.cmc-cas2-hist-card,
.cmc-cas2-hilo-card {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.cmc-cas2-card-title {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    text-align: right;
}

/* ── Historical values ── */
.cmc-cas2-hist-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #f8fafc;
}

.cmc-cas2-hist-row:last-child { border-bottom: none; }

.cmc-cas2-hist-lbl {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}

.cmc-cas2-hist-na {
    font-size: 11px;
    color: #94a3b8;
}

/* ── Badges ── */
.cmc-cas2-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.cmc-cas2-b-alt-season   { background: #dcfce7; color: #16c784; }
.cmc-cas2-b-leaning-alt  { background: #f0fdf4; color: #16a34a; }
.cmc-cas2-b-neutral      { background: #fefce8; color: #ca8a04; }
.cmc-cas2-b-leaning-btc  { background: #fff7ed; color: #f97316; }
.cmc-cas2-b-btc-season   { background: #fef2f2; color: #ea3943; }

/* ── Hi/Lo card ── */
.cmc-cas2-hilo-row {
    padding: 5px 0;
    border-bottom: 1px solid #f8fafc;
}

.cmc-cas2-hilo-row:last-child { border-bottom: none; }

.cmc-cas2-hilo-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cmc-cas2-hilo-date {
    font-size: 9px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ── Performance section ── */
.cmc-cas2-perf {
    border-top: 1px solid #e2e8f0;
    padding: 18px 20px 24px;
    background: #fafbfc;
}

.cmc-cas2-perf-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
    text-align: right;
}

.cmc-cas2-perf-grid {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* ── Bar rows ── */
.cmc-cas2-bar-row {
    display: flex;
    align-items: center;
    direction: ltr;
    gap: 0;
}

.cmc-cas2-bar-fill {
    height: 22px;
    border-radius: 2px;
    flex-shrink: 0;
    min-width: 2px;
    transition: width 0.4s ease;
}

.cmc-cas2-bar-up  { background: rgba(22,199,132,0.65); }
.cmc-cas2-bar-dn  { background: rgba(234,57,67,0.65); }
.cmc-cas2-bar-btc { background: rgba(245,158,11,0.75); }

.cmc-cas2-bar-label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 8px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.cmc-cas2-pct-up  { color: #16c784; min-width: 60px; text-align: right; }
.cmc-cas2-pct-dn  { color: #ea3943; min-width: 60px; text-align: right; }
.cmc-cas2-pct-btc { color: #f59e0b; min-width: 60px; text-align: right; }

.cmc-cas2-coin-logo {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.cmc-cas2-coin-sym {
    color: #334155;
    font-size: 11px;
    min-width: 36px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .cmc-cas2-top { flex-direction: column; }
    .cmc-cas2-chart-panel { border-right: none; border-bottom: 1px solid #e2e8f0; }
    .cmc-cas2-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .cmc-cas2-score-card {
        flex: 0 0 200px;
        border-left: 1px solid #f1f5f9;
        border-bottom: none;
    }
    .cmc-cas2-hist-card,
    .cmc-cas2-hilo-card { flex: 1 1 160px; }
}

@media (max-width: 640px) {
    .cmc-cas2-sidebar { flex-direction: column; }
    .cmc-cas2-score-card { flex: none; border-left: none; border-bottom: 1px solid #f1f5f9; }
    .cmc-cas2-chart-wrap { min-height: 220px; }
    .cmc-cas2-tabs { flex-wrap: wrap; }
    .cmc-cas2-perf { padding: 14px 12px 18px; }
}
