/* Custom styles for Game Platform San Diego */

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #faf5ff;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9333ea, #fbbf24);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7e22ce, #d97706);
}

/* Selection color */
::selection {
    background: #d8b4fe;
    color: #3b0764;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure mobile menu is hidden by default */
#mobile-menu {
    display: none;
}

#mobile-menu.open {
    display: flex;
}

/* Tablet and up: show desktop nav, hide mobile menu button */
@media (min-width: 768px) {
    #mobile-menu-btn {
        display: none;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass-card, .glass-light {
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid #581c87;
    }
    
    .hero-gradient {
        background: #3b0764;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu, .scroll-reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-gradient {
        background: #fff !important;
        color: #000 !important;
    }
}

/* Ensure text contrast on all backgrounds */
.text-plum-900 { color: #581c87; }
.text-plum-800 { color: #6b21a8; }
.text-plum-700 { color: #7e22ce; }
.text-plum-600 { color: #9333ea; }
.text-plum-500 { color: #a855f7; }

.text-amber-500 { color: #f59e0b; }
.text-amber-400 { color: #fbbf24; }
.text-amber-600 { color: #d97706; }

/* Ensure all interactive elements have proper contrast */
.service-card {
    background: rgba(255, 255, 255, 0.7);
}

.service-card h3 {
    color: #581c87;
}

.service-card p {
    color: #4b5563;
}
