/* CoinRemark Fear & Greed Meter Styles */
.coinremark-fear-greed-meter {
    font-family: inherit;
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}



@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Dark mode support */
.darkmode--activated .coinremark-fear-greed-meter {
    background: linear-gradient(135deg, #152401 0%, #051403 100%);
    color: #e9fbdf;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.darkmode--activated .coinremark-fear-greed-meter::before {
    background: linear-gradient(90deg, #A3FF00 0%, #D4FF87 50%, #A3FF00 100%);
}

/* Size variants */
.coinremark-fear-greed-meter.small {
    padding: 15px;
    max-width: 400px;
}

.coinremark-fear-greed-meter.medium {
    padding: 20px;
    max-width: 500px;
}

.coinremark-fear-greed-meter.large {
    padding: 30px;
    max-width: 600px;
}

/* Label */
.fear-greed-label {
    text-align: center;
    margin-bottom: 20px;
}

.fear-greed-label h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    font-family: 'Hanken'
}

.darkmode--activated .fear-greed-label h3 {
    color: #e9fbdf;
    -webkit-text-fill-color: #e9fbdf;
}

/* Container */
.fear-greed-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Meter wrapper */
.fear-greed-meter-wrapper {
    position: relative;
}

/* Meter background */
.fear-greed-meter-background {
    height: 24px;
    background: linear-gradient(90deg,
        #ff3b30 0%, #ff6b35 25%,  /* Extreme Fear - Red */
        #ff9500 25%, #ffcc00 45%, /* Fear - Orange/Yellow */
        #ffcc00 45%, #34c759 55%, /* Neutral - Yellow/Green */
        #34c759 55%, #30d158 75%, /* Greed - Green */
        #30d158 75%, #00c853 100%  /* Extreme Greed - Dark Green */
    );
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Meter fill animation */
.fear-greed-meter-fill {
    height: 100%;
    border-radius: 12px;
    position: relative;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-fill 2s ease-in-out infinite;
}

.fear-greed-meter-fill.extreme-fear {
    background: linear-gradient(90deg, #ff3b30, #ff6b35);
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.4);
}

.fear-greed-meter-fill.fear {
    background: linear-gradient(90deg, #ff9500, #ffcc00);
    box-shadow: 0 0 20px rgba(255, 149, 0, 0.4);
}

.fear-greed-meter-fill.neutral {
    background: linear-gradient(90deg, #ffcc00, #34c759);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
}

.fear-greed-meter-fill.greed {
    background: linear-gradient(90deg, #34c759, #30d158);
    box-shadow: 0 0 20px rgba(52, 199, 89, 0.4);
}

.fear-greed-meter-fill.extreme-greed {
    background: linear-gradient(90deg, #30d158, #00c853);
    box-shadow: 0 0 20px rgba(48, 209, 88, 0.4);
}

@keyframes pulse-fill {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Meter indicator */
.fear-greed-meter-indicator {
    position: absolute;
    top: -12px;
    width: 8px;
    height: 48px;
    background: #374151;
    border-radius: 4px;
    transform: translateX(-50%);
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(55, 65, 81, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: indicator-glow 2s ease-in-out infinite;
    z-index: 10;
}

.fear-greed-meter-indicator::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 28px;
    height: 28px;
    background: #374151;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 0 25px rgba(55, 65, 81, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fear-greed-meter-indicator::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #374151;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.darkmode--activated .fear-greed-meter-indicator::before {
    border-color: #152401;
}

@keyframes indicator-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(55, 65, 81, 0.4), 0 0 35px rgba(55, 65, 81, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(55, 65, 81, 0.6), 0 0 50px rgba(55, 65, 81, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Scale labels */
.fear-greed-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scale-label {
    text-align: center;
    flex: 1;
    padding: 0 4px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scale-label.extreme-fear { color: #666; }
.scale-label.fear { color: #666; }
.scale-label.neutral { color: #666; }
.scale-label.greed { color: #666; }
.scale-label.extreme-greed { color: #666; }

.darkmode--activated .fear-greed-scale {
    color: #cccccc;
}

.darkmode--activated .scale-label {
    color: #cccccc;
}

/* Info section */
.fear-greed-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Value display */
.fear-greed-value {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

/* Classification display */
.fear-greed-classification {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.value-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    animation: number-pulse 3s ease-in-out infinite;
}

.darkmode--activated .value-number {
    color: #e9fbdf;
    -webkit-text-fill-color: #e9fbdf;
}

@keyframes number-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.value-classification {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: classification-fade 2s ease-in-out infinite;
}

.value-classification.extreme-fear {
    background: rgba(255, 59, 48, 0.15);
    color: #d32f2f;
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.value-classification.fear {
    background: rgba(255, 149, 0, 0.15);
    color: #e65100;
    border: 1px solid rgba(255, 149, 0, 0.3);
}

.value-classification.neutral {
    background: rgba(255, 193, 7, 0.15);
    color: #f57c00;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.value-classification.greed {
    background: rgba(52, 199, 89, 0.15);
    color: #2e7d32;
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.value-classification.extreme-greed {
    background: rgba(0, 200, 83, 0.15);
    color: #1b5e20;
    border: 1px solid rgba(0, 200, 83, 0.3);
}

@keyframes classification-fade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}



/* Error state */
.coinremark-fear-greed-error {
    text-align: center;
    padding: 20px;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border-radius: 8px;
    font-weight: 500;
}

/* Loading animation */
.fear-greed-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.fear-greed-loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid #374151;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .coinremark-fear-greed-meter {
        padding: 15px;
        margin: 10px auto;
    }

    .fear-greed-label h3 {
        font-size: 1.3rem;
    }

    .value-number {
        font-size: 2rem;
    }

    .fear-greed-scale {
        font-size: 0.8rem;
    }

    .fear-greed-meter-background {
        height: 20px;
        border-radius: 10px;
    }

    .fear-greed-meter-indicator {
        height: 36px;
    }

    .fear-greed-meter-indicator::before {
        width: 14px;
        height: 14px;
        top: -5px;
        left: -5px;
    }
}

@media (max-width: 480px) {
    .coinremark-fear-greed-meter.small {
        padding: 10px;
    }

    .fear-greed-label h3 {
        font-size: 1.1rem;
    }

    .value-number {
        font-size: 1.8rem;
    }

    .value-classification {
        font-size: 1rem;
        padding: 4px 8px;
    }

    .fear-greed-scale {
        font-size: 0.75rem;
    }
}