/* Custom styles for marketgenius */

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

/* Custom focus styles */
.focus\:ring-2:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--color-primary);
}

/* Accordion animations */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.active {
    max-height: 200px;
    transition: max-height 0.3s ease-in;
}

.accordion-button.active i {
    transform: rotate(180deg);
}

/* Custom button hover effects */
.btn-primary {
    background-color: var(--color-primary);
    color: white;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Loading animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Form validation styles */
.form-error {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.error-message {
    color: var(--color-accent);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success message styles */
.success-message {
    background-color: #f0fdf4;
    border-color: #22c55e;
    color: #15803d;
}

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

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* Cookie banner animations */
#cookie-banner {
    transition: transform 0.3s ease-in-out;
}

#cookie-banner.hidden {
    transform: translateY(100%);
}

#cookie-modal {
    backdrop-filter: blur(4px);
}

/* Utility classes */
.text-balance {
    text-wrap: balance;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    header, footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

/* Focus visible for better keyboard navigation */
.focus-visible\:ring-2:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}