/* Custom styles for Republican Information Project */

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

/* Custom focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid #8B1538;
    outline-offset: 2px;
}

/* Hover effects for navigation links */
nav a {
    position: relative;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6B1028;
}

/* Animation for achievement cards */
@media (min-width: 768px) {
    .bg-gray-50:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(139, 21, 56, 0.15);
        transition: all 0.3s ease;
    }
}

/* Custom gradient for hero section */
.bg-gradient-to-b {
    background: linear-gradient(to bottom, #002868, #8B1538);
}

/* Ensure proper text contrast */
.text-gop-red {
    color: #8B1538;
}

.bg-gop-red {
    background-color: #8B1538;
}

.bg-gop-dark-red {
    background-color: #6B1028;
}

.border-gop-red {
    border-color: #8B1538;
}

.text-patriot-blue {
    color: #002868;
}

.bg-patriot-blue {
    background-color: #002868;
}

.border-patriot-blue {
    border-color: #002868;
}

/* Print styles */
@media print {
    .sticky {
        position: relative !important;
    }
    
    .bg-gradient-to-b {
        background: #002868 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #374151;
    }
    
    .text-gray-300 {
        color: #d1d5db;
    }
}

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