/* Custom styles for hypoprwavr */

/* Font configuration */
body {
    font-family: 'Inter', sans-serif;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Focus states for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

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

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

/* Form styling enhancements */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Loading animation for form submission */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

#mobile-menu.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    max-height: 500px;
}

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

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

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

/* Modal backdrop animation */
#cookie-modal {
    transition: opacity 0.3s ease-in-out;
}

#cookie-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

#cookie-modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

#cookie-modal > div {
    transition: transform 0.3s ease-in-out;
}

#cookie-modal.hidden > div {
    transform: scale(0.95) translateY(20px);
}

#cookie-modal:not(.hidden) > div {
    transform: scale(1) translateY(0);
}

/* Prose styling for legal pages */
.prose {
    color: #374151;
    line-height: 1.7;
}

.prose h1 {
    color: #111827;
    font-weight: 700;
    line-height: 1.2;
}

.prose h2 {
    color: #111827;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 2rem;
}

.prose h3 {
    color: #111827;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.5rem;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul {
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose a {
    color: var(--color-primary);
    text-decoration: none;
}

.prose a:hover {
    text-decoration: underline;
}

/* Table styling */
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5rem;
}

th, td {
    text-align: left;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
}

th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #111827;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    .no-print,
    header,
    footer,
    #cookie-banner,
    #cookie-modal {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .prose {
        color: #000;
    }
    
    h1, h2, h3 {
        color: #000;
        page-break-after: avoid;
    }
    
    p, li {
        orphans: 2;
        widows: 2;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #000000;
        --color-secondary: #000000;
        --color-accent: #000000;
    }
    
    .bg-gray-50,
    .bg-gray-100 {
        background-color: #ffffff;
        border: 1px solid #000000;
    }
    
    .text-gray-600,
    .text-gray-700 {
        color: #000000;
    }
}

/* 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;
        scroll-behavior: auto !important;
    }
}