/* Custom styles for Hack Muni */

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

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #f59e0b, #d97706);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #fbbf24, #f59e0b);
}

/* Selection color */
::selection {
    background-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

/* 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;
        scroll-behavior: auto !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Button hover effects */
button, a {
    transition: all 0.3s ease;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    min-height: 200px;
}

/* Ensure text contrast */
.text-slate-300 {
    color: #cbd5e1;
}

.text-slate-400 {
    color: #94a3b8;
}

/* Gold gradient text fallback */
.text-transparent.bg-clip-text {
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation active state */
.nav-link.active {
    color: #fbbf24;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 1px #f59e0b !important;
}

/* Hover scale for images */
.hover\\:scale-105:hover {
    transform: scale(1.05);
}

/* Gradient backgrounds */
.bg-gradient-to-br.from-gold-400.to-gold-600 {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.bg-gradient-to-r.from-gold-500.to-gold-600 {
    background: linear-gradient(to right, #f59e0b 0%, #d97706 100%);
}

.bg-gradient-to-r.from-gold-400.to-gold-500 {
    background: linear-gradient(to right, #fbbf24 0%, #f59e0b 100%);
}
