/**
 * Fear and Greed Index Widget Styles
 */

.fear-greed-widget {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.fear-greed-widget:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.fear-greed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fear-greed-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.fear-greed-icon {
    font-size: 1.2rem;
}

.fear-greed-trend {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.fear-greed-trend.positive {
    color: #16c784;
    background: rgba(22, 199, 132, 0.1);
}

.fear-greed-trend.negative {
    color: #ea3943;
    background: rgba(234, 57, 67, 0.1);
}

.fear-greed-trend.neutral {
    color: var(--text-secondary);
    background: var(--surface-hover);
}

.fear-greed-gauge-container {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 8px;
}

.fear-greed-gauge {
    width: 100%;
    height: auto;
}

.fear-greed-gauge .gauge-label {
    font-size: 10px;
    font-weight: 500;
}

.fear-greed-value-container {
    margin-bottom: 16px;
}

.fear-greed-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.fear-greed-classification {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fear-greed-history {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.fear-greed-history-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.fear-greed-sparkline {
    width: 100%;
    height: 30px;
}

.fear-greed-unavailable {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 40px 0;
}

.fear-greed-error .fear-greed-title {
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fear-greed-widget {
        padding: 16px;
    }

    .fear-greed-value {
        font-size: 2rem;
    }

    .fear-greed-gauge-container {
        max-width: 160px;
    }
}

/* Animation for the needle */
@keyframes needle-bounce {

    0%,
    100% {
        transform-origin: center bottom;
    }

    50% {
        transform: rotate(2deg);
    }
}

.fear-greed-gauge g {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}