/* ===================================
   BRAND COLORS - Casino Theme
   =================================== */
:root {
  /* Primary Brand Colors */
  --brand-primary: #1a1d29; /* Deep Navy - Main background */
  --brand-secondary: #d4af37; /* Gold - Accent/CTAs */
  --brand-accent: #2c5f8d; /* Casino Blue - Links/highlights */
  --brand-success: #059669; /* Green - Positive actions */
  --brand-danger: #dc2626; /* Red - Warnings/negative */
  --brand-light: #f8f9fa; /* Light background */

  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --text-white: #ffffff;

  /* UI Colors */
  --border-color: #e5e7eb;
  --bg-white: #ffffff;
  --bg-gray: #f3f4f6;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===================================
   TYPOGRAPHY
   =================================== */
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--text-primary);
  background: var(--bg-gray);
  font-size: 16px;
}

/* Import Inter font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* ===================================
   CONTAINER UTILITY
   =================================== */
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================================
   HEADER
   =================================== */
.site-header {
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

/* ===================================
   SECTIONS
   =================================== */
.section {
  padding: 30px 0;
}

.section-alt {
  background: var(--bg-white);
}

.section-header {
  margin-bottom: 30px;
}

.section-header.center {
  text-align: center;
}

.section-main-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ===================================
   SEO CONTENT
   =================================== */
.seo-content-block {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
}

.seo-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.seo-content-grid.reverse {
  direction: rtl;
}

.seo-content-grid.reverse > * {
  direction: ltr;
}

.seo-text-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.seo-text-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 12px;
}

.seo-text-content p {
  line-height: 1.7;
  margin-bottom: 16px;
}

.seo-text-content ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.seo-text-content ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  line-height: 1.6;
}

.seo-text-content ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brand-accent);
  font-weight: 700;
}

.seo-text-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===================================
   RICH TEXT CONTENT
   TinyMCE editor output wrapper
   =================================== */
.rich-text-content {
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
}

/* ── Headings ── */
.rich-text-content h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--text-primary);
  margin: 10px 0px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.rich-text-content h2:not([class]) {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--text-primary);
  margin: 16px 0px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  border-left: 4px solid var(--brand-secondary);
  padding-left: 10px;
}

.rich-text-content h3:not([class]) {
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 600;
  color: var(--text-primary);
  margin: 12px 0px;
}

.rich-text-content h4:not([class]) {
  font-size: 18px;
  font-weight: 600;
  margin: 10px 0;
}

/* First heading has no top margin */
.rich-text-content > h1:first-child,
.rich-text-content > h2:first-child,
.rich-text-content > h3:first-child {
  margin-top: 0;
}

/* ── Paragraph ── */
.rich-text-content p {
  margin: 0 0 18px;
  line-height: 1.75;
}

.rich-text-content p:last-child {
  margin-bottom: 0;
}

/* ── Links ── */
.rich-text-content a:not([class]) {
  color: var(--brand-accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition:
    color 0.18s,
    text-decoration-color 0.18s;
}

.rich-text-content a:not([class]):hover {
  color: var(--brand-secondary);
  text-decoration-color: var(--brand-secondary);
}

/* ── Unordered List ── */
.rich-text-content ul:not([class]) {
  list-style: none;
  padding: 0;
}

.rich-text-content ul:not([class]) li {
  padding: 7px 0 7px 28px;
  position: relative;
  line-height: 1.65;
}

.rich-text-content ul:not([class]) li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brand-accent);
  font-weight: 700;
}

/* ── Ordered List ── */
.rich-text-content ol {
  padding: 0 0 0 22px;
  margin: 8px 0 20px;
}

.rich-text-content ol li {
  padding: 6px 0 6px 6px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.rich-text-content ol li::marker {
  color: var(--brand-accent);
  font-weight: 700;
}

/* ── Strong / Em ── */
.rich-text-content strong {
  font-weight: 700;
  color: var(--text-primary);
}

.rich-text-content em {
  font-style: italic;
  color: var(--text-secondary);
}

/* ── Blockquote ── */
.rich-text-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--brand-secondary);
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.07) 0%,
    rgba(44, 95, 141, 0.04) 100%
  );
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.02em;
  line-height: 1.75;
}

