/* --- START OF FILE static/shared/credits-widget.css --- */
/* Shared credit widget styling for consistent futuristic look across apps */

.nv-credits-widget {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.85), rgba(20, 30, 60, 0.75));
    border: 1px solid rgba(77, 202, 255, 0.35);
    color: #f5f7ff;
    font-family: 'Space Grotesk', 'Roboto', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    justify-content: center;
}

.nv-credits-widget::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(53, 208, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nv-credits-widget:hover {
    border-color: rgba(53, 208, 255, 0.6);
    box-shadow: 0 0 16px rgba(53, 208, 255, 0.4);
    transform: translateY(-2px);
}

.nv-credits-widget:hover::before {
    opacity: 1;
}

.nv-credits-widget i {
    font-size: 1rem;
    color: #ffcc00;
}

.nv-credits-widget .credits-amount {
    font-weight: 600;
    color: #f5f7ff;
}

.nv-credits-widget .credits-label {
    color: rgba(255, 255, 255, 0.7);
}

/* Credits content wrapper */
.nv-credits-widget .credits-content {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.5s ease;
}

.nv-credits-widget .credits-content.fading-in {
    animation: fadeInCredits 1s ease forwards;
}

/* Plan reveal animation */
.nv-credits-widget .plan-reveal {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(53, 208, 255, 0.15), rgba(143, 123, 255, 0.1));
    border-radius: 20px;
    overflow: hidden;
}

.nv-credits-widget .plan-reveal.animating {
    animation: planRevealPulse 2.5s ease-in-out;
}

.nv-credits-widget .plan-reveal.fading-out {
    animation: fadeOutPlan 1s ease forwards;
}

.nv-credits-widget .plan-reveal .plan-icon {
    margin-right: 6px;
    font-size: 1rem;
    animation: planIconGlow 1.5s ease-in-out infinite;
}

.nv-credits-widget .plan-reveal .plan-label {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #35d0ff, #8f7bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nv-credits-widget .plan-reveal::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: planSweep 2s ease-in-out infinite;
}

@keyframes planRevealPulse {
    0% {
        box-shadow: inset 0 0 10px rgba(53, 208, 255, 0.3);
    }
    50% {
        box-shadow: inset 0 0 25px rgba(53, 208, 255, 0.5), 0 0 15px rgba(143, 123, 255, 0.3);
    }
    100% {
        box-shadow: inset 0 0 10px rgba(53, 208, 255, 0.3);
    }
}

@keyframes planSweep {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

@keyframes planIconGlow {
    0%, 100% {
        color: #35d0ff;
        text-shadow: 0 0 8px rgba(53, 208, 255, 0.5);
    }
    50% {
        color: #8f7bff;
        text-shadow: 0 0 12px rgba(143, 123, 255, 0.6);
    }
}

@keyframes fadeOutPlan {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes fadeInCredits {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Upgrade prompt for Explorer users */
.nv-credits-widget .upgrade-prompt {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 180, 50, 0.95), rgba(255, 120, 50, 0.92));
    border-radius: 20px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    z-index: 10;
    box-shadow: 
        0 0 20px rgba(255, 150, 50, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nv-credits-widget .upgrade-prompt.visible {
    opacity: 1;
    transform: scale(1);
    animation: upgradeGlow 2s ease-in-out infinite;
}

.nv-credits-widget .upgrade-prompt.fading {
    opacity: 0;
    transform: scale(0.9);
}

.nv-credits-widget .upgrade-prompt i {
    font-size: 1rem;
    color: #fff;
    animation: upgradeArrowBounce 1.5s ease-in-out infinite;
}

.nv-credits-widget .upgrade-prompt span {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nv-credits-widget .upgrade-prompt::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: upgradeSweep 2.5s ease-in-out infinite;
}

@keyframes upgradeGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 150, 50, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(255, 150, 50, 0.8),
            0 0 40px rgba(255, 120, 50, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

@keyframes upgradeArrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes upgradeSweep {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nv-credits-widget {
        padding: 6px 12px;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .nv-credits-widget .upgrade-prompt {
        font-size: 0.85rem;
        gap: 6px;
    }
}

/* --- END OF FILE static/shared/credits-widget.css --- */

