/* Custom styles and overrides */

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF6B6B, #E05252);
    border-radius: 6px;
}

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

/* Selection color */
::selection {
    background: #FF6B6B;
    color: white;
}

/* Focus styles */
*:focus-visible {
    outline: 3px solid #FF6B6B;
    outline-offset: 2px;
}

/* 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;
    }
}

/* Print styles */
@media print {
    .fixed,
    .animate-bounce,
    .float-card,
    .float-card-delayed {
        display: none !important;
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .coral-gradient {
        background: ButtonText;
    }
    
    .hero-gradient {
        background: Canvas;
    }
}

/* Accessibility: Skip to content */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #FF6B6B;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}
