/* Custom CSS for Young Hadene Website */

/* Accessibility Styles */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    border-radius: 4px;
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Focus Indicators */
:focus {
    outline: 3px solid #ff6b35;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .skip-link {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .focus {
        outline: 4px solid #000;
        outline-offset: 2px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-pulse-slow {
    animation: pulse 2s infinite;
}

/* Video container responsive fixes */
.video-container iframe,
.shorts-container iframe {
    border: none;
    border-radius: 0.5rem;
}

/* Mobile video optimizations */
@media (max-width: 768px) {
    .video-container iframe {
        min-height: 200px;
    }
    
    .shorts-container iframe {
        min-height: 300px;
    }
}

/* Enhanced hover effects */
.video-container:hover,
.shorts-container:hover {
    transform: translateY(-4px);
    transition: all 0.3s ease;
}

/* Loading animation */
.video-loading {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #ff5722;
}

/* Enhanced button styles */
.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff5722 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Social media icon enhancements */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px) rotate(5deg);
}

/* Section spacing enhancements */
section {
    position: relative;
    overflow: hidden;
}

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

section:hover::before {
    left: 100%;
}

/* Mobile menu enhancements */
#mobile-menu {
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 26, 0.95);
}

/* Performance optimizations */
.video-container,
.shorts-container {
    contain: layout style paint;
}

/* Print styles */
@media print {
    .video-container,
    .shorts-container,
    #mobile-menu-toggle,
    #mobile-menu {
        display: none;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
