/* Custom styles for Buzy Dogs - complementing Tailwind */

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

/* Ensure mobile menu transitions work properly */
@media (max-width: 767px) {
    .mobile-menu {
        width: 100% !important;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #7B1E3A;
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* Loading state for images */
img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

img[src] {
    animation: none;
    background: none;
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-card {
        max-width: 90%;
        margin: 0 auto;
    }
}

/* Large screens */
@media (min-width: 1280px) {
    .hero-card {
        max-width: 560px;
    }
}

/* Print styles */
@media print {
    .float-card,
    .geo-circle,
    .geo-square,
    .geo-triangle {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Reduced motion - ensure content is visible without animation */
@media (prefers-reduced-motion: reduce) {
    .float-card {
        animation: none !important;
    }
    
    .menu-card:hover {
        transform: none !important;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gradient-text {
        background: none;
        -webkit-text-fill-color: initial;
        color: #7B1E3A;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .menu-card:hover {
        transform: none;
    }
    
    .stat-card:hover {
        transform: none;
    }
}
