/* Additional CSS utilities for the pharmaceutical website */
/* This file can be used for any additional styling not covered by Tailwind CSS */

/* Custom utility classes */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Image fallback styling */
.image-fallback {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    border-radius: 0.5rem;
}

/* Ensure images have consistent dimensions */
.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f8fafc;
}

.hero-image {
    width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: cover;
    background-color: #f8fafc;
}

/* Placeholder styling */
.image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    text-align: center;
    padding: 20px;
    min-height: 400px;
    width: 100%;
}

.hero-image-container {
    position: relative;
    width: 100%;
    min-height: 400px;
}

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

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Header effects */
#header {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

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

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

/* Product card animations */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Responsive text sizes for better mobile experience */
@media (max-width: 640px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
}

/* Focus states for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-white {
        border: 1px solid #e2e8f0;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Form styling enhancements */
.form-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-fda-approved {
    background-color: #2563eb;
    color: white;
}

.status-clinical-trial {
    background-color: #eab308;
    color: white;
}

.status-research {
    background-color: #6b7280;
    color: white;
}