/* Custom styles for clarivexontraxiuma.top */

:root {
    --color-primary: #2563eb;
    --color-secondary: #8b5cf6;
    --color-accent: #dc2626;
}

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

/* Custom font settings */
body {
    font-family: 'Open Sans', sans-serif;
}

/* Enhanced focus styles for accessibility */
*:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Button hover effects */
.btn-primary {
    background-color: var(--color-primary);
    transition: all 0.3s ease;
}

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

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Loading animation for forms */
.loading {
    position: relative;
    pointer-events: none;
}

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

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

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

/* Hero section background overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8) 0%, rgba(139, 92, 246, 0.8) 100%);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom table styles */
table {
    border-collapse: collapse;
}

table th {
    background-color: #f8fafc;
    font-weight: 600;
}

table td, table th {
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    text-align: left;
}

table tr:nth-child(even) {
    background-color: #f8fafc;
}

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

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

/* Success message styles */
.success-message {
    color: #059669;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

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

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

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

/* Modal backdrop */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #000080;
        --color-secondary: #4B0082;
        --color-accent: #8B0000;
    }
}

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

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles would go here */
}

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

.container-prose {
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

/* Icon alignment fixes */
.icon-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Enhanced link styles */
a {
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

/* Skip to main content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

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

/* Ensure sufficient color contrast */
.text-muted {
    color: #6b7280;
}

/* Custom spacing utilities */
.space-y-safe > * + * {
    margin-top: 1rem;
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .prose p {
        font-size: 1rem;
        line-height: 1.6;
    }
}
/* Cookie banner visibility — independent of Tailwind */
#cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
#cookie-modal.hidden { display: none !important; }
