/*
Theme Name: Casino Toplist
Theme URI: https://github.com
Description: One-page casino affiliate microsite. Accent color via --ct-accent CSS variable. Supports ES/DE/PT/DA/NL/FR markets.
Version: 1.0
Author: Artem
*/

/* ─── VARIABLES ─── */
:root {
  --ct-bg:         #0d1117;
  --ct-bg-2:       #161b22;
  --ct-bg-3:       #21262d;
  --ct-text:       #e6edf3;
  --ct-text-muted: #8b949e;
  --ct-border:     rgba(255,255,255,0.08);
  --ct-accent:     #e74c3c;
  --ct-accent-dim: rgba(231,76,60,0.12);
  --ct-accent-glow:rgba(231,76,60,0.25);
  --ct-radius:     12px;
  --ct-radius-sm:  8px;
  --ct-shadow:     0 4px 24px rgba(0,0,0,0.5);
}

/* ─── RESET ─── */
*,*::before,*::after { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ct-bg);
  color: var(--ct-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ct-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { line-height: 1.2; font-weight: 700; }
img { max-width: 100%; height: auto; }

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

/* ─── HEADER ─── */
.ct-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(13,17,23,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ct-border);
}
.ct-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.ct-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--ct-text);
  text-decoration: none;
  letter-spacing: -0.3px;
  line-height: 1;
}
.ct-logo .ct-logo-accent { color: var(--ct-accent); }
.ct-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.ct-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ct-text-muted);
  text-decoration: none;
  transition: color .15s;
}
.ct-nav a:hover { color: var(--ct-accent); text-decoration: none; }

/* Mobile burger */
.ct-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  line-height: 0;
}
.ct-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ct-text);
  border-radius: 2px;
}
.ct-mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 99;
  background: rgba(13,17,23,0.97);
  border-bottom: 1px solid var(--ct-border);
  padding: 8px 16px 16px;
  flex-direction: column;
  gap: 2px;
}
.ct-mobile-nav.is-open { display: flex; }
.ct-mobile-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--ct-radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--ct-text-muted);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.ct-mobile-nav a:hover { background: var(--ct-bg-2); color: var(--ct-text); text-decoration: none; }

/* ─── HERO ─── */
.ct-hero {
  padding: 120px 0 72px;
  background: linear-gradient(160deg, var(--ct-bg) 30%, var(--ct-accent-dim) 70%, var(--ct-bg) 100%);
  border-bottom: 1px solid var(--ct-border);
}
.ct-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ct-accent-dim);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ct-text-muted);
  margin-bottom: 24px;
}
.ct-live-dot {
  width: 7px; height: 7px;
  background: var(--ct-accent);
  border-radius: 50%;
  animation: ct-pulse 2s ease-in-out infinite;
}
@keyframes ct-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(1.5); }
}
.ct-hero-h1 {
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  line-height: 1.1;
}
.ct-hero-h1 em { font-style: normal; color: var(--ct-accent); }
.ct-hero-tagline {
  font-size: 17px;
  color: var(--ct-text-muted);
  max-width: 100%;
  margin-bottom: 36px;
  line-height: 1.55;
}
.ct-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ct-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--ct-radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 20px var(--ct-accent-glow);
  transition: opacity .15s, transform .15s;
}
.ct-cta-btn:hover { opacity:.88; transform:translateY(-1px); text-decoration:none; }

/* ─── SECTIONS ─── */
.ct-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--ct-border);
}
.ct-section-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}
.ct-section-subtitle {
  font-size: 14px;
  color: var(--ct-text-muted);
  margin-bottom: 36px;
}

/* ─── CASINO OFFER CARDS (override casino-offers plugin defaults) ─── */
.co-toplist-wrap {
  --co-accent:    var(--ct-accent) !important;
  --co-btn-bg:    var(--ct-accent) !important;
  --co-btn-hover: var(--ct-accent) !important;
  --co-card-bg:   var(--ct-bg-2)   !important;
}
.co-offer-card {
  background: var(--ct-bg-2) !important;
  border: 1px solid var(--ct-border) !important;
  border-radius: var(--ct-radius) !important;
  transition: transform .2s, box-shadow .2s !important;
}
.co-offer-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45) !important;
}

/* ─── ARTICLE CONTENT ─── */
.ct-article-body { max-width: 860px; }
.ct-article-body h2 {
  font-size: 22px; font-weight: 800;
  margin: 40px 0 12px;
  color: var(--ct-text);
}
.ct-article-body h3 {
  font-size: 17px; font-weight: 700;
  margin: 24px 0 8px;
  color: var(--ct-text);
}
.ct-article-body p {
  margin-bottom: 16px;
  color: #c9d1d9;
  line-height: 1.75;
}
.ct-article-body ul, .ct-article-body ol {
  margin: 0 0 16px 22px;
}
.ct-article-body li {
  margin-bottom: 6px;
  color: #c9d1d9;
  line-height: 1.6;
}
.ct-article-body strong { color: var(--ct-text); }
.ct-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.ct-article-body th {
  background: var(--ct-bg-3);
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 2px solid var(--ct-accent);
}
.ct-article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--ct-border);
}
.ct-article-body tr:last-child td { border-bottom: none; }

