/* ========================================
   VivoMusic - Emoji Color Overlay System
   Color directly ON the emoji using background-clip
   ======================================== */

/*
   USAGE:
   <span class="eco eco-purple">🎵</span>
   <span class="eco eco-green eco-lg">🏠</span>
   
   This creates a colored overlay ON the emoji itself,
   not behind it. The emoji becomes the colored icon.
*/

/* ============ BASE ============ */
.eco {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    vertical-align: middle;
    font-weight: bold;
    line-height: 1;
    position: relative;
    
    /* THE MAGIC - Color clips to emoji shape */
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    
    /* Background size for animation */
    background-size: 300% 300%;
    
    /* Smooth transitions */
    transition: all 0.4s ease;
    
    /* Shadow for depth */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    
    cursor: inherit;
    user-select: none;
}

/* ============ SIZES ============ */
.eco-sm  { width: 26px; height: 26px; font-size: 15px; }
.eco-md  { width: 38px; height: 38px; font-size: 22px; }
.eco-lg  { width: 52px; height: 52px; font-size: 30px; }
.eco-xl  { width: 70px; height: 70px; font-size: 42px; }
.eco-xxl { width: 100px; height: 100px; font-size: 60px; }

/* ============ COLORS (Single color gradients) ============ */

/* Green */
.eco-green {
    background-image: linear-gradient(135deg, #22c55e, #4ade80, #22c55e);
    background-size: 300% 300%;
}
.eco-green:hover,
a:hover .eco-green {
    animation: ecoShift 2s ease infinite;
    filter: drop-shadow(0 4px 12px rgba(34, 197, 94, 0.4));
    transform: scale(1.1);
}

/* Blue */
.eco-blue {
    background-image: linear-gradient(135deg, #3b82f6, #60a5fa, #3b82f6);
    background-size: 300% 300%;
}
.eco-blue:hover,
a:hover .eco-blue {
    animation: ecoShift 2s ease infinite;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.4));
    transform: scale(1.1);
}

/* Red */
.eco-red {
    background-image: linear-gradient(135deg, #ef4444, #f87171, #ef4444);
    background-size: 300% 300%;
}
.eco-red:hover,
a:hover .eco-red {
    animation: ecoShift 2s ease infinite;
    filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.4));
    transform: scale(1.1);
}

/* Yellow/Gold */
.eco-yellow {
    background-image: linear-gradient(135deg, #eab308, #facc15, #eab308);
    background-size: 300% 300%;
}
.eco-yellow:hover,
a:hover .eco-yellow {
    animation: ecoShift 2s ease infinite;
    filter: drop-shadow(0 4px 12px rgba(234, 179, 8, 0.5));
    transform: scale(1.1);
}

/* Purple */
.eco-purple {
    background-image: linear-gradient(135deg, #8b5cf6, #a78bfa, #8b5cf6);
    background-size: 300% 300%;
}
.eco-purple:hover,
a:hover .eco-purple {
    animation: ecoShift 2s ease infinite;
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.4));
    transform: scale(1.1);
}

