/* PureFarm - Fresh Morning Theme Custom Styles */
/* This file is for additional custom styles not covered by Tailwind CSS */

/* Custom Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #22C55E;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #16A34A;
}

/* Custom Focus Styles */
*:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Loading Animation */
.loading-spinner {
    border: 3px solid #FEF3C7;
    border-top: 3px solid #22C55E;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* DISABLED: Gradient Text Animation */
/*
.gradient-text-animate {
    background: linear-gradient(90deg, #22C55E, #16A34A, #22C55E);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
*/

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* DISABLED: Milk Drop Animation */
/*
.milk-drop {
    position: relative;
    display: inline-block;
}

.milk-drop::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 15px;
    background: white;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0;
    animation: drop 2s ease-in-out infinite;
}

@keyframes drop {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    10% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
}
*/

/* Responsive Typography Scale */
@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}

/* Custom Container Queries */
@container (max-width: 400px) {
    .pricing-card {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        color: inherit;
        text-decoration: underline;
    }
}

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

/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #22C55E;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .text-gradient {
        background: none;
        -webkit-text-fill-color: currentColor;
        color: #22C55E;
    }
    
    .hero-gradient {
        background: #FEF3C7;
    }
}

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

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here when needed */
}