/* Additional custom styles for Blue Thistle Farm Store */

/* Ensure proper box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c43e18, #a12f14);
}

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

/* Print styles */
@media print {
    .fixed,
    .mobile-menu,
    .pulse-glow,
    .float-animation,
    .float-reverse-animation {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-gradient {
        background: #f5f5f5 !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary,
    .badge {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@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;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-gradient {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-gradient h1 {
        font-size: 2.5rem;
    }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Tablet adjustments */
@media (max-width: 1023px) and (min-width: 768px) {
    .geo-circle,
    .geo-square {
        opacity: 0.5;
    }
}

/* Small mobile adjustments */
@media (max-width: 360px) {
    .hero-gradient h1 {
        font-size: 2rem;
    }
    
    .hero-gradient p {
        font-size: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover {
        transform: none;
    }
    
    .img-zoom:hover img {
        transform: none;
    }
    
    .btn-primary:hover {
        background: linear-gradient(135deg, #c43e18, #a12f14);
    }
}

/* Dark mode support (system preference) */
@media (prefers-color-scheme: dark) {
    /* Additional dark mode styles can be added here if needed */
}

/* Animation keyframes */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Utility animations */
.animate-slide-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}
