/* ============================================
   CASINOMAD.BET — Design System
   Palette: Black / Gold / White (MadCasino FR style)
   ============================================ */

:root {
  /* Core colors */
  --bg:           #0B0B0B;
  --bg-panel:     #141414;
  --bg-card:      #1A1A1A;
  --bg-card-2:    #1F1F1F;

  /* Gold / accent */
  --gold:         #D4AF1C;
  --gold-bright:  #F0C51A;
  --gold-dark:    #A88610;
  --gold-border:  #C9A520;
  --gold-muted:   rgba(212, 175, 28, 0.18);

  /* Text */
  --text:         #F5F5F5;
  --text-muted:   #A0A0A0;
  --text-dark:    #1A1A1A;

  /* Button CTA */
  --btn-primary-bg:   #F0C51A;
  --btn-primary-text: #111111;
  --btn-outline-border: rgba(240, 197, 26, 0.55);

  /* Borders & shadows */
  --border:       rgba(212, 175, 28, 0.22);
  --border-faint: rgba(255, 255, 255, 0.07);
  --shadow:       0 8px 32px rgba(0, 0, 0, 0.7);
  --shadow-gold:  0 4px 24px rgba(240, 197, 26, 0.25);

  /* Separator */
  --separator:    #C9A520;
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 2px solid var(--separator);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Language tag */
.lang-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  min-width: 28px;
}

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  height: 36px;
  width: auto;
}

.brand span {
  display: none; /* logo SVG already has text */
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-bright);
}

/* Header CTA buttons group */
.nav-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== BUTTONS ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 11px 26px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}

.button.primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: var(--shadow-gold);
}

.button.primary:hover {
  background: #f7d12a;
  box-shadow: 0 6px 28px rgba(240, 197, 26, 0.45);
  transform: translateY(-1px);
}

.button.outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--btn-outline-border);
}

.button.outline:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-faint);
}

.button.secondary:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ===== GOLD DIVIDER ===== */
.gold-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0;
  border: none;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background: linear-gradient(
    to bottom,
    #1a1000 0%,
    #0f0a00 40%,
    var(--bg) 100%
  );
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 28, 0.12);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 10px;
}

.hero h1 span {
  color: var(--gold-bright);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.hero p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 480px;
}

.hero-notice {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(212, 175, 28, 0.1);
  border: 1px solid rgba(212, 175, 28, 0.35);
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-media {
  position: relative;
  z-index: 2;
}

/* Rating badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111111;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rating-stars {
  color: #F4C430;
  letter-spacing: 2px;
}

.rating-score {
  color: var(--gold-bright);
}

/* ===== SECTIONS ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-title {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.section-title span {
  color: var(--gold-bright);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-radius: 16px;
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* Card with gold left border */
.card-accent {
  background: var(--bg-card);
  border: 1px solid var(--border-faint);
  border-left: 3px solid var(--gold);
  border-radius: 16px;
  padding: 22px;
}

.card-accent h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.card-accent p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ===== PROMO BANNER ===== */
.promo-banner {
  background: linear-gradient(135deg, #1A0E00 0%, #2A1800 50%, #1A0E00 100%);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin: 0 0 20px;
}

.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(212,175,28,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.promo-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 6px;
}

.promo-value {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.promo-value span {
  color: var(--gold-bright);
}

.promo-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ===== HIGHLIGHT BOX ===== */
.highlight {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.highlight h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.highlight p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== NOTICE ===== */
.notice {
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(212, 175, 28, 0.1);
  border: 1px solid rgba(212, 175, 28, 0.35);
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== TABLE ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.table th,
.table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-faint);
}

.table th {
  background: var(--bg-card-2);
  color: var(--gold-bright);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table td {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* ===== MEDIA FRAME / PLACEHOLDER ===== */
.media-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-faint);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  display: block;
}

/* ============================================
   IMAGE PLACEHOLDERS
   Replace with actual <img> tags when images ready.
   data-slot identifies each slot.
   ============================================ */
.img-placeholder {
  width: 100%;
  min-height: 260px;
  background: var(--bg-card-2);
  border: 1.5px dashed rgba(212, 175, 28, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.img-placeholder::after {
  content: attr(data-slot);
  position: absolute;
  text-align: center;
  padding: 10px;
  opacity: 0.45;
  font-style: italic;
  letter-spacing: 0.05em;
}

/* ===== INLINE LIST ===== */
.inline-list {
  display: grid;
  gap: 10px;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.inline-list li::before {
  content: '— ';
  color: var(--gold);
}

/* ===== FOOTER ===== */
footer {
  border-top: 2px solid var(--separator);
  background: var(--bg);
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-faint);
}

.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: 14px;
}

.footer-ctas {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

.footer-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer-badges-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.badge-item {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 5px 10px;
  letter-spacing: 0.06em;
}

.badge-18 {
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Legacy footer-grid support */
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 24px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  color: var(--text-muted);
}

.footer-grid strong {
  display: block;
  color: var(--gold-bright);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.footer-grid a {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: var(--gold-bright);
}

/* ===== APP DOWNLOAD BLOCK ===== */
.app-download-wrap {
  display: block;
  position: relative;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.app-download-wrap img {
  width: 100%;
  display: block;
  border-radius: 16px;
  transition: opacity 0.2s;
}

.app-download-wrap:hover img {
  opacity: 0.85;
}

.app-download-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-radius: 0 0 16px 16px;
}

.app-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 13px 32px;
  border-radius: 999px;
  box-shadow: var(--shadow-gold);
  transition: background 0.2s, transform 0.2s;
}

.app-download-wrap:hover .app-download-btn {
  background: #f7d12a;
  transform: translateY(-2px);
}

.app-download-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 40px 20px 36px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-badges {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .nav {
    height: auto;
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-ctas {
    width: 100%;
    justify-content: center;
  }

  .promo-banner {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .lang-tag {
    display: none;
  }
}
