/* C:\Users\sh\.gemini\antigravity\scratch\fresmart\styles.css */

/* Custom Variables */
:root {
  --color-primary: #45B500;
  --color-secondary: #266e10;
  --color-accent: #7dd82a;
}

/* Base Body Styles */
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  background-color: #EBECEE;
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on iOS */
}

img {
  max-width: 100%;
  height: auto;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay modifiers */
.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

.delay-500 {
  transition-delay: 500ms;
}

/* Hover Effects */
.hover-scale-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Button Animations */
.btn-primary {
  background-color: var(--color-primary);
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover {
  box-shadow: 0 6px 15px rgba(59, 155, 24, 0.4);
  transform: translateY(-2px);
}

/* Floating Animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Placeholder image hover */
.img-placeholder {
  transition: all 0.5s ease;
}

.img-placeholder:hover {
  transform: scale(1.03);
  filter: brightness(0.95);
}

/* Recipes circular image with hover */
.recipe-circle {
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f4f4f4;
  position: relative;
}

.recipe-circle img,
.recipe-circle div {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recipe-circle:hover {
  box-shadow: 0 10px 25px rgba(59, 155, 24, 0.2);
  transform: translateY(-5px);
}

.recipe-circle:hover div {
  transform: scale(1.1);
}

.hero-bg {
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* Custom Scrollbar for Store List */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #EBECEE;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #D1D5DB;
}

/* Store Card Animation */
.store-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-card:hover {
  border-color: rgba(59, 155, 24, 0.3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
  transform: translateX(4px);
}

.store-card.active {
  border-color: #45B500;
  background-color: rgba(69, 181, 0, 0.02);
  box-shadow: 0 10px 25px rgba(69, 181, 0, 0.08);
}

.loader {
  display: block;
  --height-of-loader: 4px;
  --loader-color: #45B500;
  width: 130px;
  height: var(--height-of-loader);
  border-radius: 30px;
  background-color: rgba(0, 0, 0, 0.1);
  position: relative;
}

.loader::before {
  content: "";
  position: absolute;
  background: var(--loader-color);
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  border-radius: 30px;
  animation: moving 1s ease-in-out infinite;
}

@keyframes moving {
  50% {
    width: 100%;
  }

  100% {
    width: 0;
    right: 0;
    left: unset;
  }
}

#preloader {
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Rich Text Formatted Description Styling (CMS descriptions) */
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 {
  font-weight: 800;
  color: #111827;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.rich-content h1 { font-size: 2.25rem; }
.rich-content h2 { font-size: 1.875rem; border-bottom: 1px solid rgba(0, 0, 0, 0.05); padding-bottom: 0.25em; }
.rich-content h3 { font-size: 1.5rem; }
.rich-content h4 { font-size: 1.25rem; }

.rich-content p {
  margin-bottom: 1.25em;
  line-height: 1.75;
  color: #4b5563;
}

.rich-content img {
  border-radius: 16px;
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.rich-content a {
  color: #45B500;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}
.rich-content a:hover {
  color: #3b9b18;
}

/* Allow styled buttons inside description text */
.rich-content a.btn-primary, .rich-content a.button-link {
  display: inline-block;
  background-color: #45B500;
  color: white !important;
  text-decoration: none !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(69, 181, 0, 0.2);
  margin: 0.75em 0;
}
.rich-content a.btn-primary:hover, .rich-content a.button-link:hover {
  background-color: #3b9b18;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(69, 181, 0, 0.3);
}

.rich-content ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}
.rich-content ol {
  list-style-type: decimal;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}
.rich-content li {
  margin-bottom: 0.5em;
  color: #4b5563;
}

/* Remove all elevation and shadows globally from all elements */
*, ::before, ::after {
  box-shadow: none !important;
  --tw-shadow: 0 0 #0000 !important;
  --tw-shadow-colored: 0 0 #0000 !important;
}