/*
Theme Name: Astra Child Slot Minigames CZ
Template: astra
Version: 5.5.0
Description: Modern Czech iGaming Portal & MFCR Compliance Hub
*/

:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;
  --bg-dark-2: #1e293b;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-deep: #1d4ed8;
  --legal: #059669;
  --legal-bg: #ecfdf5;
  --warn: #d97706;
  --warn-bg: #fffbeb;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.10);
}

body.smg {
  background: var(--bg-page);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16.5px;
  line-height: 1.68;
  margin: 0;
}

.smg h1, .smg h2, .smg h3, .smg-brand span {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.smg-col { width: min(100% - 2rem, 78rem); margin-inline: auto; }

.smg-notice {
  background: var(--bg-dark);
  color: #e2e8f0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.smg-notice .smg-col {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0;
}
.smg-notice a { color: #93c5fd; text-decoration: none; font-weight: 600; }
.smg-notice a:hover { text-decoration: underline; }

.smg-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.smg-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  flex-wrap: wrap;
}
.smg-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.smg-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--bg-dark));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 8px;
}
.smg-mark i { background: #fff; border-radius: 2px; display: block; }
.smg-brand span { font-size: 1.25rem; line-height: 1.1; }
.smg-brand small { display: block; font-size: 0.74rem; color: var(--muted); font-weight: 500; font-family: "Inter", sans-serif; }

.smg-age {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--legal-bg);
  color: var(--legal);
  border: 1px solid #a7f3d0;
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
}

.smg-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; }
.smg-drop { position: relative; display: flex; align-items: center; }
.smg-drop > a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
}
.smg-drop > a:hover { background: #f1f5f9; color: var(--brand); }
.smg-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 17rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.45rem;
  box-shadow: var(--shadow-lg);
  z-index: 50;
}
.smg-drop:hover .smg-panel, .smg-drop.is-open .smg-panel { display: flex; flex-direction: column; }
.smg-panel a {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.smg-panel a:hover { background: #f1f5f9; color: var(--brand); }

.smg-main { padding: 1.75rem 0 3.5rem; }
.net-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 2rem;
  align-items: start;
}
.net-read article {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
}
.net-read h1 { font-size: clamp(1.9rem, 3.4vw, 2.65rem); line-height: 1.15; margin: 0.4rem 0 1rem; }
.net-read h2 { font-size: 1.5rem; margin: 2.1rem 0 0.75rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.net-read h3 { font-size: 1.12rem; margin: 1.35rem 0 0.4rem; }
.net-read p { margin: 0 0 1rem; color: var(--ink-soft); }
.net-read ul, .net-read ol { margin: 0.75rem 0 1.25rem; padding-left: 1.35rem; color: var(--ink-soft); }
.net-read li { margin-bottom: 0.45rem; }
.net-read a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.net-read table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.92rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: block;
  overflow-x: auto;
}
.net-read thead th {
  background: #f1f5f9;
  color: var(--ink);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.8rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.net-read tbody td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}
.net-read tbody tr:nth-child(even) { background: #f8fafc; }

.net-side { position: sticky; top: 5.5rem; display: grid; gap: 1rem; }
.net-toc, .net-calc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.net-toc-title, .net-calc-title {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.net-toc a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
}
.net-toc a:hover { color: var(--brand); }
.net-calc label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.82rem; margin-bottom: 0.55rem; color: var(--muted); font-weight: 600; }
.net-calc input, .net-calc select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.35rem 0.6rem;
  font: inherit;
  color: var(--ink);
}
.net-note { font-size: 0.78rem; color: var(--muted); margin: 0.5rem 0 0; }

