/* ============================================
   Your Turn Resale Shoppe — Custom Styles
   ============================================ */

/* Color System */
:root {
    --terracotta: #C06C4B;
    --terracotta-dark: #A8553A;
    --terracotta-light: #F5DDD0;
    --sand: #D4A574;
    --sand-light: #FDF0E3;
    --sage: #7A8B6F;
    --sage-light: #E8EDE5;
    --rose-light: #F5E6E0;
    --stone-50: #FAFAF8;
    --stone-100: #F5F4F0;
    --stone-200: #E8E6E0;
    --stone-500: #6B6A66;
    --stone-600: #5A5956;
    --stone-700: #4A4946;
    --stone-800: #2E2D2A;
    --stone-900: #1A1917;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--stone-50);
}

h1, h2, h3, h4 {
    font-family: 'Lora', serif;
}

/* Tailwind Custom Colors */
.bg-terracotta { background-color: var(--terracotta); }
.bg-terracotta-dark { background-color: var(--terracotta-dark); }
.bg-terracotta-light { background-color: var(--terracotta-light); }
.bg-sand { background-color: var(--sand); }
.bg-sand-light { background-color: var(--sand-light); }
.bg-sage { background-color: var(--sage); }
.bg-sage-light { background-color: var(--sage-light); }
.bg-rose-light { background-color: var(--rose-light); }
.text-terracotta { color: var(--terracotta); }
.text-sage { color: var(--sage); }

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--terracotta);
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* Mobile Menu */
.mobile-link {
    display: block;
}

/* Floating Card Animation */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background-color: rgba(250, 250, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Back to Top */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* Smooth Scroll Offset for Fixed Nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom Selection */
::selection {
    background-color: var(--terracotta-light);
    color: var(--stone-800);
}

/* Image hover effects */
img {
    will-change: transform;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .floating-card { animation: none; }
    img { will-change: auto; }
    .group:hover img,
    .group:focus img { transform: none; }
}