/* Visual containers for writer skill */
.ct-info-box {
  background: var(--ct-bg-2);
  border-left: 3px solid var(--ct-accent);
  border-radius: 0 var(--ct-radius-sm) var(--ct-radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.ct-warning-box {
  background: rgba(243,156,18,0.08);
  border-left: 3px solid #f39c12;
  border-radius: 0 var(--ct-radius-sm) var(--ct-radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.ct-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.ct-pros-cons > div {
  background: var(--ct-bg-2);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-sm);
  padding: 16px;
}

/* ─── STEPS / GUIDE ─── */
.ct-steps-list { list-style: none; margin: 0; padding: 0; }
.ct-step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.ct-step-num {
  width: 44px; height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--ct-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.ct-step-body h3 { font-size: 16px; margin-bottom: 4px; }
.ct-step-body p  { font-size: 14px; color: var(--ct-text-muted); margin: 0; }

/* ─── FAQ ─── */
.ct-faq-wrap { max-width: 800px; }
.ct-faq-wrap details {
  background: var(--ct-bg-2);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.ct-faq-wrap details[open] { border-color: var(--ct-accent); }
.ct-faq-wrap summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}
.ct-faq-wrap summary::-webkit-details-marker { display: none; }
.ct-faq-wrap summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--ct-accent);
  flex-shrink: 0;
  transition: transform .2s;
}
.ct-faq-wrap details[open] summary::after { transform: rotate(45deg); }
.ct-faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--ct-text-muted);
  line-height: 1.7;
}

/* ─── AUTHOR BOX ─── */
.ct-author-box {
  background: var(--ct-bg-2);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  padding: 28px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.ct-author-avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ct-accent);
  flex-shrink: 0;
  background: var(--ct-bg-3);
}
.ct-author-name  { font-size: 18px; font-weight: 700; margin-bottom: 3px; }
.ct-author-title { font-size: 13px; color: var(--ct-accent); margin-bottom: 10px; font-weight: 500; }
.ct-author-bio   { font-size: 14px; color: var(--ct-text-muted); line-height: 1.6; }

/* ─── FOOTER ─── */
.ct-footer {
  padding: 40px 0;
  font-size: 13px;
  color: var(--ct-text-muted);
  text-align: center;
}
.ct-rg-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  margin-bottom: 16px;
}
.ct-rg-links a {
  color: var(--ct-text-muted);
  text-decoration: underline;
  font-size: 12px;
}
.ct-rg-links a:hover { color: var(--ct-text); }
.ct-footer-disclaimer { opacity: .6; font-size: 12px; margin-top: 12px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .ct-nav    { display: none; }
  .ct-burger { display: flex; }
  .ct-hero   { padding: 96px 0 56px; }
  .ct-author-box { flex-direction: column; gap: 16px; padding: 20px; }
  .ct-pros-cons  { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ct-hero-h1 { font-size: 24px; }
  .ct-section-title { font-size: 20px; }
  .ct-container { padding: 0 14px; }
}

/* ─── ARTICLE BODY — READABLE CONTENT STYLES ─── */

.ct-article-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ct-text);
}

/* H2 inside article — accent stripe, generous spacing */
.ct-article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ct-text);
  border-left: 3px solid var(--ct-accent);
  padding: 0.15em 0 0.15em 0.9em;
  margin: 2.5rem 0 0.75rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* H3 inside article — subtle bottom line, smaller */
.ct-article-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ct-text);
  margin: 1.75rem 0 0.6rem;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--ct-border);
  line-height: 1.4;
}

/* H4 inside article */
.ct-article-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ct-text-muted);
  margin: 1.2rem 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

/* Paragraphs */
.ct-article-body p {
  margin: 0 0 1rem;
  color: rgba(230, 237, 243, 0.88);
}

/* ─── LISTS ─── */

.ct-article-body ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.25rem;
}

.ct-article-body ul li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  line-height: 1.6;
  color: rgba(230, 237, 243, 0.88);
}

.ct-article-body ul li:last-child {
  border-bottom: none;
}

.ct-article-body ul li::before {
  content: "▸";
  color: var(--ct-accent);
  position: absolute;
  left: 0;
  top: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.6;
}

.ct-article-body ol {
  padding-left: 0;
  margin: 0.5rem 0 1.25rem;
  counter-reset: ct-ol;
  list-style: none;
}

.ct-article-body ol li {
  position: relative;
  padding: 0.45rem 0 0.45rem 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  line-height: 1.6;
  color: rgba(230, 237, 243, 0.88);
  counter-increment: ct-ol;
}

