/**
 * CMC Altcoin Season Index Widget Stylesheet
 */

.cmc-altcoin-season-widget {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 2px;
    padding: 14px 16px;
    max-width: 440px;
    margin: 12px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

.cmc-altcoin-season-widget * {
    box-sizing: border-box;
}

.cmc-altcoin-season-widget .cmc-main-title {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    color: #0f172a;
}

/* Panel cards */
.cmc-altcoin-season-widget .cmc-panel {
    background: #ffffff;
    border: 1px solid #eff2f5;
    border-radius: 2px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.cmc-altcoin-season-widget .cmc-panel:last-child {
    margin-bottom: 0;
}

.cmc-altcoin-season-widget .cmc-panel-title {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

/* Score display — kept LTR so "45 / 100" reads left-to-right */
.cmc-as-score-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
    margin-bottom: 12px;
    direction: ltr;
}

.cmc-as-score {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.cmc-as-score-max {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    padding-bottom: 4px;
}

/* Labels row: Bitcoin Season (right, orange) — Altcoin Season (left, blue) */
.cmc-as-labels-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
}

.cmc-as-lbl-btc {
    color: #f7931a;
}

.cmc-as-lbl-alt {
    color: #3861fb;
}

/* Gradient slider track */
.cmc-as-track {
    position: relative;
    height: 8px;
    border-radius: 2px;
    /* Physical: LEFT = blue (altcoin high score), RIGHT = orange (bitcoin low score) */
    background: linear-gradient(to right, #3861fb 0%, #e2e8f0 50%, #f7931a 100%);
}

/* Draggable dot: left% = (100 - score) positions it physically */
.cmc-as-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #1e293b;
    border: 2px solid #ffffff;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Lists and Rows */
.cmc-altcoin-season-widget .cmc-list {
    display: flex;
    flex-direction: column;
}

.cmc-altcoin-season-widget .cmc-list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cmc-altcoin-season-widget .cmc-list-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cmc-altcoin-season-widget .cmc-list-row:first-child {
    padding-top: 0;
}

.cmc-altcoin-season-widget .cmc-row-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cmc-altcoin-season-widget .cmc-row-date {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
}

/* Badges */
.cmc-altcoin-season-widget .cmc-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    min-width: 44px;
    line-height: 1.4;
    white-space: nowrap;
}

/* Neutral / missing data */
.cmc-altcoin-season-widget .badge-as-neutral {
    background: #f1f5f9;
    color: #64748b;
}

/* Bitcoin Season — orange tones */
.cmc-altcoin-season-widget .badge-as-bitcoin {
    background: #f7931a;
    color: #ffffff;
}

.cmc-altcoin-season-widget .badge-as-mostly-btc {
    background: #fef3e2;
    color: #b45309;
}

/* Altcoin Season — blue tones */
.cmc-altcoin-season-widget .badge-as-mostly-alt {
    background: #eff6ff;
    color: #1d4ed8;
}

.cmc-altcoin-season-widget .badge-as-altcoin {
    background: #3861fb;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 360px) {
    .cmc-altcoin-season-widget .cmc-list-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .cmc-as-score {
        font-size: 26px;
    }
}
