/* Custom Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3),
                    0 0 40px rgba(99, 102, 241, 0.2),
                    0 0 60px rgba(99, 102, 241, 0.1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.5),
                    0 0 60px rgba(99, 102, 241, 0.3),
                    0 0 90px rgba(99, 102, 241, 0.2);
    }
}

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

@keyframes aurora {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.9;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.5;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
}

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Enhanced Aurora Glassmorphic Background */
body {
    background: linear-gradient(135deg, #0A0A0A 0%, #0F0F0F 50%, #1A1A1A 100%);
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow-x: hidden;
    color: #F1F5F9;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    z-index: -2;
}

/* Aurora Background Blobs */
.orb {
    position: fixed;
    border-radius: 50%;
    backdrop-filter: blur(20px);
    animation: aurora 20s ease-in-out infinite;
    z-index: -1;
}

.orb:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(99, 102, 241, 0.1) 70%);
    animation-delay: 0s;
    animation-duration: 25s;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}

.orb:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 80%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, rgba(139, 92, 246, 0.1) 70%);
    animation-delay: -7s;
    animation-duration: 30s;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.orb:nth-child(3) {
    width: 180px;
    height: 180px;
    top: 80%;
    left: 20%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, rgba(16, 185, 129, 0.1) 70%);
    animation-delay: -14s;
    animation-duration: 35s;
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.3);
}

.orb:nth-child(4) {
    width: 120px;
    height: 120px;
    top: 30%;
    left: 70%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, rgba(6, 182, 212, 0.05) 70%);
    animation-delay: -21s;
    animation-duration: 40s;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.3);
}

.orb:nth-child(5) {
    width: 160px;
    height: 160px;
    top: 70%;
    left: 60%;
    background: radial-gradient(circle, rgba(245, 101, 101, 0.3) 0%, rgba(245, 101, 101, 0.05) 70%);
    animation-delay: -28s;
    animation-duration: 45s;
    box-shadow: 0 0 30px rgba(245, 101, 101, 0.3);
}

/* Glassmorphic Elements */
.glass-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 20px rgba(99, 102, 241, 0.1);
    transform: translateY(-5px);
}

.glass-nav {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.glass-button {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 15px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-button:hover {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    box-shadow: 
        0 6px 20px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 15px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.glass-button-secondary {
    background: rgba(16, 16, 16, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.glass-button-secondary:hover {
    background: rgba(16, 16, 16, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Glow Effects */
.glow-text {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.glow-border {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Custom Classes */
.gradient-bg {
    background: linear-gradient(135deg, #3B82F6 0%, #4F46E5 100%);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .gradient-bg {
        background: linear-gradient(135deg, #3B82F6 0%, #4F46E5 100%);
    }
    
    .orb {
        display: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(16, 16, 16, 0.3);
    backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

/* Focus States */
button:focus,
a:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Smooth Transitions */

/* Game selection dropdown styles */
.game-image-box {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    background: rgba(16, 16, 16, 0.5);
}

/* Form input improvements */
.glass-input:focus {
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.glass-input.border-green-accent {
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Radio button improvements */
input[type="radio"]:checked + label {
    color: #6366F1;
}

input[type="radio"]:checked {
    border-color: #6366F1;
    background-color: #6366F1;
}

/* Select dropdown improvements */
select.glass-input option {
    background: rgba(16, 16, 16, 0.9);
    color: #E2E8F0;
}

select.glass-input option:hover {
    background: rgba(99, 102, 241, 0.2);
}

/* Form validation visual feedback */
.form-valid {
    border-color: rgba(16, 185, 129, 0.8) !important;
}

.form-invalid {
    border-color: rgba(239, 68, 68, 0.8) !important;
}

/* Smooth transitions for all form elements */
input, textarea, select {
    transition: all 0.2s ease;
}

.game-image-box:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.game-image-box img {
    transition: transform 0.3s ease;
    object-position: top center;
}

.game-image-box:hover img {
    transform: scale(1.05);
}

.game-image-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.game-image-box:hover::before {
    transform: translateX(100%);
}

.game-option input[type="checkbox"]:checked + label .game-image-box {
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3), 0 8px 25px rgba(0, 0, 0, 0.3);
}

.game-option input[type="checkbox"]:checked + label .game-image-box::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: rgba(99, 102, 241, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Text Colors for New Design System */
.text-glass {
    color: #F8FAFC;
}

.text-glass-secondary {
    color: #E2E8F0;
}

.text-glass-muted {
    color: #94A3B8;
}

/* Border Colors */
.border-glass {
    border-color: rgba(255, 255, 255, 0.1);
}

.border-glass-hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Background Overlays */
.bg-glass-overlay {
    background: rgba(16, 16, 16, 0.4);
    backdrop-filter: blur(12px);
}

/* Pulse Animation for Interactive Elements */
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Glassmorphic Input Fields */
.glass-input {
    background: rgba(16, 16, 16, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #F8FAFC;
}

.glass-input:focus {
    background: rgba(16, 16, 16, 0.7);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.glass-input::placeholder {
    color: #94A3B8;
}

/* New Accent Colors */
.text-blue-accent {
    color: #6366F1;
}

.bg-blue-accent {
    background-color: #6366F1;
}

.text-indigo-accent {
    color: #8B5CF6;
}

.text-green-accent {
    color: #10B981;
}

.bg-green-accent {
    background-color: #10B981;
}

.text-red-accent {
    color: #EF4444;
}

.bg-red-accent {
    background-color: #EF4444;
}

.text-cyan-accent {
    color: #06B6D4;
}

.text-amber-accent {
    color: #F59E0B;
}

.bg-amber-accent {
    background-color: #F59E0B;
}

/* Success and Danger Colors */
.text-success {
    color: #10B981;
}

.text-purple-accent {
    color: #8B5CF6;
}

.bg-purple-accent {
    background-color: #8B5CF6;
}

.text-error {
    color: #EF4444;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Modal and Form Styles */
.glass-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #E5E7EB;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: #3B82F6;
    background: rgba(255, 255, 255, 0.15);
}

.glass-input::placeholder {
    color: rgba(229, 231, 235, 0.6);
}

.glass-button-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #E5E7EB;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-button-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Modal animations */
.modal-enter {
    opacity: 0;
    transform: scale(0.9);
}

.modal-enter-active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-exit {
    opacity: 1;
    transform: scale(1);
}

.modal-exit-active {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Voting options styling */
.voting-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voting-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.voting-option.selected {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3B82F6;
}

/* Progress bar for poll results */
.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    height: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #3B82F6, #1D4ED8);
    height: 100%;
    transition: width 0.3s ease;
}

/* Enhanced glassmorphic effects */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(8px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

/* Hover effects for glass cards */
.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Enhanced button hover effects */
.glass-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.glass-button-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Voting bar animations */
@keyframes votePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.vote-bar-animate {
    animation: votePulse 2s ease-in-out infinite;
}

/* Enhanced glass borders */
.glass-border {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* Gradient text effects */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Text shadow utilities for better readability */
.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.text-shadow {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.text-shadow-md {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-shadow-lg {
    text-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.2);
}

.text-danger {
    color: #EF4444;
} 