/* Custom styles that complement Tailwind */

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
    background-color: #801b34;
    color: white;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    .navbar,
    .mobile-menu-btn,
    .mobile-menu,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
    
    a {
        text-decoration: underline;
        color: black !important;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

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

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

/* Custom utility classes */
.text-balance {
    text-wrap: balance;
}

/* Aspect ratio utilities */
.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Gradient utilities */
.bg-gradient-plum {
    background: linear-gradient(135deg, #801b34 0%, #6c1a32 100%);
}

.bg-gradient-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Shadow utilities */
.shadow-soft {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

.shadow-hard {
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Border utilities */
.border-gradient {
    border-image: linear-gradient(135deg, #f59e0b, #d97706) 1;
}

/* Backdrop blur utilities */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #801b34 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover underline animation */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #f59e0b;
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #fce7eb 25%, #fad0db 50%, #fce7eb 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
