/* ========================================
   SWEETSINO - Douce Lumière Pop Theme
   Custom CSS: Keyframes, Prose, Overrides
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-candy-pink: #ff6b9d;
  --color-soft-peach: #ffb4a2;
  --color-mint-cream: #b8f2e6;
  --color-lavender-pop: #c9b1ff;
  --color-lemon-fizz: #fff07c;
  --color-deep-plum: #2d1b42;
  --color-soft-white: #fef9f3;
  --color-warm-gray: #6b5b6e;
}

/* --- Keyframe Animations --- */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.625rem);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 1.25rem rgba(255, 107, 157, 0.4);
  }
  50% {
    box-shadow: 0 0 2.5rem rgba(255, 107, 157, 0.7);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

@keyframes bounce-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.3125rem);
  }
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Animation Utility Classes --- */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-marquee {
  animation: marquee 25s linear infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.animate-bounce-soft {
  animation: bounce-soft 2s ease-in-out infinite;
}

.animate-rotate-slow {
  animation: rotate-slow 20s linear infinite;
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scale-in 0.4s ease-out forwards;
}

/* --- Parallax Effects --- */
.parallax-container {
  perspective: 1000px;
  overflow: hidden;
}

.parallax-layer {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* --- Marquee Container --- */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
}

.marquee-content {
  display: flex;
  width: max-content;
}

.marquee-content:hover {
  animation-play-state: paused;
}

/* --- Button Effects --- */
.btn-candy {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-candy::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-candy:hover::before {
  left: 100%;
}

.btn-candy:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.5rem rgba(255, 107, 157, 0.4);
}

/* --- Card Hover Effects --- */
.card-sweet {
  transition: all 0.3s ease;
  position: relative;
}

.card-sweet:hover {
  transform: translateY(-0.375rem);
  box-shadow: 0 1rem 2.5rem rgba(45, 27, 66, 0.15);
}

/* --- Gradient Borders --- */
.gradient-border {
  position: relative;
  background: var(--color-soft-white);
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 0.125rem;
  background: linear-gradient(135deg, var(--color-candy-pink), var(--color-lavender-pop), var(--color-mint-cream));
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

/* --- Table Responsive Wrapper --- */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
}

/* --- Prose Styling for Markdown Content --- */
.prose {
  color: var(--color-deep-plum);
  line-height: 1.75;
  max-width: 100%;
}

.prose h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--color-deep-plum);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.1875rem solid var(--color-candy-pink);
  position: relative;
}

.prose h2::after {
  content: "";
  position: absolute;
  bottom: -0.1875rem;
  left: 0;
  width: 3.75rem;
  height: 0.1875rem;
  background: var(--color-lavender-pop);
}

.prose h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--color-candy-pink);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: var(--color-warm-gray);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1.25rem;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
}

.prose a {
  color: var(--color-candy-pink);
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: var(--color-lavender-pop);
}

.prose strong {
  font-weight: 700;
  color: var(--color-deep-plum);
}

.prose em {
  font-style: italic;
  color: var(--color-warm-gray);
}

/* --- Prose Lists --- */
.prose ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
}

.prose ul li::before {
  content: "🍬";
  position: absolute;
  left: 0;
  top: 0.125rem;
  font-size: 0.875rem;
}

.prose ol {
  counter-reset: prose-counter;
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.prose ol li {
  counter-increment: prose-counter;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
}

.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: linear-gradient(135deg, var(--color-candy-pink), var(--color-lavender-pop));
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Prose Tables --- */
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  background: var(--color-soft-white);
  border-radius: 0.75rem;
  overflow: hidden;
}

.prose thead {
  background: linear-gradient(135deg, var(--color-candy-pink), var(--color-lavender-pop));
  color: white;
}

.prose th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.prose td {
  padding: 0.875rem 1.25rem;
  border-bottom: 0.0625rem solid rgba(45, 27, 66, 0.1);
  color: var(--color-deep-plum);
}

.prose tbody tr:nth-child(even) {
  background: rgba(184, 242, 230, 0.15);
}

