/* Jasminslots – Custom CSS: keyframes, prose, utilities */

/* ── Keyframes ── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes floatPetal {
  0%   { transform: translateY(0) rotate(0deg) scale(1);   opacity: .85; }
  50%  { transform: translateY(-22px) rotate(18deg) scale(1.08); opacity: 1; }
  100% { transform: translateY(0) rotate(0deg) scale(1);   opacity: .85; }
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,200,66,.55); }
  50%       { box-shadow: 0 0 18px 8px rgba(245,200,66,.25); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Parallax helper ── */
.parallax-hero {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .parallax-hero { background-attachment: scroll; }
}

/* ── Marquee ── */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 34s linear infinite;
}
.marquee-wrap {
  overflow: hidden;
  width: 100%;
}

/* ── Shimmer text ── */
.text-shimmer {
  background: linear-gradient(90deg, #f5c842 0%, #fff8d6 40%, #f5c842 60%, #e0a820 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3.5s linear infinite;
}

/* ── Float petal decoration ── */
.petal {
  animation: floatPetal 5s ease-in-out infinite;
}
.petal:nth-child(2) { animation-delay: 1.4s; }
.petal:nth-child(3) { animation-delay: 2.7s; }

/* ── Gold pulse CTA ── */
.btn-gold-pulse {
  animation: pulseGold 2.6s ease-in-out infinite;
}

/* ── FadeUp on load ── */
.fade-up {
  animation: fadeUp .7s ease both;
}

/* ── Prose (markdown inner pages) ── */
.prose {
  color: #e8e4f0;
  line-height: 1.8;
  font-size: 1rem;
  max-width: 100%;
}
.prose h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #f5c842;
  margin-top: 2.2rem;
  margin-bottom: .75rem;
  border-bottom: 2px solid rgba(245,200,66,.25);
  padding-bottom: .35rem;
}
.prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #a8d8f0;
  margin-top: 1.7rem;
  margin-bottom: .5rem;
}
.prose p {
  margin-bottom: 1.1rem;
}
.prose a {
  color: #f5c842;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover {
  color: #ffe680;
}
.prose ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.1rem;
}
.prose ol {
  list-style: decimal;
  padding-left: 1.5em;
  margin-bottom: 1.1rem;
}
.prose li {
  margin-bottom: .4rem;
}
.prose blockquote {
  border-left: 4px solid #f5c842;
  padding: .6em 1.2em;
  color: #c8d8e8;
  background: rgba(245,200,66,.07);
  border-radius: 0 .5rem .5rem 0;
  margin: 1.4rem 0;
  font-style: italic;
}
.prose table {
  border-collapse: collapse;
  margin-bottom: 1.4rem;
  font-size: .94rem;
  width: max-content;
  min-width: 100%;
}
.prose thead th {
  background: rgba(30,111,191,.55);
  color: #f5c842;
  padding: .6em .9em;
  text-align: left;
  font-weight: 600;
}
.prose tbody td {
  padding: .55em .9em;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: #dce8f5;
}
.prose tbody tr:nth-child(even) td {
  background: rgba(255,255,255,.04);
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: .75rem;
  margin: 1.4rem 0;
  display: block;
}
/* ── All tables: horizontal scroll on all pages ── */
.prose .overflow-x-auto,
.overflow-x-auto {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}
/* Ensure table doesn't shrink below content width for horizontal scroll */
.prose table,
.overflow-x-auto table {
  width: max-content;
  min-width: 100%;
}

/* ── Utility: table scroll wrapper ── */
.prose table-wrap {
  overflow-x: auto;
  display: block;
  width: 100%;
}

/* ── Number badge ── */
.step-badge {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e6fbf, #0d3d75);
  border: 2px solid #f5c842;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #f5c842;
  flex-shrink: 0;
}

/* ── Word cloud ── */
.word-cloud span {
  display: inline-block;
  margin: .3rem .45rem;
  padding: .25rem .7rem;
  border-radius: 2rem;
  background: rgba(30,111,191,.18);
  border: 1px solid rgba(30,111,191,.4);
  color: #a8d8f0;
  font-size: .92rem;
  transition: background .25s, color .25s;
}
.word-cloud span:hover {
  background: rgba(245,200,66,.18);
  color: #f5c842;
  border-color: rgba(245,200,66,.45);
}

/* ── Responsive iframe / embeds ── */
iframe, video, embed, object {
  max-width: 100%;
}

/* ── Scrollbar (webkit) ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0d1b3e; }
::-webkit-scrollbar-thumb { background: #1e6fbf; border-radius: 3px; }
