/* Custom CSS for TRA BOBA MILK TEA */

:root {
  --forest-50: #f2f7f4;
  --forest-100: #dce9e0;
  --forest-200: #bcd6c1;
  --forest-300: #8fb896;
  --forest-400: #6a9b72;
  --forest-500: #4d8056;
  --forest-600: #3a6443;
  --forest-700: #2d5036;
  --forest-800: #24402c;
  --forest-900: #1d3525;
  --forest-950: #0f1c13;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
}

/* Custom Font Families */
.font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-sans {
  font-family: 'DM Sans', system-ui, sans-serif;
}

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

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

::-webkit-scrollbar-track {
  background: var(--stone-50);
}

::-webkit-scrollbar-thumb {
  background: var(--forest-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--forest-400);
}

/* Selection Color */
::selection {
  background: var(--forest-200);
  color: var(--forest-900);
}

/* Navbar Scroll Effect */
.navbar-scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Hero Image Animation */
.hero-image {
  animation: float 6s ease-in-out infinite;
}

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

/* Card Hover Effects */
.menu-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-card:hover {
  transform: translateY(-4px);
}

/* Button Ripple Effect */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after {
  width: 200px;
  height: 200px;
}

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

/* Focus Styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--forest-500);
  outline-offset: 2px;
}

/* Image Loading */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Print Styles */
@media print {
  nav,
  .no-print {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}