.ct-article-body ol li:last-child {
  border-bottom: none;
}

.ct-article-body ol li::before {
  content: counter(ct-ol);
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--ct-accent-dim);
  border: 1px solid var(--ct-accent);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ct-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ─── TABLES ─── */

.ct-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.5rem;
  font-size: 0.9rem;
  border-radius: var(--ct-radius);
  overflow: hidden;
}

.ct-article-body table thead th {
  background: var(--ct-bg-3);
  color: var(--ct-accent);
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--ct-border);
}

.ct-article-body table tbody td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--ct-border);
  color: rgba(230, 237, 243, 0.85);
  vertical-align: top;
}

.ct-article-body table tbody tr:last-child td {
  border-bottom: none;
}

.ct-article-body table tbody tr:hover td {
  background: rgba(255,255,255,0.03);
}

/* ─── STRONG / EM ─── */
.ct-article-body strong {
  color: var(--ct-text);
  font-weight: 600;
}

.ct-article-body em {
  color: var(--ct-text-muted);
  font-style: italic;
}

/* ─── RESPONSIVE ARTICLE ─── */
@media (max-width: 768px) {
  .ct-article-body h2 {
    font-size: 1.15rem;
    margin-top: 2rem;
  }
  .ct-article-body h3 {
    font-size: 0.98rem;
  }
  .ct-article-body table {
    font-size: 0.8rem;
  }
  .ct-article-body table thead th,
  .ct-article-body table tbody td {
    padding: 0.5rem 0.6rem;
  }
}

/* ─── CONTENT CARD BLOCKS ─── */

/* Stats row */
.ct-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin: 1rem 0 1.75rem;
}
.ct-stat {
  background: var(--ct-bg-3);
  border: 1px solid var(--ct-border);
  border-top: 2px solid var(--ct-accent);
  border-radius: var(--ct-radius);
  padding: 16px 12px;
  text-align: center;
}
.ct-stat__number {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ct-accent);
  line-height: 1.1;
}
.ct-stat__label {
  display: block;
  font-size: 0.7rem;
  color: var(--ct-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 5px;
}

/* Topic cards (icon + title + body) */
.ct-topic-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 1rem 0 1.75rem;
}
.ct-topic-card {
  background: var(--ct-bg-2);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  padding: 18px 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.ct-topic-card:hover {
  border-color: var(--ct-accent);
  transform: translateY(-2px);
}
.ct-topic-card-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 10px;
}
.ct-topic-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ct-text);
  margin-bottom: 6px;
}
.ct-topic-card-body {
  font-size: 0.83rem;
  color: var(--ct-text-muted);
  line-height: 1.55;
}

/* Info / tip / warning / danger boxes */
.ct-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--ct-radius);
  margin: 1rem 0 1.5rem;
  background: var(--ct-bg-2);
  border-left: 3px solid var(--ct-accent);
}
.ct-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ct-text);
  font-size: 0.9rem;
}
.ct-box p, .ct-box span.ct-box-text {
  font-size: 0.875rem;
  color: rgba(230,237,243,0.8);
  line-height: 1.6;
  margin: 0;
}
.ct-box-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 1px; }
.ct-box--tip    { border-left-color: #27ae60; background: rgba(39,174,96,0.06); }
.ct-box--warning{ border-left-color: #f39c12; background: rgba(243,156,18,0.06); }
.ct-box--danger { border-left-color: #e74c3c; background: rgba(231,76,60,0.07); }
.ct-box--info   { border-left-color: #2980b9; background: rgba(41,128,185,0.06); }

/* Enhanced pros/cons — override existing basic version */
.ct-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 1rem 0 1.75rem;
}
.ct-pros, .ct-cons {
  background: var(--ct-bg-2);
  border-radius: var(--ct-radius);
  padding: 18px 16px;
}
.ct-pros { border-top: 3px solid #27ae60; }
.ct-cons { border-top: 3px solid #e74c3c; }
.ct-pros-title { color: #27ae60; }
.ct-cons-title { color: #e74c3c; }
.ct-pros-title, .ct-cons-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ct-pros ul li::before { content: "✓"; color: #27ae60; }
.ct-cons ul li::before { content: "✗"; color: #e74c3c; }

/* Key-fact badge */
.ct-key-fact {
  display: inline-block;
  background: var(--ct-accent-dim);
  border: 1px solid var(--ct-accent);
  color: var(--ct-accent);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

/* In-content image */
.ct-article-img {
  width: 100%;
  border-radius: var(--ct-radius);
  margin: 1.25rem 0 1.75rem;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid var(--ct-border);
}
.ct-article-img-caption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ct-text-muted);
  margin-top: -1.25rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Responsive card blocks */
@media (max-width: 600px) {
  .ct-pros-cons   { grid-template-columns: 1fr; }
  .ct-stats       { grid-template-columns: repeat(2, 1fr); }
  .ct-topic-cards { grid-template-columns: 1fr; }
}
