/* Custom CSS for H5Jet Gaming Website */

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

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

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

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

/* Game card hover effects */
.game-card {
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
}

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

/* Game iframe styling */
.game-iframe {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.game-iframe:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

/* Button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #007AFF, #5856D6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

/* Hero section enhancements */
.hero-gradient {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 50%, #AF52DE 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Feature cards */
.feature-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: #007AFF;
    transform: translateY(-5px);
    background: linear-gradient(135deg, #ffffff, #f8faff);
}

/* Game stats styling */
.game-stats {
    background: linear-gradient(135deg, #f8faff, #ffffff);
    border: 1px solid #E5E5EA;
}

/* Loading animation for iframe */
.iframe-container {
    position: relative;
    background: #f2f2f7;
    border-radius: 12px;
    overflow: hidden;
}

.iframe-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #007AFF;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    z-index: 1;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.iframe-container iframe {
    position: relative;
    z-index: 2;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .game-card {
        margin-bottom: 2rem;
    }
    
    .game-iframe {
        aspect-ratio: 1;
        height: auto;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Language switcher styling */
.language-selector {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.language-selector:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states */
button:focus,
select:focus,
a:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .game-iframe {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-apple-gray6 {
        background-color: #ffffff;
    }
    
    .text-apple-gray {
        color: #000000;
    }
    
    .bg-gradient-to-r {
        background: #000000 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background-color: #1c1c1e;
        color: #ffffff;
    }
    
    .auto-dark .bg-white {
        background-color: #2c2c2e;
    }
    
    .auto-dark .text-gray-900 {
        color: #ffffff;
    }
}