/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1E293B;
    color: white;
    padding: 16px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cookie-banner.show {
    transform: translateY(0);
}

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

/* Custom focus styles */
*:focus {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

/* Form validation styles */
.form-error {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

.form-success {
    border-color: #10B981;
    background-color: #F0FDF4;
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2563EB;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

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

/* Performance optimizations */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Print styles */
@media print {
    .cookie-banner,
    nav,
    footer {
        display: none;
    }
    
    .bg-primary,
    .bg-secondary {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gray-50 {
        background-color: white;
    }
    
    .text-gray-600 {
        color: black;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cookie-banner {
        transition: none;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 12px;
    }
    
    .cookie-banner .flex {
        flex-direction: column;
        gap: 12px;
    }
    
    .cookie-banner button {
        width: 100%;
        padding: 12px;
    }
}
