/* Custom CSS for People's Mandate 2025 */

* {
    font-family: 'Inter', sans-serif;
}

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

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Navigation active states */
.nav-active {
    color: #2563eb !important;
    position: relative;
}

.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2563eb;
}

/* Section highlighting */
.section-highlight {
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid #2563eb;
    background: linear-gradient(90deg, #eff6ff 0%, transparent 100%);
}

/* Card hover effects */
.policy-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.policy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

/* Department card styles */
.dept-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dept-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

/* Timeline styles */
.timeline-item {
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    background-color: #2563eb;
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 0.375rem;
    top: 1.25rem;
    width: 2px;
    height: calc(100% - 1.25rem);
    background-color: #d1d5db;
}

.timeline-item:last-child::after {
    display: none;
}

/* Legislation card styles */
.legislation-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.legislation-card:hover {
    border-left-color: #2563eb;
    background-color: #f8fafc;
}

/* Search box styles */
.search-box {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 50;
}

/* Accordion styles */
.accordion-header {
    transition: all 0.3s ease;
    cursor: pointer;
}

.accordion-header:hover {
    background-color: #f8fafc;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 1000px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-item::before {
        width: 0.5rem;
        height: 0.5rem;
    }
    
    .timeline-item::after {
        left: 0.25rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .policy-card,
    .dept-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gray-50 {
        background-color: white;
    }
    
    .text-gray-600,
    .text-gray-700 {
        color: black;
    }
    
    .border-gray-200 {
        border-color: black;
    }
}

/* 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;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}