/* Grattiano Casino – Custom CSS */

:root {
  --gold: #d4a017;
  --gold-light: #e8c547;
  --emerald: #10b981;
  --dark: #070c14;
  --card: #0f1923;
  --border: #1e2d3d;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
}

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

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 8px rgba(212, 160, 23, 0.4); }
  50% { box-shadow: 0 0 24px rgba(212, 160, 23, 0.8); }
}

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

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

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

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

/* Prose Styles */
.prose {
  color: var(--text-main);
  line-height: 1.75;
  font-size: 1rem;
  max-width: 100%;
}

.prose h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-top: 1.2rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4rem;
}

.prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #f5d98b;
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1.1rem;
  color: var(--text-main);
}

.prose a {
  color: var(--gold-light);
  text-decoration: underline;
  transition: color 0.2s;
}

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

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

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

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

.prose blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 1em;
  margin-left: 0;
  color: var(--text-muted);
  font-style: italic;
  background: var(--card);
  border-radius: 0 8px 8px 0;
  padding: 0.75em 1em;
  margin-bottom: 1rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  display: block;
}

.prose table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  white-space: nowrap;
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

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

.prose th {
  padding: 0.6em 1em;
  text-align: left;
  font-weight: 700;
}

.prose td {
  padding: 0.55em 1em;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

.prose tbody tr:nth-child(even) {
  background: var(--card);
}

.prose tbody tr:nth-child(odd) {
  background: var(--dark);
}

.prose code {
  background: var(--card);
  color: var(--gold-light);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  color: var(--gold-light);
}

/* Link hover: smooth feedback sitewide */
a[href] {
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease,
    filter 0.2s ease;
}

header nav a[href^="/"]:hover,
footer a[href^="/"]:hover {
  text-shadow: 0 0 14px rgba(232, 197, 71, 0.45);
}

a[href^="/"].inline-block[style*="#d4a017"]:hover {
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.25);
  filter: brightness(1.05);
}

a[href^="/"].inline-block[style*="#10b981"]:hover {
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
  filter: brightness(1.08);
}

a.game-spielen:hover {
  background: #f0b91a !important;
  box-shadow: 0 4px 16px rgba(212, 160, 23, 0.55);
  transform: scale(1.02);
}

/* Top Casino Spiele: room for hover lift + shadow (overflow-x would clip without padding) */
.top-casino-scroll {
  padding: 0.75rem 0.5rem 1.35rem;
  box-sizing: content-box;
}

/* Top Casino Spiele – card lift */
.game-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 160, 23, 0.35);
  border-color: #d4a017 !important;
}

.game-card img {
  transition: transform 0.35s ease, filter 0.25s ease;
}

.game-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.08) saturate(1.05);
}

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

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

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