/* Altcoin Season Tracker Styles - Properly Named Classes */

/* Card Container */
.insight-card[data-card="altcoin-season"] {
    background: rgba(31, 33, 40, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

/* Dynamic border color based on season */
.insight-card[data-card="altcoin-season"].bitcoin-season {
    border-color: rgba(255, 153, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.1);
}

.insight-card[data-card="altcoin-season"].altcoin-season {
    border-color: rgba(14, 203, 129, 0.3);
    box-shadow: 0 0 20px rgba(14, 203, 129, 0.1);
}

/* Header Styling */
.insight-card[data-card="altcoin-season"] .card-title {
    font-size: 10px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
}

.insight-card[data-card="altcoin-season"] .header-left {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

.insight-card[data-card="altcoin-season"] #altcoin-season-index {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.insight-card[data-card="altcoin-season"] #altcoin-season-change {
    font-size: 12px;
    font-weight: 500;
}

/* Season Status */
.altcoin-season-status {
    text-align: center;
    margin: 8px 0;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.altcoin-season-status .status-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    opacity: 0.9;
}

/* Dynamic status colors */
.altcoin-season-status.bitcoin {
    background: rgba(255, 153, 0, 0.1);
}

.altcoin-season-status.bitcoin .status-text {
    color: #ff9900;
    text-shadow: 0 1px 2px rgba(255, 153, 0, 0.2);
}

.altcoin-season-status.altcoin {
    background: rgba(14, 203, 129, 0.1);
}

.altcoin-season-status.altcoin .status-text {
    color: #0ecb81;
    text-shadow: 0 1px 2px rgba(14, 203, 129, 0.2);
}

/* Alt Building status - between neutral and full altcoin season */
.altcoin-season-status.alt_building {
    background: rgba(14, 203, 129, 0.06);
}

.altcoin-season-status.alt_building .status-text {
    color: #10b981;
    background: rgba(0, 0, 0, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Neutral/Transition status styling for better contrast and consistency */
.altcoin-season-status.neutral {
    background: none !important;
    background-color: transparent !important;
}

.altcoin-season-status.neutral .status-text {
    color: #60a5fa;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    background: none !important;
    background-color: transparent !important;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Main Progress Bar Container */
.altcoin-season-progress-container {
    margin: 12px 0;
}

.altcoin-season-progress-track {
    position: relative;
    height: 20px;
    background: linear-gradient(to right, 
        rgba(255, 80, 80, 0.4) 0%, 
        rgba(255, 80, 80, 0.4) 25%,
        rgba(255, 193, 7, 0.4) 25%,
        rgba(255, 193, 7, 0.4) 75%,
        rgba(14, 203, 129, 0.4) 75%,
        rgba(14, 203, 129, 0.4) 100%
    );
    border-radius: 10px;
    overflow: hidden;
    margin: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.altcoin-season-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #ffdc32; /* Solid saturated yellow for current 58% position (transition zone) */
    border-radius: 10px;
    transition: width 0.5s ease, background-color 0.3s ease;
    width: 58%;
    box-shadow: 0 0 8px rgba(255, 220, 50, 0.3);
}

.altcoin-season-progress-marker {
    position: absolute;
    top: -2px;
    width: 4px;
    height: 24px;
    background: #fff;
    border-radius: 2px;
    left: 51%;
    transform: translateX(-50%);
    transition: left 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.altcoin-season-threshold {
    position: absolute;
    top: -20px;
    transform: translateX(-50%);
}

.altcoin-season-threshold .threshold-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
}

/* Season Labels */
.altcoin-season-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.altcoin-season-label {
    font-size: 9px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.altcoin-season-label.bitcoin {
    color: #ff5050;
}

.altcoin-season-label.neutral {
    color: #f59e0b !important;  /* Orange text */
    background: none !important;  /* Remove any background */
    background-color: transparent !important;
}

/* Extra specificity to override any conflicting styles */
.insight-card[data-card="altcoin-season"] .altcoin-season-label.neutral,
.altcoin-season-labels .altcoin-season-label.neutral,
span.altcoin-season-label.neutral {
    color: #f59e0b !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

.altcoin-season-label.altcoin {
    color: #0ecb81;
}

/* Secondary Metrics */
.altcoin-season-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.altcoin-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
}

.altcoin-metric-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    min-width: 110px;
}

.altcoin-metric-bar-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.altcoin-metric-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.altcoin-metric-bar-fill {
    height: 100%;
    background: #ff9900;
    transition: width 0.3s ease;
    width: 48.5%;
    border-radius: 3px;
}

.altcoin-metric-bar-fill.momentum {
    background: linear-gradient(to right, #ff5050, #0ecb81);
}

.altcoin-metric-value {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    min-width: 40px;
    text-align: right;
}

/* Historical Context */
.altcoin-season-context {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 8px;
}

.altcoin-context-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.altcoin-context-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
}

.altcoin-context-value {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
}

.altcoin-season-progress-marker.threshold-crossed {
    animation: pulse 2s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .insight-card[data-card="altcoin-season"] #altcoin-season-index {
        font-size: 14px;
    }
    
    .altcoin-metric-label {
        font-size: 8px;
        min-width: 90px;
    }
    
    .altcoin-season-progress-track {
        height: 16px;
    }
    
    .altcoin-season-progress-marker {
        height: 20px;
    }
}

@media (max-width: 480px) {
    .insight-card[data-card="altcoin-season"] .card-title {
        font-size: 9px !important;
    }
    
    .insight-card[data-card="altcoin-season"] #altcoin-season-index {
        font-size: 12px;
    }
    
    .altcoin-season-metrics {
        gap: 6px;
    }
    
    .altcoin-metric-label {
        min-width: 80px;
    }
    
    .altcoin-context-label,
    .altcoin-context-value {
        font-size: 8px;
    }
}

/* Remove old whale activity styles */
.whale-drivers,
.asset-flows,
.asset-flow,
.flow-indicator,
.bidirectional-bar,
.bar-center,
.bar-fill,
.flow-amount,
.whale-intensity,
.intensity-label,
.intensity-track,
.intensity-fill {
    display: none !important;
}