/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  color: #2D3436;
  background: #FFFFFF;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: #2D3436;
}
h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: #6C5CE7; text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }
blockquote {
  border-left: 4px solid #6C5CE7;
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: #F8F9FA;
  font-style: italic;
  color: #636E72;
}

/* === LAYOUT === */
.site-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* === HEADER === */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid #DFE6E9;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #2D3436;
  text-decoration: none;
  white-space: nowrap;
}
.site-logo span { color: #6C5CE7; }
.site-logo:hover { text-decoration: none; }

/* Nav */
.main-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.main-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #636E72;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: #F0EDFC;
  color: #6C5CE7;
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #DFE6E9;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 1.2rem;
  cursor: pointer;
  color: #2D3436;
}

/* === BREADCRUMBS === */
.breadcrumbs {
  padding: 1rem 0 0.5rem;
  font-size: 0.85rem;
  color: #B2BEC3;
}
.breadcrumbs a { color: #6C5CE7; }
.breadcrumbs span { margin: 0 0.35rem; }

/* === CONTENT === */
.page-content {
  padding-bottom: 3rem;
}
.page-content h1 {
  margin-top: 0.5rem;
}

/* === TABLES === */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead th {
  background: #6C5CE7;
  color: #FFFFFF;
  font-weight: 600;
  text-align: left;
  padding: 0.65rem 0.75rem;
}
thead th:first-child { border-radius: 8px 0 0 0; }
thead th:last-child { border-radius: 0 8px 0 0; }
tbody td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #DFE6E9;
}
tbody tr:nth-child(even) { background: #F8F9FA; }
tbody tr:hover { background: #F0EDFC; }

/* === ALERT BOXES === */
.box {
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.box-warning {
  background: #FFF5F5;
  border-left: 4px solid #FF7675;
  color: #C0392B;
}
.box-success {
  background: #F0FFF4;
  border-left: 4px solid #00B894;
  color: #00835A;
}
.box-info {
  background: #F0EDFC;
  border-left: 4px solid #6C5CE7;
  color: #4A3DAD;
}
.box strong { display: block; margin-bottom: 0.25rem; }

/* === CTA BUTTONS === */
.cta-block {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: #F8F9FA;
  border-radius: 12px;
}
.cta-block p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: #636E72;
}
.btn {
  display: inline-block;
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.btn-purple {
  background: #6C5CE7;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(108,92,231,0.3);
}
.btn-purple:hover {
  background: #5A4BD1;
  box-shadow: 0 6px 16px rgba(108,92,231,0.4);
  color: #FFFFFF;
}
.btn-green {
  background: #00B894;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0,184,148,0.3);
}
.btn-green:hover {
  background: #00A381;
  box-shadow: 0 6px 16px rgba(0,184,148,0.4);
  color: #FFFFFF;
}

/* === CALCULATOR === */
.calc-container {
  background: #FFFFFF;
  border: 1px solid #6C5CE7;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(108,92,231,0.1);
  overflow: hidden;
  margin: 1.5rem 0;
}
.calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #6C5CE7;
  color: #FFFFFF;
}
.calc-header h2 {
  margin: 0;
  color: #FFFFFF;
  font-size: 1.15rem;
}
.calc-header select {
  background: rgba(255,255,255,0.2);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.calc-header select option { color: #2D3436; background: #FFFFFF; }
.calc-inputs {
  padding: 1.25rem;
}
.calc-field {
  margin-bottom: 1rem;
}
.calc-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #2D3436;
}
.calc-field input,
.calc-field select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #DFE6E9;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: border-color 0.2s;
}
.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: #6C5CE7;
  box-shadow: 0 0 0 3px rgba(108,92,231,0.1);
}
.calc-results {
  background: #F8F9FA;
  border-top: 1px solid #DFE6E9;
  padding: 1.25rem;
}
.calc-results h3 {
  margin-top: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #636E72;
  margin-bottom: 1rem;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid #EAEEF0;
}
.result-row:last-of-type { border-bottom: none; }
.result-label {
  font-size: 0.9rem;
  color: #636E72;
}
.result-value {
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #2D3436;
}
.result-value.big {
  font-size: 1.5rem;
  color: #6C5CE7;
}
.contribution-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: 0.5rem;
}
.tag-green { background: #E6F9F1; color: #00835A; }
.tag-yellow { background: #FFF8E1; color: #B8860B; }
.tag-red { background: #FFF5F5; color: #C0392B; }

/* Progress bar */
.progress-container {
  margin: 1rem 0;
}
.progress-bar-bg {
  height: 24px;
  background: #DFE6E9;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 12px;
  transition: width 0.4s ease, background 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF;
  min-width: 2.5rem;
}
.progress-label {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-weight: 600;
}
.progress-green { color: #00835A; }
.progress-yellow { color: #B8860B; }
.progress-red { color: #C0392B; }

.deadline-warning {
  background: #FFF5F5;
  border: 1px solid #FF7675;
  color: #C0392B;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.scenario-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.scenario-btn {
  background: #F0EDFC;
  border: 1px solid #6C5CE7;
  color: #6C5CE7;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.scenario-btn:hover {
  background: #6C5CE7;
  color: #FFFFFF;
}

/* Custom input reveal */
.custom-input {
  display: none;
  margin-top: 0.5rem;
}
.custom-input.visible { display: block; }

/* === FAQ ACCORDION === */
.faq-section { margin-bottom: 2rem; }
.faq-item {
  border-bottom: 1px solid #DFE6E9;
}
.faq-item h3 {
  margin: 0;
  font-size: 1rem;
}
.faq-item h3 button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #2D3436;
  padding: 1rem 2rem 1rem 0;
  cursor: pointer;
  position: relative;
  line-height: 1.4;
}
.faq-item h3 button::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: #6C5CE7;
  transition: transform 0.2s;
}
.faq-item.open h3 button::after {
  content: '\2212';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-answer-inner {
  padding: 0 0 1rem;
  font-size: 0.95rem;
  color: #636E72;
}
.faq-answer-inner a { color: #6C5CE7; }

/* === BLOG CARDS === */
.blog-grid {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.blog-card {
  border: 1px solid #DFE6E9;
  border-radius: 10px;
  padding: 1.25rem;
  transition: box-shadow 0.2s;
}
.blog-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.blog-card .tag {
  display: inline-block;
  background: #F0EDFC;
  color: #6C5CE7;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.blog-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}
.blog-card h3 a { color: #2D3436; }
.blog-card h3 a:hover { color: #6C5CE7; }
.blog-card .meta {
  font-size: 0.8rem;
  color: #B2BEC3;
  margin-bottom: 0.5rem;
}
.blog-card p {
  font-size: 0.9rem;
  color: #636E72;
  margin-bottom: 0.75rem;
}
.blog-card .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6C5CE7;
}

/* === FOOTER === */
.site-footer {
  background: #2D3436;
  color: #B2BEC3;
  padding: 2rem 0;
  margin-top: 3rem;
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
}
.footer-links a {
  color: #DFE6E9;
  transition: color 0.2s;
}
.footer-links a:hover { color: #6C5CE7; text-decoration: none; }
.footer-copy {
  border-top: 1px solid #444;
  padding-top: 1rem;
  margin-top: 1rem;
  color: #636E72;
  font-size: 0.8rem;
}
.footer-copy p { margin-bottom: 0.25rem; }

/* === INTERNAL LINK BOXES === */
.related-links {
  background: #F8F9FA;
  border-radius: 10px;
  padding: 1.25rem;
  margin: 2rem 0;
}
.related-links h3 {
  margin-top: 0;
  font-size: 1rem;
  color: #636E72;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}
.related-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-links li {
  margin-bottom: 0.5rem;
}
.related-links a {
  font-weight: 600;
}

/* === RESPONSIBLE GAMBLING === */
.rg-org-list {
  list-style: none;
  padding: 0;
}
.rg-org-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #DFE6E9;
}
.rg-org-list li strong { display: block; }
.rg-org-list li a { font-weight: 600; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #DFE6E9;
    flex-direction: column;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.6rem 0.5rem; }
  .site-header { position: relative; }
  .header-inner { position: relative; }
  .result-row { flex-direction: column; gap: 0.15rem; }
  .scenario-buttons { flex-direction: column; }
  table { font-size: 0.8rem; }
  thead th, tbody td { padding: 0.5rem; }
}

@media (min-width: 769px) {
  .calc-field {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .calc-field label {
    min-width: 180px;
    margin-bottom: 0;
  }
  .calc-field input,
  .calc-field select {
    flex: 1;
  }
}

/* 1xBet Logo in Navigation */
.nav-logo img, .nav__logo img, .site-logo img, .logo img {
  height: 24px;
  width: auto;
  vertical-align: middle;
  margin-right: 6px;
}

/* Author Byline */
.author-byline { display:flex; align-items:center; gap:12px; margin:16px 0 24px; padding:12px 16px; background:rgba(0,0,0,0.03); border-radius:8px; }
.author-avatar { width:40px; height:40px; border-radius:50%; object-fit:cover; }
.author-info { display:flex; flex-direction:column; }
.author-name { font-weight:600; font-size:14px; display:flex; align-items:center; gap:4px; }
.author-role { font-size:12px; color:#666; }
.verified-badge { flex-shrink:0; }

/* Author Box */
.author-box { display:flex; gap:20px; padding:24px; margin:40px 0 20px; border:1px solid #e0e0e0; border-radius:12px; background:#fafafa; }
.author-box-photo { width:80px; height:80px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.author-box-content { flex:1; }
.author-box-name { font-size:18px; margin:0 0 8px; display:flex; align-items:center; gap:6px; }
.author-box-bio { font-size:14px; color:#444; margin:0 0 12px; line-height:1.5; }
.author-box-links { display:flex; gap:16px; font-size:13px; }
.author-link { color:inherit; text-decoration:underline; }
.author-twitter { color:#1DA1F2; text-decoration:none; }
.reviewer-line { font-size:13px; color:#666; margin:8px 0 32px; padding-left:24px; border-left:3px solid #e0e0e0; }

@media (max-width:600px) {
  .author-box { flex-direction:column; align-items:center; text-align:center; }
  .author-box-links { justify-content:center; }
}
.share-buttons{display:flex;align-items:center;gap:8px;margin:24px 0;padding:16px;border-top:1px solid #e0e0e0}
.share-buttons span{font-size:13px;color:#666}
.share-btn{display:inline-flex;align-items:center;justify-content:center;padding:6px 14px;border-radius:4px;font-size:13px;text-decoration:none;color:#fff}
.share-x{background:#000}
.share-wa{background:#25D366}
.share-tg{background:#0088cc}

@media print{
  nav,.site-nav,.nav,.hamburger,.mobile-sticky-bar,.share-buttons,.cta-primary,.cta-secondary,.cta-button,.cta,.author-byline,.sidebar,footer .footer-grid,footer .footer-disclosure{display:none!important}
  body{font-size:12pt;color:#000;background:#fff}
  main,article,.content-area{max-width:100%;margin:0;padding:0}
  a{color:#000;text-decoration:underline}
  img{max-width:100%!important}
  .author-box{border:1px solid #ccc;page-break-inside:avoid}
  table{border-collapse:collapse}
  td,th{border:1px solid #ccc;padding:4px 8px}
}

.blog-pagination{display:flex;justify-content:center;gap:12px;margin:32px 0;padding:16px}
.blog-pagination a,.page-current{padding:8px 16px;border-radius:4px;font-size:14px;text-decoration:none}
.page-current{background:#eee;font-weight:600}

/* 1xBet logo sizing fix */
img[alt="1xBet"]{max-width:110px;height:auto}
footer img[alt="1xBet"]{max-width:82px}
.site-footer img[alt="1xBet"]{max-width:82px}
.footer img[alt="1xBet"]{max-width:82px}
.footer__bottom img[alt="1xBet"]{max-width:82px}

.affiliate-disclosure{font-size:12px;color:#888;margin:4px 0 16px;font-style:italic}

.data-note{font-size:13px;color:#888;border-left:3px solid #ddd;padding-left:12px;margin:8px 0 16px}

/* Fix overflow on share buttons and author box */
.share-buttons, .author-box, .reviewer-line { max-width: 100%; overflow: hidden; box-sizing: border-box; }
main, article, .content, .content-area, .page-content, .page-wrapper { overflow-x: hidden; }

.reviewer-links { display:flex; gap:12px; margin-top:8px; font-size:13px; }
.reviewer-links a { color:#1B6CB0; text-decoration:underline; }
