/* Shared chrome for internal pages — matches homepage body/footer/cards */

*, *::before, *::after { box-sizing: border-box; }

html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  position: relative;
  min-width: 320px;
  color: var(--text-color);
  font-family: Inter, -apple-system, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-color);
  background-image: url(/assets/img/bg.webp);
  background-repeat: no-repeat;
  background-size: 100% auto;
}
a { text-decoration: underline; transition: all 0.3s ease-in-out; color: var(--text-color); }
img { border-style: none; }

/* Page wrap */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem 0; }
.breadcrumb { font-size: 0.9em; color: #cfcfcf; margin: 0.5rem 0 1.5rem; }
.breadcrumb a { color: #cfcfcf; text-decoration: none; }
.breadcrumb a:hover { color: var(--theme-color); text-decoration: underline; }

.page-wrap h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.page-wrap h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 2.25rem 0 1rem;
}
.page-wrap h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
}
.page-wrap p { margin: 0 0 1rem; }
.page-wrap .intro { font-size: 1.05em; line-height: 1.65; max-width: 780px; }

/* CTA */
.cta-block { text-align: center; padding: 1.75em 0; font-size: 1.25em; }

/* Mirror list (playstake-style) */
.mirror-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.5rem 0 2rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}
.mirror-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.mirror-row:last-child { border-bottom: none; }
.mirror-row:hover { background: rgba(30,215,96,0.06); }
.mirror-row__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mirror-row__dot {
  width: 8px;
  height: 8px;
  background: var(--theme-color);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--theme-color);
}
.mirror-row__domain {
  font-size: 1.05em;
  font-weight: 600;
  color: #fff;
}
.mirror-row__status {
  font-size: 0.95em;
  color: var(--theme-color);
  margin-left: 0.5rem;
}
.mirror-row__btn {
  padding: 0.5em 1.1em;
  background: var(--theme-color);
  color: #fff !important;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95em;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.mirror-row__btn:hover { opacity: 0.85; }
@media (max-width: 540px) {
  .mirror-row { flex-wrap: wrap; gap: 0.75rem; }
  .mirror-row__status { display: none; }
}

/* HowTo numbered list */
.how-to {
  list-style: none;
  counter-reset: how-to;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.how-to li {
  counter-increment: how-to;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.25rem 1.5rem 1.25rem 4rem;
  position: relative;
  line-height: 1.55;
}
.how-to li::before {
  content: counter(how-to);
  position: absolute;
  left: 1.25rem;
  top: 1.1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--theme-color);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ accordion */
.faq-list { margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.faq {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.faq > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05em;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  gap: 1em;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after {
  content: "+";
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1;
}
.faq[open] > summary::after { content: "−"; }
.faq > p, .faq > div { margin: 0.85em 0 0.25em; line-height: 1.6; color: #cfcfcf; }

/* TOC (collapsible Table of Contents on articles) */
.toc {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem;
  max-width: 720px;
}
.toc > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1em;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after {
  content: "+";
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1;
  margin-left: 0.5em;
}
.toc[open] > summary::after { content: "−"; }
.toc ol {
  list-style: decimal;
  padding-left: 1.5em;
  margin: 1em 0 0.25em;
  color: #cfcfcf;
}
.toc li { margin: 0.4em 0; }
.toc a {
  color: #cfcfcf;
  text-decoration: none;
}
.toc a:hover { color: var(--theme-color); text-decoration: underline; }

/* Promotion cards (top-of-page hero cards) */
.promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.25rem;
  margin: 2rem 0 3rem;
}
@media (max-width: 540px) {
  .promo-cards { grid-template-columns: 1fr; }
}

/* Mobile header: keep only one CTA */
@media (max-width: 540px) {
  .header__buttons .btn-primary { display: none; }
}
.promo-card,
.promo-card * { box-sizing: border-box; }
.promo-card {
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.promo-card--casino { background: linear-gradient(135deg, #6a1b9a 0%, #4527a0 100%); }
.promo-card--sport { background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%); }
.promo-card--noplay { background: linear-gradient(135deg, #ad1457 0%, #6a1b9a 100%); }
.promo-card--code { background: linear-gradient(135deg, #c62828 0%, #ad1457 100%); }
.promo-card--cashback { background: linear-gradient(135deg, #1565c0 0%, #283593 100%); }
.promo-card__title {
  font-size: 1.3em;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.65em;
  line-height: 1.2;
}
.promo-card__desc {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.85);
  flex-grow: 1;
  line-height: 1.5;
  margin: 0 0 1.25em;
}
.promo-card__btn {
  display: block !important;
  width: 100% !important;
  background: #1ed760 !important;
  color: #ffffff !important;
  padding: 1em 1.5em !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  font-size: 1.05em !important;
  text-align: center !important;
  text-decoration: none !important;
  letter-spacing: 0.02em !important;
  cursor: pointer;
  border: none;
  box-shadow: inset 0 4px 8px 0 hsla(0, 0%, 100%, 0.31), 0 6px 18px rgba(30, 215, 96, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: 0.5em;
}
.promo-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 4px 8px 0 hsla(0, 0%, 100%, 0.45), 0 8px 22px rgba(30, 215, 96, 0.5);
  background: #25e96b !important;
}
.promo-card__btn:active { transform: translateY(0); }

/* Body cards (link-out cards on internal pages) */
.body-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 3rem 0 2rem;
}
@media (max-width: 900px) { .body-cards { grid-template-columns: repeat(2, 1fr); } }
.body-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none !important;
  color: #cfcfcf;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.body-card:hover {
  transform: translateY(-2px);
  border-color: var(--theme-color);
  background: rgba(30,215,96,0.06);
}
.body-card h3 { margin: 0 0 0.5em; color: #fff; font-size: 1.1em; }
.body-card p { margin: 0; font-size: 0.95em; line-height: 1.5; }
@media (max-width: 720px) { .body-cards { grid-template-columns: 1fr; } }

/* Footer (4 columns) */
.cs-footer {
  background: rgba(0,0,0,0.55);
  color: #cfcfcf;
  padding: 3rem 1.25rem 1.75rem;
  margin-top: 3rem;
  font-size: 0.95em;
  line-height: 1.55;
}
.cs-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.25rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}
.cs-footer__col h4 {
  color: #fff;
  font-size: 1em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.85em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cs-footer__col ul { list-style: none; padding: 0; margin: 0; }
.cs-footer__col li { margin: 0.4em 0; }
.cs-footer__col a { color: #cfcfcf; text-decoration: none; transition: color 0.2s; }
.cs-footer__col a:hover { color: #fff; text-decoration: underline; }
.cs-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.95em;
  color: #999;
}
.cs-footer__bottom p { margin: 0.5em 0; }
.cs-footer__copy { text-align: center; margin-top: 1em !important; }
@media (max-width: 900px) { .cs-footer__cols { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; } }
@media (max-width: 540px) { .cs-footer__cols { grid-template-columns: 1fr; gap: 1.5rem; } }
