/* Castaways Thrift — Custom Styles */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

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

/* Selection Color */
::selection {
    background-color: rgba(212, 168, 50, 0.3);
    color: #f0f3f9;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f1a2b;
}
::-webkit-scrollbar-thumb {
    background: #24395a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a832;
}

/* Reveal Animations — Progressive Enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal.delay-1 { transition-delay: 0.1s; }
    .reveal.delay-2 { transition-delay: 0.2s; }
    .reveal.delay-3 { transition-delay: 0.3s; }
}

/* Navbar Transition */
#navbar.scrolled {
    background-color: rgba(9, 15, 24, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(212, 168, 50, 0.1);
}

/* Mobile Menu Transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

/* Form Focus Styles */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 1px rgba(212, 168, 50, 0.3);
}

/* Link Underline Animation */
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #d4a832;
    transition: width 0.3s ease;
    margin-top: 2px;
}
.nav-link:hover::after {
    width: 100%;
}

/* Smooth Card Hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Gold Gradient Accent */
.gold-gradient {
    background: linear-gradient(135deg, #d4a832 0%, #b38a28 100%);
}

/* Decorative Corner Accents */
.corner-accent {
    position: relative;
}
.corner-accent::before,
.corner-accent::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: rgba(212, 168, 50, 0.4);
    border-style: solid;
}
.corner-accent::before {
    top: -1px;
    left: -1px;
    border-width: 1px 0 0 1px;
}
.corner-accent::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 1px 1px 0;
}

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