.prose tbody tr:hover {
  background: rgba(255, 107, 157, 0.08);
}

.prose tbody tr:last-child td {
  border-bottom: none;
}

/* --- Prose Blockquotes --- */
.prose blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(201, 177, 255, 0.08));
  border-left: 0.25rem solid var(--color-candy-pink);
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: var(--color-warm-gray);
}

.prose blockquote p {
  margin-bottom: 0;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

/* --- Prose Images --- */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 0.5rem 2rem rgba(45, 27, 66, 0.12);
}

/* --- Prose Code --- */
.prose code {
  background: rgba(201, 177, 255, 0.2);
  padding: 0.1875rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: var(--color-deep-plum);
}

.prose pre {
  background: var(--color-deep-plum);
  color: var(--color-soft-white);
  padding: 1.25rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* --- Prose Horizontal Rule --- */
.prose hr {
  border: none;
  height: 0.1875rem;
  background: linear-gradient(90deg, var(--color-candy-pink), var(--color-lavender-pop), var(--color-mint-cream));
  margin: 2.5rem 0;
  border-radius: 0.1875rem;
}

/* --- Navigation Styles --- */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 0.125rem;
  background: var(--color-candy-pink);
  transition: width 0.3s ease;
}

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

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* --- Burger Button Animation --- */
.burger-line {
  transition: all 0.3s ease;
}

.burger-active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(0.3125rem, 0.3125rem);
}

.burger-active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.3125rem, -0.3125rem);
}

/* --- Hero Background Pattern --- */
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(255, 107, 157, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 177, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(184, 242, 230, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

/* --- Decorative Shapes --- */
.shape-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(3.75rem);
  opacity: 0.5;
  pointer-events: none;
}

.shape-circle {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-candy-pink), var(--color-lavender-pop));
}

/* --- Step Badge --- */
.step-badge {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--color-candy-pink), var(--color-lavender-pop));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 0.25rem 1rem rgba(255, 107, 157, 0.4);
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 0.0625rem solid rgba(45, 27, 66, 0.1);
}

.faq-question {
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--color-candy-pink);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 31.25rem;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* --- Game Card --- */
.game-card {
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: scale(1.05);
}

.game-card img {
  transition: transform 0.3s ease;
}

.game-card:hover img {
  transform: scale(1.1);
}

/* --- Promo Card --- */
.promo-card {
  background: linear-gradient(145deg, var(--color-soft-white) 0%, rgba(255, 180, 162, 0.1) 100%);
  transition: all 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1.25rem 2.5rem rgba(45, 27, 66, 0.12);
}

/* --- Payment Icon --- */
.payment-icon {
  width: 3rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
}

/* --- Provider Tag --- */
.provider-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 107, 157, 0.1);
  color: var(--color-deep-plum);
  border-radius: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.provider-tag:hover {
  background: var(--color-candy-pink);
  color: white;
}

/* --- 18+ Badge --- */
.age-badge {
  width: 2.5rem;
  height: 2.5rem;
  border: 0.125rem solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

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

/* --- Focus States for Accessibility --- */
a:focus-visible,
button:focus-visible {
  outline: 0.125rem solid var(--color-candy-pink);
  outline-offset: 0.125rem;
}

/* --- Selection Color --- */
::selection {
  background: var(--color-candy-pink);
  color: white;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

::-webkit-scrollbar-track {
  background: var(--color-soft-white);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-candy-pink), var(--color-lavender-pop));
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-candy-pink);
}

/* --- Responsive Adjustments --- */
@media (max-width: 48rem) {
  .prose h2 {
    margin-top: 2rem;
  }

  .prose h3 {
    margin-top: 1.5rem;
  }

  .prose blockquote {
    padding: 1rem 1rem 1rem 1.25rem;
    margin: 1.5rem 0;
  }

  .prose ul li,
  .prose ol li {
    padding-left: 1.5rem;
  }

  .prose ol li::before {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
  }
}

/* --- Print Styles --- */
@media print {
  .prose {
    color: black;
  }

  .prose a {
    text-decoration: underline;
    color: black;
  }
}
