/* OnlySpins Custom CSS - Ocean Spin Flow */

:root {
  --color-ocean-deep: #071828;
  --color-ocean-mid: #0A2035;
  --color-ocean-card: #0D2840;
  --color-aqua: #00D4E8;
  --color-jade: #00C896;
  --color-silver: #A8C8D8;
  --color-text-primary: #E8F4F8;
  --color-text-secondary: #8BBCD0;
  --color-gold: #FFD166;
  --gradient-cta: linear-gradient(135deg, #00D4E8, #00C896);
  --gradient-hero: linear-gradient(160deg, #071828 0%, #0A2A3D 50%, #0D3350 100%);
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 232, 0.4); }
  50% { box-shadow: 0 0 40px rgba(0, 212, 232, 0.8), 0 0 60px rgba(0, 200, 150, 0.4); }
}

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

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

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

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

.glow-btn {
  animation: glow-pulse 2.5s ease-in-out infinite;
}

.shimmer-text {
  background: linear-gradient(90deg, #00D4E8, #00C896, #FFD166, #00D4E8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* Prose styles for Markdown content */
.prose {
  color: var(--color-text-primary);
  line-height: 1.8;
  font-size: 1rem;
  max-width: 100%;
  min-width: 0; /* Allow overflow in constrained layouts (e.g. mobile) */
}

.prose h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-aqua);
  margin-top: 0.5em;
  margin-bottom: 0.75em;
  border-bottom: 2px solid rgba(0, 212, 232, 0.25);
  padding-bottom: 0.35em;
}

.prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-jade);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose p {
  margin-bottom: 1.25em;
  color: var(--color-text-primary);
}

.prose a {
  color: var(--color-aqua);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.prose ul {
  list-style: none;
  padding-left: 1.25em;
  margin-bottom: 1.25em;
}

.prose ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.5em;
  color: var(--color-text-primary);
}

.prose ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-jade);
  font-weight: 700;
}

.prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
  counter-reset: list-counter;
}

.prose ol li {
  counter-increment: list-counter;
  position: relative;
  padding-left: 0.5em;
  margin-bottom: 0.5em;
  color: var(--color-text-primary);
}

.prose blockquote {
  border-left: 4px solid var(--color-aqua);
  padding: 0.75em 1.25em;
  background: rgba(0, 212, 232, 0.07);
  border-radius: 0 8px 8px 0;
  margin: 1.5em 0;
  color: var(--color-silver);
  font-style: italic;
}

/* Horizontal scroll wrapper for all tables */
.prose table,
table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.95rem;
}

/* Table scroll wrapper for markdown tables (mobile-friendly) */
.table-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  margin-bottom: 1.5em;
}

.table-scroll-wrapper table {
  margin-bottom: 0;
  min-width: 480px;
}

.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose table thead tr {
  background: rgba(0, 212, 232, 0.15);
}

.prose table th {
  padding: 0.75em 1em;
  text-align: left;
  color: var(--color-aqua);
  font-weight: 600;
  border-bottom: 2px solid rgba(0, 212, 232, 0.3);
}

.prose table td {
  padding: 0.65em 1em;
  border-bottom: 1px solid rgba(168, 200, 216, 0.12);
  color: var(--color-text-primary);
}

.prose table tr:hover td {
  background: rgba(0, 212, 232, 0.05);
}

.prose img {
  max-width: 100%;
  border-radius: 10px;
  margin: 1.5em auto;
  display: block;
  border: 1px solid rgba(0, 212, 232, 0.2);
}

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

.prose code {
  background: rgba(0, 212, 232, 0.12);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--color-aqua);
}

/* Card and component styles */
.ocean-card {
  background: var(--color-ocean-card);
  border: 1px solid rgba(0, 212, 232, 0.15);
  border-radius: 14px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ocean-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 232, 0.45);
  box-shadow: 0 12px 40px rgba(0, 212, 232, 0.15);
}

.cta-primary {
  background: var(--gradient-cta);
  color: #071828;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.75em 2em;
  display: inline-block;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
}

.cta-primary:hover {
  opacity: 0.9;
  transform: scale(1.04);
}

.cta-secondary {
  border: 2px solid var(--color-aqua);
  color: var(--color-aqua);
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.72em 2em;
  display: inline-block;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
  background: transparent;
}

.cta-secondary:hover {
  background: var(--color-aqua);
  color: #071828;
  transform: scale(1.04);
}

/* SVG wave pattern background */
.wave-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='120' viewBox='0 0 1440 120'%3E%3Cpath d='M0,60 C360,120 720,0 1080,60 C1260,90 1380,70 1440,60 L1440,120 L0,120 Z' fill='%230D2840' opacity='0.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
}

.section-divider {
  width: 4em;
  height: 3px;
  background: var(--gradient-cta);
  border-radius: 9999px;
  margin: 0.75em auto 1.5em;
}
