/* Custom styles that complement Tailwind CSS */

/* Base font smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: rgba(156, 30, 52, 0.15);
    color: #6e1a2d;
}

/* Smooth focus outlines */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #9c1e34;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9c1e34;
}

/* Ensure mobile menu transitions smoothly */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

/* Nav active state */
nav a.active {
    color: #9c1e34;
}

/* Print styles */
@media print {
    nav, .blob, [class*="blob"] {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}

/* Reduced motion preferences */
@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;
    }
    .btc-pulse {
        animation: none;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary,
    .btn-secondary {
        border: 2px solid ButtonText;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .font-display {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

/* Small phone adjustments */
@media (max-width: 374px) {
    .feature-card {
        padding: 1.5rem;
    }
}