/* Orange */
.eco-orange {
    background-image: linear-gradient(135deg, #f97316, #fb923c, #f97316);
    background-size: 300% 300%;
}
.eco-orange:hover,
a:hover .eco-orange {
    animation: ecoShift 2s ease infinite;
    filter: drop-shadow(0 4px 12px rgba(249, 115, 22, 0.4));
    transform: scale(1.1);
}

/* Pink */
.eco-pink {
    background-image: linear-gradient(135deg, #ec4899, #f472b6, #ec4899);
    background-size: 300% 300%;
}
.eco-pink:hover,
a:hover .eco-pink {
    animation: ecoShift 2s ease infinite;
    filter: drop-shadow(0 4px 12px rgba(236, 72, 153, 0.4));
    transform: scale(1.1);
}

/* Cyan */
.eco-cyan {
    background-image: linear-gradient(135deg, #06b6d4, #22d3ee, #06b6d4);
    background-size: 300% 300%;
}
.eco-cyan:hover,
a:hover .eco-cyan {
    animation: ecoShift 2s ease infinite;
    filter: drop-shadow(0 4px 12px rgba(6, 182, 212, 0.4));
    transform: scale(1.1);
}

/* Teal */
.eco-teal {
    background-image: linear-gradient(135deg, #14b8a6, #2dd4bf, #14b8a6);
    background-size: 300% 300%;
}
.eco-teal:hover,
a:hover .eco-teal {
    animation: ecoShift 2s ease infinite;
    filter: drop-shadow(0 4px 12px rgba(20, 184, 166, 0.4));
    transform: scale(1.1);
}

/* Indigo */
.eco-indigo {
    background-image: linear-gradient(135deg, #6366f1, #818cf8, #6366f1);
    background-size: 300% 300%;
}
.eco-indigo:hover,
a:hover .eco-indigo {
    animation: ecoShift 2s ease infinite;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
    transform: scale(1.1);
}

/* Rose */
.eco-rose {
    background-image: linear-gradient(135deg, #f43f5e, #fb7185, #f43f5e);
    background-size: 300% 300%;
}
.eco-rose:hover,
a:hover .eco-rose {
    animation: ecoShift 2s ease infinite;
    filter: drop-shadow(0 4px 12px rgba(244, 63, 94, 0.4));
    transform: scale(1.1);
}

/* Amber */
.eco-amber {
    background-image: linear-gradient(135deg, #f59e0b, #fbbf24, #f59e0b);
    background-size: 300% 300%;
}
.eco-amber:hover,
a:hover .eco-amber {
    animation: ecoShift 2s ease infinite;
    filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.5));
    transform: scale(1.1);
}

/* Lime */
.eco-lime {
    background-image: linear-gradient(135deg, #84cc16, #a3e635, #84cc16);
    background-size: 300% 300%;
}
.eco-lime:hover,
a:hover .eco-lime {
    animation: ecoShift 2s ease infinite;
    filter: drop-shadow(0 4px 12px rgba(132, 204, 22, 0.4));
    transform: scale(1.1);
}

/* Sky */
.eco-sky {
    background-image: linear-gradient(135deg, #0ea5e9, #38bdf8, #0ea5e9);
    background-size: 300% 300%;
}
.eco-sky:hover,
a:hover .eco-sky {
    animation: ecoShift 2s ease infinite;
    filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.4));
    transform: scale(1.1);
}

/* White */
.eco-white {
    background-image: linear-gradient(135deg, #ffffff, #e2e8f0, #ffffff);
    background-size: 300% 300%;
}
.eco-white:hover,
a:hover .eco-white {
    animation: ecoShift 2s ease infinite;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
    transform: scale(1.1);
}

/* Rainbow (multicolor) */
.eco-rainbow {
    background-image: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400% 400%;
    animation: ecoRainbow 4s ease infinite;
}
.eco-rainbow:hover,
a:hover .eco-rainbow {
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.5));
    transform: scale(1.1);
}

@keyframes ecoRainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============ ANIMATION ============ */
@keyframes ecoShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============ EFFECTS ============ */

/* Glow effect */
.eco-glow {
    animation: ecoGlowPulse 2s ease-in-out infinite;
}
@keyframes ecoGlowPulse {
    0%, 100% { filter: drop-shadow(0 0 5px currentColor); }
    50% { filter: drop-shadow(0 0 20px currentColor); }
}

/* Pulse effect */
.eco-pulse {
    animation: ecoPulse 1.5s ease-in-out infinite;
}
@keyframes ecoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Bounce */
.eco-bounce {
    animation: ecoBounce 0.8s ease-in-out infinite;
}
@keyframes ecoBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Spin */
.eco-spin {
    animation: ecoSpin 4s linear infinite;
}
@keyframes ecoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Float */
.eco-float {
    animation: ecoFloat 3s ease-in-out infinite;
}
@keyframes ecoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ============ ACTIVE STATE ============ */
.vm-nav-link.active .eco,
.vm-tab-btn.active .eco {
    filter: drop-shadow(0 0 15px currentColor) brightness(1.3);
    transform: scale(1.05);
}

/* ============ WITHOUT ANIMATION ============ */
.eco-static {
    animation: none !important;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .eco-xl { width: 56px; height: 56px; font-size: 32px; }
    .eco-xxl { width: 72px; height: 72px; font-size: 44px; }
}