/*
Theme Name: Top Crypto Casinos
Theme URI: https://topcryptocasinos.org.uk
Description: Custom casino affiliate theme for TopCryptoCasinos.org.uk
Version: 1.0.0
Author: TopCryptoCasinos
Author URI: https://topcryptocasinos.org.uk
Text Domain: nokyc
*/

/* ━━━━━━ CSS Custom Properties — Template 10 ━━━━━━ */
:root {
  --color-bg: #111111;
  --color-section: #1A1A1A;
  --color-card: #222222;
  --color-accent: #8B5CF6;
  --color-secondary: #5B3AA0;
  --color-text: #EEEEEE;
  --color-muted: #999999;
  --color-border: #333333;
  --color-cta-hover: #7C4FE0;
  --font-heading: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;
  --max-width: 1280px;
  --radius: 8px;
}

/* ━━━━━━ Reset & Base ━━━━━━ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-cta-hover); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.3; color: var(--color-text); }
h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
p { margin-bottom: 1.15rem; }
strong { color: #fff; }

/* ━━━━━━ Layout ━━━━━━ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.full-section { width: 100%; padding: 60px 0; }
.full-section:nth-child(even) { background: var(--color-section); }
.full-section:nth-child(odd) { background: var(--color-bg); }

/* ━━━━━━ Sticky Header + Glassmorphism ━━━━━━ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(17,17,17,.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; height: 64px; }
.site-logo { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: #fff; white-space: nowrap; }
.site-logo span { color: var(--color-accent); }

/* Desktop Nav */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav > li { position: relative; list-style: none; }
.main-nav > li > a { display: block; padding: 20px 16px; font-size: .9rem; color: var(--color-text); font-weight: 500; transition: color .2s; }
.main-nav > li > a:hover, .main-nav > li:hover > a { color: var(--color-accent); }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius); min-width: 220px; padding: 8px 0; z-index: 999; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.main-nav > li:hover .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown li a { display: block; padding: 8px 18px; font-size: .85rem; color: var(--color-text); }
.dropdown li a:hover { background: var(--color-section); color: var(--color-accent); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { width: 24px; height: 2px; background: var(--color-text); transition: .3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media(max-width:768px) {
  .hamburger { display: flex; }
  .nav-wrap { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--color-card); border-bottom: 1px solid var(--color-border); padding: 10px 0; }
  .nav-wrap.open { display: block; }
  .main-nav { flex-direction: column; }
  .main-nav > li > a { padding: 12px 20px; }
  .dropdown { position: static; display: none; border: none; box-shadow: none; background: var(--color-section); border-radius: 0; }
  .dropdown.open { display: block; }
  .dropdown li a { padding: 10px 32px; }
}

/* ━━━━━━ Hero ━━━━━━ */
.hero {
  min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(180deg, var(--color-section) 0%, var(--color-bg) 100%);
  padding: 80px 20px;
}
.hero h1 { font-size: 2.6rem; max-width: 900px; margin: 0 auto 1rem; }
.hero p { font-size: 1.15rem; color: var(--color-muted); max-width: 700px; margin: 0 auto 1.5rem; }
.hero .btn-primary { font-size: 1.1rem; padding: 14px 36px; }

/* Inner Hero (subpages) */
.inner-hero {
  min-height: 40vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(180deg, var(--color-section) 0%, var(--color-bg) 100%);
  padding: 80px 20px 60px;
}
.inner-hero.tall { min-height: 45vh; }
.inner-hero h1 { font-size: 2.2rem; margin-bottom: .75rem; }
.inner-hero p { color: var(--color-muted); font-size: 1.05rem; max-width: 650px; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1.2rem; }
.hero-badge {
  background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 8px 18px; font-size: .85rem; font-weight: 600; color: var(--color-accent);
}

/* ━━━━━━ Buttons ━━━━━━ */
.btn-primary {
  display: inline-block; background: var(--color-accent); color: #fff; font-weight: 700;
  padding: 12px 28px; border-radius: var(--radius); font-size: 1rem; text-transform: uppercase;
  letter-spacing: .5px; transition: background .2s, transform .15s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--color-cta-hover); transform: translateY(-1px); color: #fff; }

/* ━━━━━━ Casino Leaderboard Rows ━━━━━━ */
.casino-grid { display: flex; flex-direction: column; gap: 16px; }
.casino-row {
  display: flex; gap: 24px; align-items: center;
  background: var(--color-card); border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
  padding: 20px; position: relative;
  transition: box-shadow .2s;
}
.casino-row:hover { box-shadow: 0 4px 20px rgba(139,92,246,.15); }
.casino-left { flex: 0 0 30%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; position: relative; }
.casino-rank {
  position: absolute; top: -8px; left: -8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-accent); color: #fff; font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.casino-logo-wrap { width: 200px; height: 100px; display: flex; align-items: center; justify-content: center; }
.casino-logo-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.casino-name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; }
.casino-stars { color: #F5A623; font-size: .95rem; }
.casino-verified { font-size: .75rem; color: var(--color-accent); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.casino-verified::before { content: '✓'; }

.casino-right { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.casino-bonus { font-size: 1.25rem; font-weight: 700; color: #fff; }
.casino-stats { display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: var(--color-muted); }
.casino-stats span strong { color: var(--color-text); }
.payment-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.payment-tag {
  background: var(--color-section); border: 1px solid var(--color-border);
  border-radius: 4px; padding: 3px 10px; font-size: .75rem; color: var(--color-muted); text-transform: uppercase; font-weight: 600;
}
.bonus-toggle { background: none; border: 1px solid var(--color-border); border-radius: 4px; padding: 6px 14px; color: var(--color-accent); font-size: .8rem; cursor: pointer; transition: .2s; }
.bonus-toggle:hover { background: var(--color-section); }
.bonus-details { display: none; font-size: .85rem; color: var(--color-muted); padding: 8px 0 0; }
.bonus-details.open { display: block; }
.casino-cta-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.casino-cta-wrap .btn-primary { font-size: .95rem; padding: 10px 28px; }
.casino-disclaimer { font-size: .7rem; color: var(--color-muted); }

@media(max-width:768px) {
  .casino-row { flex-direction: column; text-align: center; padding: 16px; }
  .casino-left { flex: none; width: 100%; }
  .casino-rank { top: -6px; left: calc(50% - 16px); }
  .casino-right { width: 100%; }
  .casino-stats { justify-content: center; }
  .payment-tags { justify-content: center; }
  .casino-cta-wrap { justify-content: center; }
  .casino-cta-wrap .btn-primary { width: 100%; text-align: center; }
}

/* ━━━━━━ Category Cards (New/Crypto/Betting/Live) ━━━━━━ */
.category-section { padding: 50px 0; }
.category-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.category-card {
  background: var(--color-card); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--color-border); transition: transform .2s, box-shadow .2s;
}
.category-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(139,92,246,.12); }
.category-card h3 { margin-top: 0; }

/* ━━━━━━ Review Blocks ━━━━━━ */
.review-block {
  background: var(--color-card); border-radius: var(--radius); padding: 30px;
  border: 1px solid var(--color-border); margin-bottom: 30px;
}
.review-header { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.review-logo { width: 120px; height: 60px; object-fit: contain; border-radius: 6px; }
.review-title-wrap h3 { margin: 0 0 4px; }
.review-meta { font-size: .85rem; color: var(--color-muted); }

/* Review Screenshots */
.review-screenshots { display: flex; justify-content: center; gap: 10px; width: 100%; margin: 20px 0; }
.review-screenshots img { width: 50%; height: auto; border-radius: 8px; object-fit: cover; cursor: pointer; transition: opacity .2s; }
.review-screenshots img:hover { opacity: .85; }

.review-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.review-pros h4, .review-cons h4 { font-size: 1rem; margin-bottom: 10px; }
.review-pros h4 { color: #22C55E; }
.review-cons h4 { color: #EF4444; }
.review-pros ul, .review-cons ul { list-style: none; padding: 0; }
.review-pros li, .review-cons li { padding: 6px 0 6px 20px; position: relative; font-size: .9rem; color: var(--color-muted); }
.review-pros li::before { content: '+'; position: absolute; left: 0; color: #22C55E; font-weight: 700; }
.review-cons li::before { content: '−'; position: absolute; left: 0; color: #EF4444; font-weight: 700; }
@media(max-width:600px) { .review-pros-cons { grid-template-columns: 1fr; } }

/* ━━━━━━ TOC (Inline Collapsible) ━━━━━━ */
.toc-sidebar, .toc-desktop, .table-of-contents, [class*="toc"] {
  position: static !important; width: 100% !important; max-width: 600px !important;
  margin: 0 auto 30px auto !important; float: none !important;
}
.toc-wrap {
  max-width: 600px; margin: 0 auto 30px; background: var(--color-card);
  border: 1px solid var(--color-border); border-radius: var(--radius);
}
.toc-toggle {
  width: 100%; padding: 14px 20px; background: none; border: none;
  color: var(--color-text); font-family: var(--font-heading); font-size: 1rem;
  font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.toc-toggle .toc-icon { transition: transform .3s; font-size: .8rem; }
.toc-toggle.open .toc-icon { transform: rotate(180deg); }
.toc-list { display: none; padding: 0 20px 14px; list-style: none; }
.toc-list.open { display: block; }
.toc-list li { padding: 5px 0; }
.toc-list li a { font-size: .9rem; color: var(--color-muted); }
.toc-list li a:hover { color: var(--color-accent); }

/* ━━━━━━ FAQ Accordion ━━━━━━ */
.faq-section { padding: 60px 0; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  width: 100%; background: none; border: none; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  font-family: var(--font-heading); font-size: 1rem; color: var(--color-text); text-align: left;
  min-height: 48px;
}
.faq-question:hover { color: var(--color-accent); }
.faq-icon { font-size: 1.3rem; transition: transform .3s; flex-shrink: 0; margin-left: 12px; }
.faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer-inner { padding: 0 0 18px; font-size: .95rem; color: var(--color-muted); line-height: 1.7; }

/* ━━━━━━ Visual Dividers ━━━━━━ */
.visual-divider {
  height: 1px; margin: 40px auto;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent) 50%, transparent 100%);
  max-width: 600px; opacity: .4;
}

/* ━━━━━━ Author Box ━━━━━━ */
.author-box {
  display: flex; gap: 20px; align-items: center;
  background: var(--color-card); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--color-border); margin: 40px 0;
}
.author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-info h4 { margin: 0 0 4px; font-size: 1rem; }
.author-info p { margin: 0; font-size: .9rem; color: var(--color-muted); }

/* ━━━━━━ Responsive Tables ━━━━━━ */
.content-section table, .page-content table {
  width: 100%; border-collapse: collapse; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 20px 0; font-size: .9rem;
}
.content-section table th, .page-content table th {
  background: var(--color-section); color: var(--color-accent); font-weight: 700;
  padding: 12px 14px; text-align: left; white-space: nowrap;
}
.content-section table td, .page-content table td {
  padding: 10px 14px; border-bottom: 1px solid var(--color-border); color: var(--color-text);
}
.content-section table tr:hover td, .page-content table tr:hover td { background: rgba(139,92,246,.05); }
@media(max-width:768px) {
  .content-section table td, .content-section table th,
  .page-content table td, .page-content table th {
    min-width: 100px; padding: 8px 6px; font-size: 13px;
  }
}

/* ━━━━━━ Footer ━━━━━━ */
.site-footer {
  background: var(--color-section); border-top: 1px solid var(--color-border);
  padding: 40px 20px; text-align: center; font-size: .85rem; color: var(--color-muted); line-height: 1.8;
}
.footer-disclaimer a, .site-footer a { color: var(--color-accent) !important; text-decoration: underline; text-underline-offset: 2px; }

/* ━━━━━━ Sticky Mobile CTA Bar ━━━━━━ */
.mobile-cta-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: var(--color-card); border-top: 1px solid var(--color-border);
  height: 60px; align-items: center; justify-content: space-between; padding: 0 16px;
}
.mobile-cta-bar .mobile-cta-text { font-size: .85rem; font-weight: 600; color: var(--color-text); }
.mobile-cta-bar .mobile-cta-btn {
  background: #22C55E; color: #fff; font-weight: 700; padding: 8px 20px;
  border-radius: var(--radius); font-size: .85rem; text-transform: uppercase; text-decoration: none;
}
.mobile-cta-bar .mobile-cta-btn:hover { background: #1EA34B; color: #fff; }
.mobile-cta-bar .mobile-cta-close {
  background: none; border: none; color: var(--color-muted); font-size: 1.2rem; cursor: pointer; padding: 8px;
}
@media(max-width:768px) { .mobile-cta-bar.visible { display: flex; } }

/* ━━━━━━ Lightbox ━━━━━━ */
.lightbox-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.9);
  z-index: 2000; align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }

/* ━━━━━━ Contact Form ━━━━━━ */
.contact-form { max-width: 600px; margin: 0 auto; }
.contact-form label { display: block; margin-bottom: 4px; font-weight: 600; font-size: .9rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px; background: var(--color-section); border: 1px solid var(--color-border);
  border-radius: var(--radius); color: var(--color-text); font-family: var(--font-body); font-size: .95rem;
  margin-bottom: 16px;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-accent); }
.toast { display: none; background: var(--color-accent); color: #fff; padding: 12px 20px; border-radius: var(--radius); text-align: center; margin-top: 16px; font-weight: 600; }
.toast.show { display: block; }

/* ━━━━━━ Contact Info Box ━━━━━━ */
.contact-info-box {
  max-width: 600px; margin: 30px auto 0; background: var(--color-card);
  border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px;
  text-align: center;
}

/* ━━━━━━ Page Content ━━━━━━ */
.page-content { max-width: 800px; margin: 0 auto; padding: 40px 20px 60px; }
.page-content h2 { font-size: 1.6rem; }
.page-content h3 { font-size: 1.25rem; }
.content-section { padding: 0 20px; }

/* ━━━━━━ Misc ━━━━━━ */
.text-accent { color: var(--color-accent); }
.grid-heading { text-align: center; margin-bottom: 30px; }
.grid-heading h2 { font-size: 1.8rem; }
.grid-heading p { color: var(--color-muted); }
