/* Custom styles for Youth Empowerment CTF */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

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

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #06b6d4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0891b2;
}

/* Form inputs */
input:focus, textarea:focus, select:focus {
    outline: none;
    ring: 2px solid #06b6d4;
}

/* Challenge cards */
.challenge-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.challenge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 1.875rem;
    }
    
    .grid {
        gap: 1rem;
    }
}

/* Footer fix */
footer {
    margin-top: auto;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Settings page specific fixes */
@media (max-width: 768px) {
    .setting-section {
        padding: 1.25rem;
    }
    
    .verification-code-input {
        font-size: 1.25rem;
        letter-spacing: 2px;
    }
    
    .flex.gap-3 {
        flex-direction: column;
    }
    
    .flex.gap-3 button {
        width: 100%;
    }
}

/* Card hover effects */
.hover-glow:hover {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}

/* Team member cards */
.team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -15px rgba(6, 182, 212, 0.2);
}

/* Submit button styles */
.submit-flag-btn {
    transition: all 0.2s ease;
}

.submit-flag-btn:hover {
    transform: scale(1.05);
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

/* Mobile menu animations */
@media (max-width: 768px) {
    .mobile-menu {
        transition: transform 0.3s ease-in-out;
    }
    
    .mobile-menu.hidden {
        transform: translateX(100%);
    }
    
    .mobile-menu:not(.hidden) {
        transform: translateX(0);
    }
    
    /* Better touch targets for mobile */
    .mobile-nav-link {
        min-height: 50px;
        display: flex;
        align-items: center;
        gap: 12px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-nav-link:active {
        background-color: rgba(6, 182, 212, 0.2);
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}
