/**
 * A ELITE - EPIC EXPERIENCE CSS
 * Nível CR7 / Elon Musk / CODEBOYS TECHNOLOGY
 *
 * OUTRA DIMENSÃO - Experiência Imersiva VIP
 */

/* ============================================
   CURSOR MÁGICO
   ============================================ */
.elite-js-loaded {
    cursor: auto;
}

.elite-js-loaded * {
    cursor: auto;
}

.elite-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #E93256;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, background 0.2s ease;
    box-shadow: 0 0 20px #E93256, 0 0 40px #E93256, 0 0 60px rgba(233, 50, 86, 0.5);
}

.elite-cursor.hovering {
    transform: translate(-50%, -50%) scale(2);
    background: #D4AF37;
    box-shadow: 0 0 30px #D4AF37, 0 0 60px #D4AF37;
}

.elite-cursor.clicking {
    transform: translate(-50%, -50%) scale(0.5);
}

.elite-cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(233, 50, 86, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.elite-cursor-follower.hovering {
    width: 60px;
    height: 60px;
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.1);
}

.elite-cursor-follower.clicking {
    width: 30px;
    height: 30px;
}

.elite-cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #E93256;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999997;
    transform: translate(-50%, -50%);
}

.elite-click-ripple {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #E93256;
    pointer-events: none;
    z-index: 999996;
    transform: translate(-50%, -50%);
    animation: clickRipple 1s ease-out forwards;
}

@keyframes clickRipple {
    0% {
        width: 10px;
        height: 10px;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* ============================================
   VIP GREETING OVERLAY
   ============================================ */
.vip-greeting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0F0F1A 0%, #1A1A2E 50%, #0F0F1A 100%);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.vip-greeting-overlay.active {
    opacity: 1;
}

.vip-greeting-overlay.exit {
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.vip-greeting-content {
    text-align: center;
    animation: greetingFadeIn 1s ease 0.3s both;
}

@keyframes greetingFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.vip-greeting-logo {
    margin-bottom: 30px;
    animation: logoFloat 3s ease-in-out infinite;
}

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

.vip-logo-img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(233, 50, 86, 0.5));
}

.vip-greeting-stars {
    font-size: 24px;
    color: #D4AF37;
    margin-bottom: 20px;
    animation: starsGlow 2s ease-in-out infinite;
}

.vip-greeting-stars span {
    margin: 0 5px;
    display: inline-block;
    animation: starPulse 1s ease-in-out infinite;
}

.vip-greeting-stars span:nth-child(2) {
    animation-delay: 0.2s;
}

.vip-greeting-stars span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes starsGlow {
    0%, 100% { text-shadow: 0 0 10px #D4AF37; }
    50% { text-shadow: 0 0 30px #D4AF37, 0 0 50px #D4AF37; }
}

.vip-greeting-title {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 10px;
    font-weight: 300;
}

.vip-greeting-name {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #E93256, #FF6B6B, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: nameShine 3s linear infinite;
    background-size: 200% auto;
}

@keyframes nameShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.vip-greeting-subtitle {
    font-size: 14px;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 40px;
}

.vip-greeting-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E93256, transparent);
    margin: 0 auto 40px;
    animation: lineGlow 2s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.5; width: 100px; }
    50% { opacity: 1; width: 150px; }
}

.vip-greeting-enter {
    background: linear-gradient(135deg, #E93256, #FF4D6D);
    border: none;
    color: white;
    padding: 18px 50px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(233, 50, 86, 0.4);
}

.vip-greeting-enter:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 60px rgba(233, 50, 86, 0.6);
}

.vip-greeting-enter i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.vip-greeting-enter:hover i {
    transform: translateX(5px);
}

.vip-greeting-enter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: buttonShine 2s infinite;
}

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

/* ============================================
   EPIC COUNTDOWN - COMPACT VERSION
   ============================================ */
.epic-countdown-compact {
    background: linear-gradient(135deg, rgba(15, 15, 26, 0.95), rgba(26, 26, 46, 0.95));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 0;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.countdown-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    flex-wrap: wrap;
}

.countdown-icon-wrap {
    font-size: 20px;
    animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-10deg); }
    75% { transform: scale(1.1) rotate(10deg); }
}

.countdown-title-compact {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.countdown-end {
    color: #D4AF37;
}

.countdown-units-compact {
    display: flex;
    align-items: center;
    gap: 4px;
}

.countdown-unit-compact {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.countdown-value-compact {
    font-size: 24px;
    font-weight: 700;
    color: white;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 0 15px rgba(233, 50, 86, 0.5);
    min-width: 32px;
    text-align: center;
    transition: all 0.2s ease;
}

.countdown-value-compact.flip {
    transform: scale(0.8);
    opacity: 0.5;
}

.countdown-label-compact {
    font-size: 11px;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.countdown-sep {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.2);
    margin: 0 2px;
    animation: separatorPulse 1s ease-in-out infinite;
}

.countdown-glow-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--elite-primary, #E93256), var(--elite-gold, #D4AF37), var(--elite-primary, #E93256));
    background-size: 200% 100%;
    animation: glowBarMove 3s ease infinite;
}

@keyframes glowBarMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes separatorPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Responsive compact countdown */
@media (max-width: 768px) {
    .countdown-inner {
        padding: 14px 16px;
        gap: 8px;
    }

    .countdown-value-compact {
        font-size: 20px;
        min-width: 26px;
    }

    .countdown-title-compact {
        font-size: 12px;
    }

    .countdown-icon-wrap {
        font-size: 16px;
    }
}

/* Light Mode - Countdown */
[data-theme-version="light"] .epic-countdown-compact {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 246, 250, 0.95));
    border-color: rgba(233, 50, 86, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

[data-theme-version="light"] .countdown-title-compact {
    color: rgba(26, 26, 46, 0.6);
}

[data-theme-version="light"] .countdown-value-compact {
    color: var(--elite-primary, #E93256);
    text-shadow: none;
}

[data-theme-version="light"] .countdown-label-compact {
    color: rgba(26, 26, 46, 0.5);
}

[data-theme-version="light"] .countdown-sep {
    color: rgba(26, 26, 46, 0.2);
}

/* ============================================
   BACKGROUND ANIMADO
   ============================================ */
.elite-bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0F0F1A 0%, #1A1A2E 50%, #0F0F1A 100%);
    overflow: hidden;
}

.elite-bg-animated::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(233, 50, 86, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(1deg); }
    50% { transform: translate(0, 4%) rotate(0deg); }
    75% { transform: translate(-2%, 2%) rotate(-1deg); }
}

