/**
 * ============================================
 * 🎯 SUPREME FORECAST STYLING
 * Design Institucional de Nível Supremo
 * Mobile-First & Desktop Optimized
 * ============================================
 */

/* ========== BORDER ANIMATIONS ========== */
@keyframes supreme-forecast-border {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes supreme-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
}

@keyframes supreme-gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ========== BUTTON INTERACTIONS ========== */
.supreme-action-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 15px 40px currentColor,
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.supreme-action-btn:hover .supreme-btn-glow {
    opacity: 1;
}

.supreme-action-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.supreme-btn-blue:hover {
    border-color: rgba(59, 130, 246, 0.7);
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

.supreme-btn-amber:hover {
    border-color: rgba(251, 191, 36, 0.7);
    background: rgba(251, 191, 36, 0.25);
    color: #fde047;
}

/* ========== FORECAST CONTENT CARDS ========== */
.supreme-forecast-card {
    position: relative;
    /* Removed redundant card styling - parent forecast-content-area already provides card visual */
    width: 100%;
    height: 100%;
}

/* Removed ::before effect - no longer needed without card styling */

/* ========== FORECAST VALUE DISPLAY ========== */
.supreme-forecast-value {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ec4899, #f97316, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(236, 72, 153, 0.5);
    animation: supreme-value-pulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes supreme-value-pulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.02);
        filter: brightness(1.2);
    }
}

/* ========== CATEGORY MINI CARDS ========== */
.supreme-mini-category {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.supreme-mini-category::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--category-color, #8b5cf6);
    box-shadow: 0 0 15px var(--category-color, #8b5cf6);
    transition: width 0.4s ease;
}

.supreme-mini-category:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.supreme-mini-category:hover::before {
    width: 8px;
}

.supreme-mini-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--category-gradient, linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05)));
    border: 1.5px solid var(--category-border, rgba(139, 92, 246, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--category-color, #8b5cf6);
    font-size: 1.25rem;
    box-shadow: 0 4px 15px var(--category-glow, rgba(139, 92, 246, 0.3));
    transition: all 0.4s ease;
}

.supreme-mini-category:hover .supreme-mini-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px var(--category-glow, rgba(139, 92, 246, 0.5));
}

.supreme-mini-details {
    flex: 1;
}

.supreme-mini-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--category-color, #8b5cf6);
    margin: 0 0 0.25rem;
    letter-spacing: 0.5px;
}

.supreme-mini-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 10px var(--category-glow, rgba(139, 92, 246, 0.5));
}

/* ========== RESPONSIVE MOBILE ========== */
@media (max-width: 768px) {
    .supreme-forecast-section {
        border-radius: 20px !important;
    }

    .supreme-forecast-section > div {
        padding: 1.5rem !important;
    }

    .supreme-forecast-icon {
        width: 56px !important;
        height: 56px !important;
    }

    .supreme-forecast-icon i {
        font-size: 1.5rem !important;
    }

    .supreme-action-btn {
        padding: 1rem 1.5rem !important;
        font-size: 0.85rem !important;
    }

    .supreme-mini-category {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .supreme-mini-category::before {
        left: 0;
        right: 0;
        top: 0;
        bottom: auto;
        width: 100%;
        height: 3px;
    }

    .supreme-mini-category:hover::before {
        height: 5px;
        width: 100%;
    }

    .supreme-mini-category:hover {
        transform: translateY(-5px);
    }
}

/* ========== LOADING STATE ========== */
.supreme-forecast-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    min-height: 200px;
}

.supreme-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(236, 72, 153, 0.2);
    border-top-color: #ec4899;
    border-radius: 50%;
    animation: supreme-spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes supreme-spin {
    to {
        transform: rotate(360deg);
    }
}

.supreme-loading-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    color: rgba(236, 72, 153, 0.8);
    letter-spacing: 1px;
}

/* ========== GLASSMORPHISM ENHANCEMENTS ========== */
.supreme-glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 2rem;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ========== DESCRIPTION TEXT ========== */
.supreme-forecast-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid rgba(236, 72, 153, 0.5);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ========== GRID LAYOUT FOR CATEGORIES ========== */
.supreme-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
