/* Core Nutryx CSS stylesheet */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght=0,400;0,600;0,700;0,900;1,400&family=Cormorant+Garamond:ital,wght=0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

:root {
  --color-sage-accent: #7a8d75;
  --color-forest-accent: #263c26;
  --color-cream: #fbf9f4;
  --color-header-text: #1a2319;
  --color-text-muted: #576555;
  --color-card-border: #e2e8e1;
  --color-card-bg: #ffffff;
  --color-sand-card-bg: #f5f2eb;
  --color-sand: #e6e1d6;
  --color-bronze-accent: #ab7f58;
  --color-nav-bg: rgba(251, 249, 244, 0.85);
}

:root.dark, html.dark {
  --color-cream: #121812;
  --color-header-text: #f1f5f0;
  --color-text-muted: #9bb098;
  --color-card-border: #283327;
  --color-card-bg: #182017;
  --color-sand-card-bg: #1e281d;
  --color-sand: #2a3729;
  --color-sage-accent: #a0b29c;
  --color-forest-accent: #eef3ee;
  --color-bronze-accent: #cf9a6e;
  --color-nav-bg: rgba(18, 24, 18, 0.85);
}

body {
  background-color: var(--color-cream);
  color: var(--color-header-text);
  font-family: 'DM Sans', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom fade-in animations */
.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom marquee marquee infinite animation loop */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-card-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-sage-accent);
}
