/* Nova Insights - Global Styles */
html {
    scroll-behavior: smooth;
}

/* Mobile Navigation Styles */
.mobile-menu-open {
    overflow: hidden;
}

#mobile-nav {
    transition: opacity 0.3s ease;
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

button:hover, a:hover {
    transform: translateY(-2px);
}

/* Form Input Focus */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #A78BFA;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

/* Cookie Modal */
#cookie-modal {
    transition: opacity 0.3s ease;
}

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

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

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

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

::-webkit-scrollbar-thumb {
    background: #1E3A5F;
    border-radius: 5px;
}

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

/* Responsive Tables */
@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }
}

/* Details/Summary Styling */
details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #1E3A5F 0%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Link Underline Effect */
a.link-underline {
    position: relative;
}

a.link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #EAB308;
    transition: width 0.3s ease;
}

a.link-underline:hover::after {
    width: 100%;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #CBD5E1;
    border-top: 3px solid #1E3A5F;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Print Styles */
@media print {
    header, footer, #cookie-modal, button {
        display: none;
    }
    body {
        background: white;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid #A78BFA;
    outline-offset: 2px;
}

/* Disabled State */
button:disabled, input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Selection Color */
::selection {
    background-color: #A78BFA;
    color: white;
}

::-moz-selection {
    background-color: #A78BFA;
    color: white;
}

/* Image Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Responsive iframe */
.responsive-iframe {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.responsive-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Custom Checkbox/Radio */
input[type="checkbox"], input[type="radio"] {
    cursor: pointer;
}

/* Smooth Transitions for All Interactive Elements */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
