/* Goalbet24 Custom CSS */

:root {
  --color-emerald: #10b981;
  --color-emerald-light: #34d399;
  --color-dark-900: #0a0f1a;
  --color-dark-800: #0f172a;
  --color-dark-700: #1e293b;
  --color-silver-100: #f1f5f9;
  --color-silver-200: #e2e8f0;
  --color-silver-300: #cbd5e1;
  --color-silver-400: #94a3b8;
  --marquee-card-width: 12rem;
  --marquee-gap: 1.5rem;
  --marquee-loop-step: calc(6 * (var(--marquee-card-width) + var(--marquee-gap)));
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--color-dark-900);
  color: var(--color-silver-200);
  line-height: 1.6;
}

/* Marquee: one loop = 6× (w-48 + gap-6); keep in sync with Featured Games in index.html */

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--marquee-loop-step))); }
}

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

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* Parallax effect */
@keyframes parallax-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.parallax-float {
  animation: parallax-float 6s ease-in-out infinite;
}

/* Prose styles for Markdown content */
.prose {
  color: var(--color-silver-200);
  max-width: 100%;
  font-size: 1rem;
  line-height: 1.75;
}

.prose h1 {
  color: var(--color-emerald-light);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  margin-top: 0;
  line-height: 1.2;
}

.prose h2 {
  color: var(--color-emerald);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid rgba(16, 185, 129, 0.3);
  padding-bottom: 0.4rem;
}

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

.prose p {
  color: var(--color-silver-300);
  margin-bottom: 1rem;
  max-width: 100%;
}

.prose a {
  color: var(--color-emerald-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.prose a:hover {
  color: #fff;
}

.prose ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1rem;
  color: var(--color-silver-300);
}

.prose ol {
  list-style: decimal;
  padding-left: 1.5em;
  margin-bottom: 1rem;
  color: var(--color-silver-300);
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose blockquote {
  border-left: 4px solid var(--color-emerald);
  padding-left: 1em;
  color: var(--color-silver-400);
  font-style: italic;
  margin: 1.5rem 0;
  background: rgba(16, 185, 129, 0.05);
  border-radius: 0 8px 8px 0;
  padding: 0.75em 1em;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  display: block;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.prose table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  white-space: nowrap;
  border-collapse: collapse;
  margin: 1.5rem 0;
  width: 100%;
  background: var(--color-dark-700);
  border-radius: 8px;
}

.prose thead tr {
  background: var(--color-dark-700);
}

.prose th {
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-emerald-light);
  text-align: left;
  padding: 0.6em 1em;
  font-weight: 700;
  border-bottom: 2px solid rgba(16, 185, 129, 0.3);
}

.prose td {
  color: var(--color-silver-300);
  padding: 0.55em 1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.prose tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.prose tr:hover {
  background: rgba(16, 185, 129, 0.05);
}

/* Overflow safe containers */
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* Details/summary FAQ styles */
details summary::-webkit-details-marker {
  display: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-dark-800);
}

::-webkit-scrollbar-thumb {
  background: var(--color-emerald);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-emerald-light);
}

/* Glow effects */
.glow-emerald {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* Game card hover */
.game-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

/* Responsive typography */
@media (max-width: 768px) {
  .prose h1 { font-size: 1.6rem; }
  .prose h2 { font-size: 1.3rem; }
  .prose h3 { font-size: 1.1rem; }
}
