/* WellNewMe GenericSite - Custom Styles */

/* Brand Colors (also defined in Tailwind config) */
:root {
    --brand-primary: #1e3a8a;
    --brand-secondary: #3b82f6;
    --brand-accent: #10b981;
    --brand-dark: #0f172a;
    --brand-light: #f8fafc;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Form input focus states */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Dropdown animation */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
    visibility: visible;
}

/* Button hover effects */
.btn-primary {
    background-color: var(--brand-accent);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Risk indicator animations */
@keyframes pulse-risk {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.risk-indicator-high {
    animation: pulse-risk 2s ease-in-out infinite;
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form validation styles */
.field-validation-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.input-validation-error {
    border-color: #ef4444 !important;
}

/* Mobile menu transition */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Hero gradient overlay */
.hero-gradient {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
}

/* Stats counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 0.6s ease-out forwards;
}

/* Cookie consent banner */
#cookie-consent {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    header,
    footer,
    #cookie-consent,
    .no-print {
        display: none !important;
    }

    main {
        padding: 0;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --brand-primary: #000080;
        --brand-accent: #006400;
    }
}
