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

/* Mobile Navigation Styles */
#mobile-menu {
    transition: opacity 0.2s ease;
}

#mobile-menu.hidden {
    display: none;
}

/* Burger Menu Icon */
#burger-menu {
    cursor: pointer;
}

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

#cookie-modal.hidden {
    display: none;
}

/* Toggle Switch Styles for Cookie Policy */
.toggle-bg {
    transition: background-color 0.2s ease;
}

.toggle-dot {
    transition: transform 0.2s ease;
}

input:checked + .toggle-bg {
    background-color: #1E40AF;
}

input:checked + .toggle-bg + .toggle-dot {
    transform: translateX(1.5rem);
}

/* Hover Effects */
a {
    transition: color 0.2s ease, background-color 0.2s ease;
}

button {
    transition: all 0.2s ease;
}

/* Active Page Indicator */
.active-page {
    font-weight: 600;
}

/* Details/Summary Styling */
details summary {
    cursor: pointer;
    user-select: none;
}

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

details[open] summary {
    margin-bottom: 1rem;
}

/* Form Focus Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #1E40AF;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Responsive Tables */
@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }
    
    table th,
    table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-enter {
    animation: slideIn 0.3s ease forwards;
}

/* Prose Styles for Legal Pages */
.prose {
    color: #71717A;
}

.prose h2 {
    margin-top: 2rem;
}

.prose h3 {
    margin-top: 1.5rem;
}

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

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

/* Cookie Toggle Container */
.toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Screen Reader Only */
.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;
}

/* Loading States */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

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

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

::-webkit-scrollbar-thumb {
    background: #71717A;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4B5563;
}

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

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

/* Responsive Container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

/* Fixed Notification Position */
#notification {
    z-index: 9999;
}

/* Ensure Mobile Menu Covers Content */
#mobile-menu {
    position: relative;
    z-index: 40;
}
