/**
 * Enhanced Gradients & Glow Effects
 * Dynamic backgrounds and neon effects for premium feel
 */

/* ===================================
   ANIMATED GRADIENTS
   =================================== */

/* Gradient animation keyframes */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Primary gradient (Cyan → Blue) */
.gradient-primary {
    background: linear-gradient(135deg, #00f3ff 0%, #0066ff 100%);
}

/* Animated gradient variant */
.gradient-animated {
    background: linear-gradient(270deg, #00f3ff, #0066ff, #d946ef);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

/* Accent gradient (Cyan → Purple) */
.gradient-accent {
    background: linear-gradient(135deg, #00f3ff 0%, #d946ef 100%);
}

/* Success gradient (Green) */
.gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Warning gradient (Orange) */
.gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Error gradient (Red) */
.gradient-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Glass gradient */
.gradient-glass {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================================
   GRADIENT TEXT
   =================================== */

.text-gradient {
    background: linear-gradient(135deg, #00f3ff 0%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #00f3ff 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated gradient text */
.text-gradient-animated {
    background: linear-gradient(270deg, #00f3ff, #d946ef, #f59e0b);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

/* ===================================
   GLOW EFFECTS
   =================================== */

/* Cyan glow */
.glow-cyan {
    box-shadow:
        0 0 10px rgba(0, 243, 255, 0.3),
        0 0 20px rgba(0, 243, 255, 0.2),
        0 0 30px rgba(0, 243, 255, 0.1);
}

.glow-cyan:hover {
    box-shadow:
        0 0 15px rgba(0, 243, 255, 0.5),
        0 0 30px rgba(0, 243, 255, 0.3),
        0 0 45px rgba(0, 243, 255, 0.2);
}

/* Blue glow */
.glow-blue {
    box-shadow:
        0 0 10px rgba(0, 102, 255, 0.3),
        0 0 20px rgba(0, 102, 255, 0.2);
}

/* Purple glow */
.glow-purple {
    box-shadow:
        0 0 10px rgba(217, 70, 239, 0.3),
        0 0 20px rgba(217, 70, 239, 0.2);
}

/* Green glow */
.glow-green {
    box-shadow:
        0 0 10px rgba(16, 185, 129, 0.3),
        0 0 20px rgba(16, 185, 129, 0.2);
}

/* Pulsating glow */
.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow:
            0 0 10px rgba(0, 243, 255, 0.3),
            0 0 20px rgba(0, 243, 255, 0.2);
    }

    50% {
        box-shadow:
            0 0 20px rgba(0, 243, 255, 0.5),
            0 0 40px rgba(0, 243, 255, 0.3),
            0 0 60px rgba(0, 243, 255, 0.2);
    }
}

/* ===================================
   BORDER GRADIENTS
   =================================== */

/* Gradient border using pseudo-element */
.border-gradient {
    position: relative;
    background: rgba(10, 14, 39, 0.8);
    border-radius: 12px;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #00f3ff, #0066ff);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Animated border gradient */
.border-gradient-animated {
    position: relative;
    background: rgba(10, 14, 39, 0.8);
    border-radius: 12px;
}

.border-gradient-animated::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(270deg, #00f3ff, #d946ef, #f59e0b);
    background-size: 400% 400%;
    animation: gradientShift 6s ease infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ===================================
   NEON EFFECTS
   =================================== */

/* Neon text */
.text-neon {
    color: #00f3ff;
    text-shadow:
        0 0 5px #00f3ff,
        0 0 10px #00f3ff,
        0 0 20px #00f3ff,
        0 0 40px #0066ff;
}

.text-neon:hover {
    text-shadow:
        0 0 10px #00f3ff,
        0 0 20px #00f3ff,
        0 0 30px #00f3ff,
        0 0 50px #0066ff,
        0 0 70px #0066ff;
}

/* Neon border */
.border-neon {
    border: 2px solid #00f3ff;
    box-shadow:
        0 0 5px #00f3ff,
        0 0 10px #00f3ff,
        inset 0 0 5px #00f3ff;
}

/* ===================================
   GLASS MORPHISM EFFECTS
   =================================== */

/* Enhanced glass card */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Frosted glass */
.glass-frosted {
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Glass with gradient border */
.glass-gradient {
    background: rgba(10, 14, 39, 0.6);
    backdrop-filter: blur(12px);
    position: relative;
    border-radius: 12px;
}

.glass-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(0, 243, 255, 0.5),
            rgba(0, 102, 255, 0.3));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ===================================
   SHINE EFFECT
   =================================== */

/* Shine animation */
@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shine 3s infinite;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

/* Quick gradient backgrounds */
.bg-gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bg-gradient-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.bg-gradient-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Glow intensities */
.glow-sm {
    box-shadow: 0 0 5px var(--accent-glow);
}

.glow-md {
    box-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
}

.glow-lg {
    box-shadow: 0 0 15px var(--accent-glow), 0 0 30px var(--accent-glow), 0 0 45px var(--accent-glow);
}