/* ===================================
   SHINY TEXT ANIMATION (Text always visible)
   =================================== */
.shiny-text {
    color: #ffffff; /* Text is always white and visible */
    position: relative;
    display: inline-block;
}

.shiny-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 60%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { background-position: 100%; }
    100% { background-position: -100%; }
}

.shiny-text.disabled::after {
    animation: none;
}

/* ===================================
   ELECTRIC BORDER FOR KING OF HILL
   =================================== */
.electric-border-wrapper {
    position: relative;
    padding: 3px;
    border-radius: 20px;
    background: linear-gradient(45deg, #7df9ff, #5227FF, #7df9ff, #5227FF);
    background-size: 400% 400%;
    animation: electricGradient 4s ease infinite;
}

@keyframes electricGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.electric-border-content {
    position: relative;
    background: #1a1a1a;
    border-radius: 18px;
    z-index: 1;
}

.electric-border-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(45deg, #7df9ff, #5227FF, #7df9ff);
    background-size: 400% 400%;
    animation: electricGradient 4s ease infinite;
    filter: blur(10px);
    opacity: 0.6;
    z-index: -1;
}

/* Crown animation for King */
.crown-glow {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 50px;
    animation: crownBounce 2s ease-in-out infinite, crownGlow 2s ease-in-out infinite;
    z-index: 10;
    filter: drop-shadow(0 0 10px gold) drop-shadow(0 0 20px orange);
}

@keyframes crownBounce {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes crownGlow {
    0%, 100% { filter: drop-shadow(0 0 10px gold) drop-shadow(0 0 20px orange); }
    50% { filter: drop-shadow(0 0 20px gold) drop-shadow(0 0 40px orange); }
}

/* ===================================
   ANIMATED PILL NAVIGATION (With proper contrast)
   =================================== */
.nav-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.nav-pill:hover::before {
    opacity: 1;
}

.nav-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-pill span,
.nav-pill .decrypt-text {
    position: relative;
    z-index: 1;
    color: inherit;
}

.nav-pill.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
    color: white !important;
}


/* ===================================
   COIN CARD ENHANCEMENTS
   =================================== */
.trending-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.trending-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.trending-card:hover::before {
    opacity: 1;
    top: -100%;
    left: -100%;
}

.trending-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===================================
   PULSE ANIMATION FOR BUTTONS
   =================================== */
.btn-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* ===================================
   GRADIENT TEXT
   =================================== */
.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* ===================================
   FLOATING ANIMATION
   =================================== */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ===================================
   GLOW EFFECT
   =================================== */
.glow-effect {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.8);
    }
}

/* ===================================
   FADE IN ANIMATIONS
   =================================== */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays for multiple elements */
.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }
.fade-in-up:nth-child(6) { animation-delay: 0.6s; }
.fade-in-up:nth-child(7) { animation-delay: 0.7s; }
.fade-in-up:nth-child(8) { animation-delay: 0.8s; }
.fade-in-up:nth-child(9) { animation-delay: 0.9s; }

/* ===================================
   SHIMMER LOADING EFFECT
   =================================== */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

