/* Custom styles for University Colorado Breast Center */

/* Smooth focus styles for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #f0d08c;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: rgba(168, 33, 66, 0.4);
    color: #f9d0d9;
}

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

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

/* Mobile menu open state */
#mobile-menu.open {
    display: block;
}

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

/* Mobile menu link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #f0d08c, #d4a04a);
    transition: width 0.3s ease;
}

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(8, 6, 10, 0.95) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #f0d08c 0%, #d4a04a 50%, #c48a32 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle hover lift for cards */
.card-hover {
    will-change: transform;
}

/* Image lazy load placeholder */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .pulse-ring {
        animation: none;
    }
}

/* Print styles */
@media print {
    nav, .pulse-ring, #mobile-toggle {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    .bg-dark-950, .bg-dark-900 {
        background: white !important;
    }
    .text-white, .text-gray-200, .text-gray-300, .text-gray-400 {
        color: black !important;
    }
}