/* ============================================
   CARD 3D TILT EFFECTS
   ============================================ */
.card, .card-elite {
    transform-style: preserve-3d;
    will-change: transform;
}

.card-glare {
    transition: background 0.1s ease;
}

/* ============================================
   HOLOGRAPHIC EFFECT
   ============================================ */
.holographic {
    background: linear-gradient(
        135deg,
        rgba(233, 50, 86, 0.1) 0%,
        rgba(212, 175, 55, 0.1) 25%,
        rgba(0, 209, 140, 0.1) 50%,
        rgba(233, 50, 86, 0.1) 75%,
        rgba(212, 175, 55, 0.1) 100%
    );
    background-size: 400% 400%;
    animation: holographicShift 8s ease infinite;
}

@keyframes holographicShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   NEON GLOW TEXT
   ============================================ */
.neon-text {
    color: #E93256;
    text-shadow:
        0 0 5px #E93256,
        0 0 10px #E93256,
        0 0 20px #E93256,
        0 0 40px #E93256;
    animation: neonFlicker 3s ease-in-out infinite;
}

@keyframes neonFlicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    95% { opacity: 0.9; }
    96% { opacity: 1; }
}

.neon-text-gold {
    color: #D4AF37;
    text-shadow:
        0 0 5px #D4AF37,
        0 0 10px #D4AF37,
        0 0 20px #D4AF37,
        0 0 40px #D4AF37;
}

/* ============================================
   GLASS CARD PREMIUM
   ============================================ */
.glass-premium {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.glass-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: left 0.5s ease;
}

.glass-premium:hover::before {
    left: 100%;
}

/* ============================================
   FLOATING ANIMATION
   ============================================ */
.floating {
    animation: floating 4s ease-in-out infinite;
}

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

.floating-slow {
    animation: floating 6s ease-in-out infinite;
}

.floating-fast {
    animation: floating 2s ease-in-out infinite;
}

/* ============================================
   PULSE RING
   ============================================ */
.pulse-ring {
    position: relative;
}

.pulse-ring::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid #E93256;
    border-radius: inherit;
    transform: translate(-50%, -50%);
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* ============================================
   GRADIENT BORDER ANIMATION
   ============================================ */
.gradient-border {
    position: relative;
    background: var(--elite-darker);
    border-radius: 20px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #E93256, #D4AF37, #00D18C, #E93256);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: gradientBorder 4s ease infinite;
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   VIP BADGE ANIMATED
   ============================================ */
.vip-badge-animated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    color: #D4AF37;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.vip-badge-animated::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(212, 175, 55, 0.1),
        transparent
    );
    animation: badgeShine 3s linear infinite;
}

@keyframes badgeShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vip-badge-animated i {
    animation: starSpin 4s linear infinite;
}

@keyframes starSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ============================================
   LOADING SKELETON PREMIUM
   ============================================ */
.skeleton-premium {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    background-size: 200% 100%;
    animation: skeletonShine 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeletonShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   EPIC PRELOADER
   ============================================ */
.elite-preloader-epic {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0F0F1A, #1A1A2E);
    z-index: 99999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.elite-preloader-epic.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo-container {
    position: relative;
    margin-bottom: 40px;
}

.preloader-logo {
    width: 100px;
    height: auto;
    animation: preloaderFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(233, 50, 86, 0.5));
}

@keyframes preloaderFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

.preloader-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    border: 2px solid transparent;
    border-top-color: #E93256;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: preloaderSpin 1s linear infinite;
}

.preloader-ring::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    border-top-color: #D4AF37;
    border-radius: 50%;
    animation: preloaderSpin 1.5s linear infinite reverse;
}

@keyframes preloaderSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.preloader-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 20px;
}

.preloader-dots span {
    display: inline-block;
    animation: preloaderDots 1.4s ease-in-out infinite;
}

.preloader-dots span:nth-child(2) { animation-delay: 0.2s; }
.preloader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes preloaderDots {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .elite-cursor,
    .elite-cursor-follower,
    .elite-cursor-trail {
        display: none !important;
    }

    .elite-js-loaded,
    .elite-js-loaded * {
        cursor: auto !important;
    }

    .countdown-units {
        flex-wrap: wrap;
        gap: 10px;
    }

    .countdown-unit {
        min-width: 70px;
        padding: 15px 15px;
    }

    .countdown-value {
        font-size: 28px;
    }

    .countdown-separator {
        display: none;
    }

    .vip-greeting-name {
        font-size: 32px;
    }

    .vip-greeting-title {
        font-size: 14px;
        letter-spacing: 4px;
    }
}