.smg-board {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-2));
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  margin: 1.25rem 0 1.75rem;
}
.smg-board h2 { color: #fff; border: 0; padding: 0; margin: 0 0 0.35rem; font-size: 1.4rem; }
.smg-pay { color: #cbd5e1; font-size: 0.86rem; margin: 0 0 1rem; }
.smg-offers { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.smg-offer {
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.5rem 1rem;
  align-items: center;
}
.smg-idx {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--brand);
  font-weight: 800;
  display: grid;
  place-items: center;
}
.smg-go {
  background: var(--brand);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.smg-foot {
  background: var(--bg-dark);
  color: #cbd5e1;
  padding: 2.25rem 0;
  margin-top: 2rem;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.smg-foot h2 { color: #94a3b8; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.smg-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.smg-foot a { color: #93c5fd; text-decoration: none; font-size: 0.9rem; }
.foot-base { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; margin-top: 1.25rem; font-size: 0.82rem; color: #94a3b8; }

.smg-burger { display: none; }
#masthead, .ast-main-header-wrap, .site-header, #secondary { display: none !important; }

@media (max-width: 960px) {
  .net-shell { grid-template-columns: 1fr; }
  .net-side { position: static; }
  .net-read article { padding: 1.35rem 1.15rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .smg-offer { grid-template-columns: auto 1fr; }
  .smg-burger { display: block; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; }
  .smg-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 0.75rem; }
  .smg-nav.is-open { display: flex; }
}

@media (max-width: 960px) {
  .smg-drop { flex-direction: column; align-items: stretch; }
  .smg-panel { position: static; display: flex; flex-direction: column; box-shadow: none; border: 0; padding: 0 0 0.4rem 0.8rem; min-width: 0; }
}

.smg-photo {
  margin: 1.6rem 0;
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.smg-photo img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}
.smg-photo figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.84rem;
  color: var(--muted);
  background: #f8fafc;
  border-top: 1px solid var(--line);
}

/* Remove Astra scroll-to-top arrow and default footer white strip */
#ast-scroll-top,
.ast-scroll-top-icon,
.ast-scroll-to-top-right,
.ast-scroll-to-top-left,
#colophon,
.site-footer,
.ast-footer-copyright,
.ast-small-footer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
html, body.smg {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  background-color: var(--bg-page);
}
.smg-foot {
  margin-bottom: 0 !important;
}

/* === Fix ranking board (.smg-board) specificity & mobile layout (v5.5) === */
.net-read .smg-board {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-2));
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  margin: 1.25rem 0 1.75rem;
}
.net-read .smg-board h2 {
  color: #ffffff;
  border: 0;
  padding: 0;
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  line-height: 1.25;
}
.net-read .smg-board .smg-pay {
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0 0 1rem;
}
.net-read .smg-board .smg-offers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.net-read .smg-board .smg-offer {
  background: #ffffff;
  color: var(--ink);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  margin: 0;
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) auto auto;
  gap: 0.5rem 1rem;
  align-items: center;
}
.net-read .smg-board .smg-offer strong {
  color: var(--ink);
}
.net-read .smg-board .smg-offer small {
  color: var(--muted);
  font-size: 0.82rem;
}
.net-read .smg-board .smg-offer span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.net-read .smg-board .smg-idx {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--brand);
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}
.net-read .smg-board .smg-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: var(--brand);
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  box-sizing: border-box;
  transition: background 0.15s ease;
}
.net-read .smg-board .smg-go:hover {
  background: var(--brand-deep);
}

@media (max-width: 960px) {
  .net-read .smg-board {
    padding: 1.05rem 0.9rem;
    border-radius: 16px;
  }
  .net-read .smg-board .smg-offer {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.65rem 0.75rem;
    padding: 0.95rem;
    align-items: start;
  }
  .net-read .smg-board .smg-idx {
    width: 2.25rem;
    height: 2.25rem;
  }
  .net-read .smg-board .smg-offer > div:nth-child(2) {
    grid-column: 2;
    line-height: 1.4;
  }
  .net-read .smg-board .smg-offer > div:nth-child(3) {
    grid-column: 1 / -1;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    text-align: center;
    font-size: 1rem;
  }
  .net-read .smg-board .smg-offer > div:nth-child(4) {
    grid-column: 1 / -1;
  }
  .net-read .smg-board .smg-go {
    display: flex;
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 1rem;
  }
}
