/* ============================================
   Don's Daily Deals — Custom Styles
   ============================================ */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

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

/* Navbar transition states */
.nav-text {
  transition: color 0.4s ease;
}

.nav-subtext {
  transition: color 0.4s ease;
}

/* Navbar scrolled state */
body.nav-scrolled .nav-text {
  color: #052e16;
}

body.nav-scrolled .nav-subtext {
  color: #16a34a;
}

/* Navbar background when scrolled */
#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(22, 101, 52, 0.08);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #16a34a;
  transition: width 0.3s ease;
}

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

/* Mobile links */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(22, 101, 52, 0.08);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-link::after {
    display: none;
  }

  img {
    transition: none;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #86efac;
}

/* Selection color */
::selection {
  background: #bbf7d0;
  color: #052e16;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Image placeholder fallback */
img {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

/* Print styles */
@media print {
  #navbar,
  #hero .absolute.bottom-10,
  .reveal {
    display: none !important;
  }

  body {
    color: #1c1917;
    background: white;
  }

  a {
    color: #166534;
  }
}
