/*
Theme Name: Casino Micro
Theme URI: https://github.com/rezith30-png
Description: Reusable casino affiliate microsite theme. Single-page, SEO-optimized, supports shared offers list.
Version: 1.0
Author: Artem
Text Domain: casino-micro
*/

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Open Sans', -apple-system, sans-serif;
  color: #1a1a2e;
  background: #f8f9fa;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: #c0392b; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Header ─── */
.cm-header {
  background: #0f0f23;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.cm-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cm-logo {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.cm-logo span { color: #e74c3c; }
.cm-nav { display: flex; gap: 24px; }
.cm-nav a {
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
.cm-nav a:hover { color: #fff; }

/* ─── Hero ─── */
.cm-hero {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 60%, #2d1b4e 100%);
  color: #fff;
  padding: 60px 20px 50px;
  text-align: center;
}
.cm-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.cm-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: .875rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 24px;
}
.cm-hero-meta img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.cm-hero-meta strong { color: #fff; }
.cm-anchors {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cm-anchors a {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: .82rem;
  text-decoration: none;
  transition: background .2s;
}
.cm-anchors a:hover { background: rgba(255,255,255,.2); }

/* ─── Main container ─── */
.cm-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Section titles ─── */
.cm-section { padding: 48px 0; }
.cm-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f0f23;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 3px solid #e74c3c;
  display: inline-block;
}

/* ─── Casino Cards ─── */
.cm-cards { display: flex; flex-direction: column; gap: 16px; }
.cm-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 40px 120px 1fr auto auto;
  align-items: center;
  gap: 20px;
  transition: box-shadow .2s, transform .2s;
}
.cm-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,.14); transform: translateY(-1px); }
.cm-card-rank {
  font-size: 1.4rem;
  font-weight: 800;
  color: #e74c3c;
  text-align: center;
}
.cm-card-logo {
  text-align: center;
}
.cm-card-logo img {
  max-height: 44px;
  max-width: 110px;
  object-fit: contain;
}
.cm-card-info { flex: 1; }
.cm-card-name {
  font-weight: 700;
  font-size: 1rem;
  color: #0f0f23;
  margin-bottom: 4px;
}
.cm-card-rating {
  font-size: .8rem;
  color: #f39c12;
  margin-bottom: 6px;
}
.cm-card-bonus-label {
  font-size: .75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cm-card-bonus-value {
  font-size: 1rem;
  font-weight: 700;
  color: #0f0f23;
}
.cm-card-features {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cm-card-feature {
  background: #f0f0f8;
  color: #555;
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: 10px;
}
.cm-card-license {
  font-size: .78rem;
  color: #888;
  white-space: nowrap;
  text-align: center;
}
.cm-card-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cm-card-btn {
  background: #e74c3c;
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .2s, transform .1s;
  display: inline-block;
}
.cm-card-btn:hover { background: #c0392b; transform: scale(1.03); }
.cm-card-deposit {
  font-size: .72rem;
  color: #888;
}

/* ─── Content Article ─── */
.cm-content { background: #fff; padding: 40px; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.cm-content h2 { font-size: 1.35rem; font-weight: 700; color: #0f0f23; margin: 28px 0 12px; }
.cm-content h3 { font-size: 1.1rem; font-weight: 600; color: #1a1a3e; margin: 20px 0 8px; }
.cm-content p { margin-bottom: 16px; color: #333; }
.cm-content ul, .cm-content ol { margin: 0 0 16px 24px; }
.cm-content li { margin-bottom: 8px; color: #333; }
.cm-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.cm-content th { background: #0f0f23; color: #fff; padding: 10px 14px; text-align: left; font-size: .875rem; }
.cm-content td { padding: 10px 14px; border-bottom: 1px solid #eee; font-size: .875rem; color: #333; }
.cm-content tr:nth-child(even) td { background: #f8f8ff; }

/* ─── FAQ ─── */
.cm-faq { display: flex; flex-direction: column; gap: 8px; }
.cm-faq-item {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8e8f0;
  overflow: hidden;
}
.cm-faq-q {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #0f0f23;
  font-size: .95rem;
}
.cm-faq-q::after { content: '+'; font-size: 1.3rem; color: #e74c3c; transition: transform .2s; }
.cm-faq-item.open .cm-faq-q::after { transform: rotate(45deg); }
.cm-faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .2s; }
.cm-faq-item.open .cm-faq-a { max-height: 500px; padding: 0 20px 16px; }
.cm-faq-a p { color: #444; font-size: .9rem; margin: 0; }

/* ─── Author ─── */
.cm-author {
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.cm-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.cm-author-name { font-weight: 700; font-size: 1rem; color: #0f0f23; }
.cm-author-title { font-size: .8rem; color: #888; margin-bottom: 8px; }
.cm-author-bio { font-size: .875rem; color: #555; line-height: 1.6; }

/* ─── Footer ─── */
.cm-footer {
  background: #0f0f23;
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 32px 20px;
  margin-top: 48px;
  font-size: .8rem;
  line-height: 1.8;
}
.cm-footer a { color: rgba(255,255,255,.5); }
.cm-badge-18 {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .8rem;
  margin-right: 6px;
}

/* ─── Responsible Gaming Footer ─── */
.cm-footer-rg {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.cm-rg-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.7) !important;
  text-decoration: none !important;
  font-size: .72rem;
  transition: opacity .2s;
}
.cm-rg-link:hover { opacity: .8; }
.cm-rg-logo {
  height: 32px;
  max-width: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .8;
}
.cm-rg-phone { font-size: .8rem; font-weight: 700; color: #fff; }
.cm-badge-18-wrap { display: flex; align-items: center; }
.cm-footer-disclaimer {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  margin: 8px 0 4px;
  line-height: 1.7;
}
.cm-footer-disclaimer a { color: rgba(255,255,255,.4); }
.cm-footer-copy { font-size: .72rem; color: rgba(255,255,255,.3); margin: 0; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .cm-card {
    grid-template-columns: 30px 80px 1fr;
    grid-template-rows: auto auto;
  }
  .cm-card-license { display: none; }
  .cm-card-cta { grid-column: 3; grid-row: 2; align-items: flex-start; }
  .cm-nav { display: none; }
  .cm-content { padding: 24px 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   CASINO MICRO — Article Rich Content Styles v2
   Light-mode first. Designed for white #fff content cards.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Heading Hierarchy ─── */
.cm-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f0f23;
  margin: 36px 0 14px;
  padding: 10px 16px;
  background: #f5f5ff;
  border-left: 4px solid #e74c3c;
  border-radius: 0 6px 6px 0;
  line-height: 1.3;
}
.cm-content h2:first-child { margin-top: 0; }

.cm-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f0f23;
  margin: 24px 0 10px;
  padding-left: 14px;
  border-left: 3px solid #e74c3c;
  line-height: 1.4;
}

.cm-content h4 {
  font-size: .95rem;
  font-weight: 600;
  color: #333;
  margin: 16px 0 8px;
}

/* ─── Text ─── */
.cm-content p { margin-bottom: 16px; color: #333; line-height: 1.75; }
.cm-content strong { color: #0f0f23; }

/* ─── Unordered list ─── */
.cm-content ul:not(.cm-checklist):not(.cm-faq) {
  list-style: none;
  margin: 0 0 18px 0;
  padding: 0;
}
.cm-content ul:not(.cm-checklist):not(.cm-faq) li {
  padding: 7px 12px 7px 28px;
  position: relative;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}
.cm-content ul:not(.cm-checklist):not(.cm-faq) li:last-child { border-bottom: none; }
.cm-content ul:not(.cm-checklist):not(.cm-faq) li::before {
  content: '›';
  position: absolute;
  left: 10px;
  color: #e74c3c;
  font-weight: 700;
  font-size: 1.15em;
  line-height: 1.6;
}

/* ─── Ordered list (default) ─── */
.cm-content ol:not(.cm-steps-list) {
  list-style: none;
  counter-reset: cm-ol;
  margin: 0 0 18px 0;
  padding: 0;
}
.cm-content ol:not(.cm-steps-list) li {
  counter-increment: cm-ol;
  padding: 8px 12px 8px 42px;
  position: relative;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}
.cm-content ol:not(.cm-steps-list) li:last-child { border-bottom: none; }
.cm-content ol:not(.cm-steps-list) li::before {
  content: counter(cm-ol);
  position: absolute;
  left: 4px;
  top: 8px;
  width: 26px;
  height: 26px;
  background: #e74c3c;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: .78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ─── Steps list (visual) ─── */
ol.cm-steps-list {
  list-style: none;
  counter-reset: cm-step;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
ol.cm-steps-list li {
  counter-increment: cm-step;
  position: relative;
  padding: 12px 16px 12px 58px;
  background: #fff;
  border: 1px solid #e8e8f0;
  border-radius: 8px;
  color: #333;
  font-size: .95rem;
  line-height: 1.6;
  min-height: 50px;
}
ol.cm-steps-list li::before {
  content: counter(cm-step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: #e74c3c;
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
ol.cm-steps-list li strong { color: #0f0f23; }

/* ─── Checklist ─── */
ul.cm-checklist {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
ul.cm-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: #f9f9f9;
  border-radius: 6px;
  color: #333;
  font-size: .9rem;
  border: none;
}
ul.cm-checklist li::before {
  content: '✓';
  color: #27ae60;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1.5;
}
ul.cm-checklist li.fail::before { content: '✗'; color: #e74c3c; }
ul.cm-checklist li.warn::before { content: '!'; color: #e67e22; }

/* ─── Standard table ─── */
.cm-content table,
table.cm-article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .875rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}
.cm-content table thead th,
table.cm-article-table thead th {
  background: #0f0f23;
  color: #fff;
  padding: 11px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.cm-content table tbody td,
table.cm-article-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
  color: #333;
  vertical-align: middle;
}
.cm-content table tbody tr:nth-child(even) td,
table.cm-article-table tbody tr:nth-child(even) td { background: #fafafa; }
.cm-content table tbody tr:hover td,
table.cm-article-table tbody tr:hover td { background: #f0f0ff; }
.cm-content table tbody tr:last-child td,
table.cm-article-table tbody tr:last-child td { border-bottom: none; }

/* ─── Comparison table (light, color coded) ─── */
.cm-comparison-table {
  margin: 24px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cm-comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  margin: 0;
  border: none;
}
.cm-comparison-table table thead th {
  background: #0f0f23;
  color: #fff;
  padding: 12px 16px;
  text-align: center;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}
.cm-comparison-table table thead th:first-child { text-align: left; }
.cm-comparison-table table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
  text-align: center;
  vertical-align: middle;
  color: #333;
  font-size: .875rem;
}
.cm-comparison-table table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: #0f0f23;
  background: #fafafa;
}
.cm-comparison-table table tbody tr:last-child td { border-bottom: none; }
.cm-comparison-table table tbody tr:hover td { background: #f5f5ff; }
.cm-comparison-table table tbody tr:hover td:first-child { background: #f0f0f8; }

/* Color indicators */
.cm-comparison-table .good { color: #27ae60; font-weight: 600; }
.cm-comparison-table .warn { color: #e67e22; font-weight: 600; }
.cm-comparison-table .bad  { color: #e74c3c; font-weight: 600; }

/* ─── Calculation / Example Box ─── */
.cm-calc-box {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 4px solid #f39c12;
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 20px 0;
}
.cm-calc-title {
  color: #e65100;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: .95rem;
}
.cm-calc-box table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}
.cm-calc-box table thead { display: none; }
.cm-calc-box table td {
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  color: #333;
  font-size: .9rem;
  background: transparent !important;
}
.cm-calc-box table tr:last-child td {
  border-bottom: none;
  color: #e65100;
  font-weight: 700;
  font-size: 1rem;
  padding-top: 10px;
}
.cm-calc-box table td:last-child { text-align: right; font-weight: 600; }

/* ─── Info Box ─── */
.cm-info-box {
  background: #f0f7ff;
  border: 1px solid #b3d4f5;
  border-left: 4px solid #3498db;
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 20px 0;
}
.cm-info-box .cm-info-title {
  color: #1565c0;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cm-info-box ul, .cm-info-box ol { color: #1a3a6c; }
.cm-info-box a { color: #1565c0; }

/* Dark variant */
.cm-info-box--dark {
  background: #f1f8f1;
  border-color: #a5d6a7;
  border-left-color: #27ae60;
}
.cm-info-box--dark .cm-info-title { color: #1b5e20; }
.cm-info-box--dark ul, .cm-info-box--dark ol { color: #2e7d32; }

/* ─── Warning Box ─── */
.cm-warning-box {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 4px solid #f39c12;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
  color: #5d4037;
  font-size: .9rem;
}

/* ─── Callout ─── */
.cm-callout {
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cm-callout--gold {
  background: #fffbf0;
  border: 1px solid #f9e4a0;
  border-left: 4px solid #d4af37;
}
.cm-callout--gold .cm-callout-title { color: #b8860b; font-weight: 700; margin-bottom: 6px; }

/* ─── Pros / Cons ─── */
.cm-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.cm-pros {
  background: #f1f8f1;
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  padding: 16px 18px;
}
.cm-cons {
  background: #fdf1f1;
  border: 1px solid #ef9a9a;
  border-radius: 8px;
  padding: 16px 18px;
}
.cm-pros-title, .cm-cons-title {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cm-pros-title { color: #2e7d32; }
.cm-cons-title { color: #c62828; }
.cm-pros ul, .cm-cons ul {
  list-style: none;
  margin: 0; padding: 0;
}
.cm-pros li, .cm-cons li {
  padding: 5px 0 5px 20px;
  position: relative;
  font-size: .875rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  color: #333;
}
.cm-pros li:last-child, .cm-cons li:last-child { border-bottom: none; }
.cm-pros li::before { content: '✓'; position: absolute; left: 0; color: #27ae60; font-weight: 700; }
.cm-cons li::before { content: '✗'; position: absolute; left: 0; color: #e74c3c; font-weight: 700; }

/* ─── Stats ─── */
.cm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.cm-stat-box {
  background: #fff;
  border: 1px solid #e8e8f0;
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.cm-stat-value { font-size: 1.8rem; font-weight: 800; color: #e74c3c; line-height: 1; margin-bottom: 4px; }
.cm-stat-label { font-size: .78rem; color: #888; text-transform: uppercase; letter-spacing: .5px; }

/* ─── Badge ─── */
.cm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 600;
  vertical-align: middle;
}
.cm-badge--green  { background: #e8f5e9; color: #2e7d32; }
.cm-badge--red    { background: #fce4ec; color: #c62828; }
.cm-badge--yellow { background: #fff8e1; color: #e65100; }
.cm-badge--blue   { background: #e3f2fd; color: #1565c0; }

/* ─── Blockquote ─── */
.cm-content blockquote {
  border-left: 4px solid #e74c3c;
  margin: 20px 0;
  padding: 12px 20px;
  background: #fff5f5;
  border-radius: 0 8px 8px 0;
  color: #555;
  font-style: italic;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .cm-comparison-table { overflow-x: auto; }
  .cm-pros-cons { grid-template-columns: 1fr; }
  .cm-stats-grid { grid-template-columns: repeat(2, 1fr); }
  ol.cm-steps-list li { grid-template-columns: 36px 1fr; }
  .cm-content { padding: 20px 14px; }
}
