/* ═══════════════════════════════════════════════════════════════
   MY CASINO CITY — mycitycasino.com
   Based on template1 (Monobrand Casino). Palette derived from the
   My Casino City app screenshot: neon-purple night skyline behind
   piles of cash, with amber/gold "Download" and violet "Online" CTAs.
   Fonts: Playfair Display (heading) / Inter (body) — template1 default.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --background: 265 48% 8%;
  --foreground: 260 45% 96%;

  --card: 265 42% 13%;
  --card-foreground: 260 45% 96%;

  --primary: 42 80% 55%;
  --primary-foreground: 265 48% 8%;

  --secondary: 265 45% 22%;
  --secondary-foreground: 260 45% 96%;

  --muted: 265 32% 17%;
  --muted-foreground: 265 12% 70%;

  --accent: 42 85% 62%;
  --accent-foreground: 265 48% 8%;

  --border: 265 32% 20%;
  --input:  265 32% 20%;
  --ring:   42 80% 55%;

  --radius: 0.75rem;

  --gold:        42 80% 55%;
  --gold-light:  42 85% 68%;
  --gold-dark:   36 65% 38%;
  --purple-dark: 265 48% 8%;
  --purple-mid:  265 42% 14%;
  --purple-light:265 45% 22%;

  --font-heading: 'Playfair Display', serif;
  --font-body:    'Inter', sans-serif;

  --gradient-gold:   linear-gradient(135deg, hsl(42 80% 55%), hsl(42 85% 68%), hsl(42 80% 55%));
  --gradient-purple: linear-gradient(180deg, hsl(265 48% 8%), hsl(265 42% 14%));
  --gradient-hero:   linear-gradient(135deg, hsl(265 48% 8%) 0%, hsl(268 55% 17%) 50%, hsl(265 48% 8%) 100%);

  --shadow-gold: 0 0 30px hsl(42 80% 55% / 0.3);
  --shadow-card: 0 10px 40px hsl(0 0% 0% / 0.4);
}

/* ── Base ────────────────────────────────────────────────────── */
* { border-color: hsl(var(--border)); }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  overflow-x: hidden;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-gold {
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--gradient-gold);
  color: hsl(var(--purple-dark));
  box-shadow: var(--shadow-gold);
  border: none;
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1rem;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px hsl(40 70% 52% / 0.5);
  color: hsl(var(--purple-dark));
}

.btn-outline-gold {
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
  border: 2px solid hsl(var(--gold));
  color: hsl(var(--gold));
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1rem;
}
.btn-outline-gold:hover {
  background: hsl(var(--gold) / 0.1);
  box-shadow: var(--shadow-gold);
  color: hsl(var(--gold));
}

/* ── Cards ───────────────────────────────────────────────────── */
.card-casino {
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s;
  background: hsl(var(--card));
  box-shadow: var(--shadow-card);
  border: 1px solid hsl(var(--border));
}
.card-casino:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px hsl(0 0% 0% / 0.5);
  border-color: hsl(var(--gold) / 0.3);
}

/* ── Text ────────────────────────────────────────────────────── */
.text-gold-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glow-gold   { text-shadow: 0 0 20px hsl(40 70% 52% / 0.5); }
.font-heading { font-family: var(--font-heading); }

/* ── Sections ────────────────────────────────────────────────── */
.section-gradient { background: var(--gradient-hero); }
.page-container   { min-height: 100vh; background: var(--gradient-purple); }
.content-section  { padding: 4rem 1rem; max-width: 72rem; margin: 0 auto; }

/* ── Navigation ──────────────────────────────────────────────── */
.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.3s;
  color: hsl(var(--foreground));
  text-decoration: none;
}
.nav-link:hover { color: hsl(var(--gold)); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  transition: all 0.3s;
  background: hsl(var(--gold));
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: hsl(var(--primary)); }