.rich-text-content blockquote p {
  margin: 0;
  color: inherit;
}

/* ── Horizontal Rule ── */
.rich-text-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--brand-secondary) 0%,
    transparent 100%
  );
  margin: 36px 0;
  opacity: 0.45;
}

/* ── Inline Code ── */
.rich-text-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.87em;
  background: var(--bg-gray);
  color: var(--brand-accent);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

/* ── Code Block ── */
.rich-text-content pre {
  background: var(--brand-primary);
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.65;
}

.rich-text-content pre code {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* ── Images ── */
.rich-text-content img:not([class]),
.rich-text-content picture img:not([class]) {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 24px 0;
}

/* ── TABLE ── */

/* Scroll wrapper — injected by JS around every table */
.rich-text-content .table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(26, 29, 41, 0.1);
  margin: 28px 0;
}

.rich-text-content table {
  width: 100%;
  min-width: 560px; /* forces scroll on narrow screens */
  border-collapse: collapse;
  margin: 0; /* margin lives on .table-scroll-wrap */
}

/* ── p / strong / em inside cells — strip margins & colour overrides ── */
.rich-text-content table td p,
.rich-text-content table th p,
.rich-text-content table td strong,
.rich-text-content table th strong {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* Header — works for both <th> and <td> inside <thead> (TinyMCE outputs td) */
.rich-text-content table thead tr {
  background: var(--brand-primary);
}

.rich-text-content table thead th,
.rich-text-content table thead td {
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  border: none;
}

.rich-text-content table thead th:first-child,
.rich-text-content table thead td:first-child {
  border-left: 3px solid var(--brand-secondary);
}

/* Body rows — alternating */
.rich-text-content table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s;
}

.rich-text-content table tbody tr:nth-child(odd) {
  background: var(--bg-white);
}

.rich-text-content table tbody tr:nth-child(even) {
  background: var(--bg-gray);
}

.rich-text-content table tbody tr:hover {
  background: rgba(44, 95, 141, 0.06);
}

.rich-text-content table tbody tr:last-child {
  border-bottom: none;
}

/* Body cells */
.rich-text-content table tbody td {
  padding: 13px 20px;
  color: var(--text-primary);
  vertical-align: middle;
  border: none;
  line-height: 1.5;
}

.rich-text-content table tbody td:first-child {
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: border-left-color 0.15s;
}

.rich-text-content table tbody tr:hover td:first-child {
  border-left-color: var(--brand-accent);
}

/* Footer row */
.rich-text-content table tfoot tr {
  background: var(--brand-primary);
}

.rich-text-content table tfoot td {
  padding: 12px 20px;
  color: var(--brand-secondary);
  font-weight: 700;
  font-size: 13px;
  border: none;
  border-left: 3px solid transparent;
}

.rich-text-content table tfoot td:first-child {
  border-left-color: var(--brand-secondary);
}

/* ── Table mobile ── */
@media (max-width: 768px) {
  .rich-text-content table thead th,
  .rich-text-content table thead td,
  .rich-text-content table tbody td,
  .rich-text-content table tfoot td {
    padding: 10px 14px;
    font-size: 13px;
  }
}

.seo-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }

  .seo-content-grid {
    grid-template-columns: 1fr;
    gap: 0px;
  }

  .site-nav {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .site-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .seo-content-block {
    padding: 0 15px;
  }

  .seo-text-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .seo-text-content h3 {
    font-size: 18px;
    margin: 10px 0px;
  }

  .seo-text-content p {
    margin-bottom: 10px;
  }

  .section {
    padding: 10px 0;
  }

  .section-header {
    margin-bottom: 15px;
  }

  .section-main-title {
    font-size: 22px;
  }
}
