.video-shadow-animated {
  box-shadow: 0 0 222px 0 rgba(255, 255, 255, 0.25),
    0 8px 222px 0 rgba(184, 184, 184, 0.15);
  animation: video-shadow-pulse 6s ease-in-out infinite;
  transition: box-shadow 0.3s;
}

@keyframes video-shadow-pulse {
  0% {
    box-shadow: 0 0 80px 0 rgba(255, 255, 255, 0.15),
      0 8px 120px 0 rgba(184, 184, 184, 0.1);
  }
  50% {
    box-shadow: 0 0 120px 0 rgba(0, 179, 255, 0.103),
      0 8px 180px 0 rgba(0, 179, 255, 0.121);
  }
  75% {
    box-shadow: 0 0 80px 0 rgba(0, 75, 196, 0.15),
      0 8px 120px 0 rgba(12, 0, 173, 0.1);
  }
  100% {
    box-shadow: 0 0 80px 0 rgba(255, 255, 255, 0.15),
      0 8px 120px 0 rgba(184, 184, 184, 0.1);
  }
}

.animated-gradient-purple {
  background: linear-gradient(90deg, #a78bfa, #8b5cf6, #c4b5fd, #a78bfa);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: gradient-purple-move 3s linear infinite;
}

@keyframes gradient-purple-move {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@font-face {
  font-family: "yekan-bakh";
  src: url(assets/font/YekanBakh-regular-fanum.woff2) format("woff2"),
    url(assets/font/YekanBakh-regular-fanum.woff) format("woff");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "yekan-bakh";
  src: url(assets/font/YekanBakh-bold-fanum.woff2) format("woff2"),
    url(assets/font/YekanBakh-bold-fanum.woff) format("woff");
  font-weight: 700;
  font-style: bold;
}
@font-face {
  font-family: "yekan-bakh";
  src: url(assets/font/YekanBakh-fat-fanum.woff) format("woff");
  font-weight: 900;
  font-style: bold;
}
* {
  font-family: "yekan-bakh", sans-serif;
}
.halo-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    275deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0.7;
  filter: blur(33px);
  animation: halo-move 2s linear infinite;
}

@keyframes halo-move {
  0% {
    left: -100%;
    opacity: 0.7;
  }
  10% {
    opacity: 1;
  }
  50% {
    left: 100%;
    opacity: 0.7;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}
/*
  File: css/style.css
  Description: Custom styles for Shopyar website.
*/

/* --- Base Styles & Fonts --- */
body {
  font-family: "Vazirmatn", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

/* --- Dark Mode Gradient Background --- */
.dark .gradient-bg {
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(59, 130, 246, 0.1),
      rgba(59, 130, 246, 0) 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(139, 92, 246, 0.1),
      rgba(139, 92, 246, 0) 50%
    );
}

/* --- Animated Gradient Text --- */
.animated-gradient-text {
  background-image: linear-gradient(
    90deg,
    #003892 0%,
    #0058b0 25%,
    #007bff 50%,
    #3b82f6 75%,
    #003892 100%
  );
  background-size: 200% auto;
  color: #000; /* فقط برای fallback */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 5s linear infinite;
}

@keyframes gradient-flow {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* --- Fade-in on Scroll Animation --- */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Accordion (FAQ) Styles --- */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}

.accordion-header i {
  transition: transform 0.3s ease-in-out;
}

.accordion-item.open .accordion-header i {
  transform: rotate(180deg);
;
  transition: max-height 0.4s ease-in-out;
}

.accordion-header i {
  transition: transform 0.3s ease-in-out;
}

.accordion-item.open .accordion-header i {
  transform: rotate(180deg);
}

/* Discount Popup Styles */
#discount-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #1e293b; /* dark-blue-gray */
  color: #e2e8f0; /* light-slate-gray */
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  width: 300px;
  z-index: 100;
  border: 1px solid #334155; /* slate-gray */
  font-size: 14px;
  text-align: center;
}

#discount-popup p {
  margin: 0 0 12px 0;
  font-weight: 600;
}

#discount-popup .progress-container {
  background-color: #334155; /* slate-gray */
  border-radius: 4px;
  height: 10px;
  width: 100%;
  margin-bottom: 8px;
  overflow: hidden;
}

#discount-popup .progress-bar {
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 4px;
  transition: width 0.5s ease-in-out;
}

#discount-popup span {
  font-size: 12px;
  color: #94a3b8; /* cool-gray */
}

#close-popup-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #334155;
  border: none;
  border-radius: 50%;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  transition: background-color 0.2s, color 0.2s;
}

#close-popup-btn:hover {
  background-color: #475569;
  color: #e2e8f0;
}

.discount-code {
  margin-top: 12px;
  background-color: #334155;
  padding: 8px;
  border-radius: 4px;
  font-size: 14px;
  border: 1px dashed #475569;
}

.discount-code strong {
  color: #a5b4fc; /* light-indigo */
  font-weight: bold;
}