/* ── Header ──────────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
nav { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
nav > div { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 5rem; width: 100%; }

/* ── Mobile menu ─────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  z-index: 49;
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
  box-shadow: 0 8px 32px hsl(0 0% 0% / 0.5);
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
}
.mobile-menu.active { display: block; }
.mobile-menu-inner { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.75rem; }
.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  color: hsl(var(--foreground));
  text-decoration: none;
  font-weight: 500;
}
.mobile-nav-link:hover { background: hsl(var(--muted)); color: hsl(var(--accent)); }
.mobile-nav-link.active { background: hsl(var(--primary) / 0.15); color: hsl(var(--primary)); }
.mobile-menu-cta { padding: 0.75rem 0 0.25rem; }

/* ── Burger button ───────────────────────────────────────────── */
.burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.burger-btn:hover { background: hsl(var(--muted)); }
.burger-icon { width: 1.75rem; height: 1.75rem; color: hsl(var(--accent)); }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } .burger-btn { display: none; } }

/* ── Game card ───────────────────────────────────────────────── */
.game-card {
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  overflow: hidden;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.game-card-img { width: 100%; object-fit: cover; transition: transform 0.5s; display: block; }
.game-card:hover .game-card-img { transform: scale(1.05); }
.game-card-body { overflow-x: hidden; padding: 1rem; }
.game-card-body h3 { font-size: 1rem; color: hsl(var(--primary)); margin-bottom: 0.25rem; }
.game-card-body p { font-size: 0.8rem; color: hsl(var(--muted-foreground)); margin-bottom: 0; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero-text { font-family: var(--font-heading); text-shadow: 0 4px 20px hsl(0 0% 0% / 0.5); }

/* ── Animations ──────────────────────────────────────────────── */
.floating { animation: floating 3s ease-in-out infinite; }
@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.shine { position: relative; overflow: hidden; }
.shine::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(to right, transparent 0%, hsl(45 100% 90% / 0.2) 50%, transparent 100%);
  transform: rotate(30deg);
  animation: shine 3s infinite;
}
@keyframes shine {
  0%   { transform: translateX(-100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

.pulse-gold { animation: pulse-gold 2s ease-in-out infinite; }
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 20px hsl(40 70% 52% / 0.3); }
  50%       { box-shadow: 0 0 40px hsl(40 70% 52% / 0.6); }
}

.fade-in { animation: fade-in 0.6s ease-out forwards; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer-link { color: hsl(var(--muted-foreground)); transition: color 0.3s; text-decoration: none; }
.footer-link:hover { color: hsl(var(--gold)); }

/* ── Forms ───────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  color: hsl(var(--foreground));
  font-family: var(--font-body);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
}
label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES (Tailwind-style, hand-written)
   ═══════════════════════════════════════════════════════════════ */

.hidden       { display: none; }
.block        { display: block; }
.inline-block { display: inline-block; }
.flex         { display: flex; }
.grid         { display: grid; }

@media (min-width: 1024px) {
  .lg\:hidden { display: none; }
  .lg\:flex   { display: flex; }
}

.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col        { flex-direction: column; }
.flex-wrap       { flex-wrap: wrap; }
.flex > * { min-width: 0; }
@media (min-width: 640px) { .sm\:flex-row { flex-direction: row; } }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0,1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 640px)  { .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 768px)  {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
}

.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem;   padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 640px)  { .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .lg\:px-8 { padding-left: 2rem;   padding-right: 2rem; } }

.py-2  { padding-top: 0.5rem;  padding-bottom: 0.5rem; }
.py-3  { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4  { padding-top: 1rem;    padding-bottom: 1rem; }
.py-12 { padding-top: 3rem;    padding-bottom: 3rem; }
.py-16 { padding-top: 4rem;    padding-bottom: 4rem; }
.py-20 { padding-top: 5rem;    padding-bottom: 5rem; }
.pt-20 { padding-top: 5rem; }

.mb-2  { margin-bottom: 0.5rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
@media (min-width: 768px) { .md\:text-left { text-align: left; } }

.text-xs  { font-size: 0.75rem; }
.text-sm  { font-size: 0.875rem; }
.text-lg  { font-size: 1.125rem; }
.text-xl  { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-8xl { font-size: 6rem; }
@media (min-width: 768px)  { .md\:text-xl { font-size: 1.25rem; } .md\:text-5xl { font-size: 3rem; } }
@media (min-width: 1024px) { .lg\:text-7xl { font-size: 4.5rem; } }

.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium   { font-weight: 500; }
.italic        { font-style: italic; }
.uppercase     { text-transform: uppercase; }
.leading-relaxed { line-height: 1.625; }
.text-balance  { text-wrap: balance; }

.text-primary            { color: hsl(var(--primary)); }
.text-foreground         { color: hsl(var(--foreground)); }
.text-muted-foreground   { color: hsl(var(--muted-foreground)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-foreground\/80     { color: hsl(var(--foreground) / 0.8); }

.bg-background  { background-color: hsl(var(--background)); }
.bg-card        { background-color: hsl(var(--card)); }
.bg-primary     { background-color: hsl(var(--primary)); }
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1); }
.bg-primary\/20 { background-color: hsl(var(--primary) / 0.2); }

.hover\:bg-muted:hover { background-color: hsl(var(--muted)); }

.border         { border-width: 1px; }
.border-t       { border-top-width: 1px; }
.border-b       { border-bottom-width: 1px; }
.border-border  { border-color: hsl(var(--border)); }
.border-2       { border-width: 2px; }
.border-primary { border-color: hsl(var(--primary)); }

.rounded-lg  { border-radius: 0.5rem; }
.rounded-xl  { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full{ border-radius: 9999px; }

.w-full { width: 100%; }
.w-10   { width: 2.5rem; }
.w-12   { width: 3rem; }
.w-20   { width: 5rem; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-10   { height: 2.5rem; }
.h-12   { height: 4rem; }
.h-16   { height: 4rem; }
.h-20   { height: 5rem; }
.max-w-md  { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-none{ max-width: none; }
.min-h-screen    { min-height: 100vh; }
.min-h-\[90vh\] { min-height: 90vh; }

.relative { position: relative; }
.absolute { position: absolute; }
.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.object-cover    { object-fit: cover; }
.object-contain  { object-fit: contain; }
.aspect-square   { aspect-ratio: 1/1; }

.opacity-0  { opacity: 0; }
.opacity-60 { opacity: 0.35; }

.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-110   { transform: scale(1.1); }
.group:hover .group-hover\:scale-105   { transform: scale(1.05); }

.transition-all      { transition-property: all; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-colors   { transition-property: color,background-color,border-color; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-opacity  { transition-property: opacity; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-transform{ transition-property: transform; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.cursor-pointer { cursor: pointer; }
.resize-none    { resize: none; }
.list-disc      { list-style-type: disc; }
.list-inside    { list-style-position: inside; }
.shadow-xl  { box-shadow: 0 20px 25px -5px rgb(0 0 0/.1), 0 8px 10px -6px rgb(0 0 0/.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0/.25); }

.prose         { max-width: 65ch; }
.prose-invert  { color: hsl(var(--foreground)); }
.prose-invert h2 { color: hsl(var(--primary)); }
.prose-invert ul { color: hsl(var(--foreground) / 0.8); }

.icon { width: 24px; height: 24px; stroke-width: 2; stroke: currentColor; fill: none; }

.focus\:outline-none:focus  { outline: none; }
.focus\:border-primary:focus{ border-color: hsl(var(--primary)); }

/* ── Mobile fixes ────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .btn-gold:not(.w-full),
  .btn-outline-gold:not(.w-full) {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: fit-content;
  }
  footer .grid > div {
    padding-left: 1rem;
  }
}
