/* Ice Casino Polska — static SEO theme */
:root {
  --bg: #07111f;
  --bg-section: #0d1b2e;
  --bg-card: #111f35;
  --text: #f4f7fb;
  --muted: #b7c3d8;
  --ice: #3bbcff;
  --gold: #f4c542;
  --cta-gradient: linear-gradient(135deg, #f4c542 0%, #ff9f1c 100%);
  --border: rgba(59, 188, 255, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --header-h: 80px;
  --header-offset: 120px;
  --max-w: 1200px;
  --header-max: 1280px;
  --ice-gradient: linear-gradient(135deg, #3bbcff 0%, #7dd3fc 45%, #2a9fd6 100%);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-offset);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -15%, rgba(59, 188, 255, 0.1), transparent);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ice);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(3, 12, 28, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 10001;
}

.logo-wordmark {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.45rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: clamp(0.72rem, 1.8vw, 0.88rem);
}

.logo-ice {
  background: var(--ice-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.05em;
}

.logo-casino {
  color: var(--text);
}

.logo-polska {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: rgba(17, 31, 53, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  z-index: 10001;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  justify-self: center;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0.15rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.header-cta-desktop {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.header-cta-mobile {
  display: none;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.header-cta-mobile .btn-cta,
.header-cta-mobile .btn-secondary {
  width: 100%;
  justify-content: center;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #07111f;
  background: var(--cta-gradient);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(255, 159, 28, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(244, 197, 66, 0.45);
  color: #07111f;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(17, 31, 53, 0.9);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--ice);
  color: var(--ice);
  transform: translateY(-1px);
}

.btn-primary {
  color: #07111f;
}

/* Page hero — all pages (2-column banner) */
.page-hero {
  padding: 1.75rem 0 2.5rem;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 56px;
  align-items: center;
}

.page-hero--home .page-hero-grid {
  min-height: calc(100vh - var(--header-offset) - 3rem);
}

.page-hero-content {
  text-align: left;
}

.page-hero-content h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--text);
  max-width: 820px;
}

.page-hero-content .breadcrumb {
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.page-hero-content .breadcrumb a {
  color: var(--muted);
}

.page-hero-content .breadcrumb a:hover {
  color: var(--gold);
}

.page-hero-content .hero-lead {
  max-width: 820px;
}

.page-hero-content .hero-actions {
  margin-top: 1.25rem;
}

.page-hero-media {
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.page-hero-media img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  display: block;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-trust li::before {
  content: "✓ ";
  color: var(--ice);
  font-weight: 700;
}

/* Quick section cards */
.quick-sections {
  padding: 0 0 2.5rem;
}

.quick-sections h2 {
  font-size: 1.45rem;
  color: var(--gold);
  margin: 0 0 1.25rem;
}

.quick-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.quick-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-card:hover {
  border-color: rgba(244, 197, 66, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  color: var(--text);
}

.quick-card-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.quick-card h3 {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
  color: var(--gold);
}

.quick-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.quick-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ice);
  margin-top: 0.35rem;
}

/* Inner page hero */
.hero,
.page-hero-sub {
  padding: 1.25rem 0 1.75rem;
  text-align: left;
}

.page-hero-sub h1,
.hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--text);
  max-width: 820px;
}

.hero h1 span.accent {
  color: var(--ice);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 820px;
  margin: 0 0 1rem;
  text-align: left;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-start;
  margin-top: 1.25rem;
}

.content-prose {
  max-width: 820px;
}

.content-prose > h2,
.content-prose > h3,
.content-prose > p,
.content-prose > ul,
.content-prose > ol,
.content-prose > .section-block,
.content-prose > .trust-block,
.content-prose > .promo-box,
.content-prose > .data-table,
.content-prose > .pros-cons,
.content-prose > .cta-inline,
.content-prose > .faq-section {
  max-width: 820px;
}

/* Sections */
.section-block {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.content-section h2 {
  font-size: 1.45rem;
  color: var(--gold);
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.content-section h3 {
  font-size: 1.12rem;
  color: var(--ice);
  margin: 1.5rem 0 0.75rem;
}

.content-section p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.content-section ul,
.content-section ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  color: var(--muted);
}

.content-section li {
  margin-bottom: 0.45rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(244, 197, 66, 0.35);
  transform: translateY(-2px);
}

.card h3 {
  margin-top: 0;
  font-size: 1.08rem;
  color: var(--text);
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.pros-cons .card.pros {
  border-color: rgba(59, 188, 255, 0.35);
}

.pros-cons .card.cons {
  border-color: rgba(255, 120, 100, 0.3);
}

.promo-box {
  background: var(--bg-card);
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 1.5rem 0;
}

.promo-code {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 0.5rem 0 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border);
}

.data-table th {
  background: var(--bg-card);
  color: var(--gold);
}

.data-table td {
  color: var(--muted);
}

.link-hub {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.link-hub ul {
  columns: 2;
  column-gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-hub li {
  margin-bottom: 0.5rem;
  break-inside: avoid;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 1rem 0 0;
}

.breadcrumb a {
  color: var(--muted);
}

/* FAQ */
.faq-section details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.faq-section summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section details[open] summary {
  color: var(--gold);
  border-bottom: 1px solid var(--border);
}

.trust-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ice);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 1.5rem;
}

.trust-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-section .faq-answer {
  padding: 1rem 1.25rem 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Payment strip */
.payment-strip {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  margin: 2rem 0;
}

.payment-strip h2 {
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1rem;
  font-weight: 500;
}

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 1.75rem;
}

.payment-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.payment-icon {
  width: 52px;
  height: 34px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--gold);
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--gold);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  margin: 0.35rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.disclaimer {
  max-width: 820px;
  margin: 0.75rem auto 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #8a9bb5;
}

main,
.page-main {
  padding-bottom: 2rem;
}

.cta-inline {
  margin: 1.5rem 0;
}

/* Mobile nav — dropdown panel, not fullscreen */
@media (max-width: 1100px) {
  .header-container {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
  }

  .nav-toggle {
    display: flex;
    grid-column: 2;
    justify-self: end;
  }

  .header-cta-desktop {
    display: none;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    position: absolute;
    top: calc(var(--header-h) + 6px);
    left: 24px;
    right: 24px;
    background: rgba(8, 20, 40, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 0.35rem 0.85rem 1rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    pointer-events: none;
    max-height: min(72vh, 560px);
    overflow-y: auto;
    z-index: 10000;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 0.5rem;
    font-size: 1.02rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav li:last-of-type a {
    border-bottom: none;
  }

  .header-cta-mobile {
    display: flex;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: 0 !important;
  }

  .page-hero-media {
    max-width: 100%;
    justify-self: stretch;
    order: 2;
  }

  .page-hero-content {
    order: 1;
  }

  .quick-cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .link-hub ul {
    columns: 1;
  }
}

@media (min-width: 1101px) {
  .nav-toggle {
    display: none !important;
  }

  .header-cta-mobile {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-block {
    padding: 1.25rem 1.25rem;
  }

  .quick-cards-grid {
    grid-template-columns: 1fr;
  }

  .logo-wordmark {
    font-size: 0.65rem;
  }

  .logo-ice {
    font-size: 0.95rem;
  }
}

html,
body {
  overflow-x: hidden;
}

/* Treść złożona wyłącznie z divów (typografia jak h2/h3/p/listy) */
.content-section .txt {
  margin: 0 0 1rem;
  color: var(--muted);
}

.content-section .block-heading {
  font-size: 1.45rem;
  color: var(--gold);
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.content-section .sub-heading {
  font-size: 1.12rem;
  color: var(--ice);
  margin: 1.5rem 0 0.75rem;
}

.content-section .bullet-list {
  margin: 0 0 1rem;
  padding-left: 0;
  color: var(--muted);
}

.content-section .bullet-item {
  margin: 0 0 0.45rem 1.25rem;
  position: relative;
  padding-left: 0.35rem;
}

.content-section .bullet-item::before {
  content: "•";
  position: absolute;
  left: -0.85rem;
  color: var(--ice);
}

.content-section.faq-blocks .faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.content-section.faq-blocks .faq-q {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.content-section.faq-blocks .faq-a {
  color: var(--muted);
}

[data-copy-promo].btn-secondary {
  cursor: pointer;
  border: none;
  font: inherit;
}

/* Legacy hero visual — avoid full-width top banners */
.page-hero-visual {
  display: none;
}

/* Related guides */
.related-guides {
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.related-guides h2 {
  font-size: 1.45rem;
  color: var(--gold);
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.related-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.guide-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  border-color: rgba(59, 188, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--text);
}

.guide-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--ice);
}

.guide-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Footer trust */
.footer-updated {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.5rem 0 0.75rem;
}

/* Legal / trust pages */
.legal-page h1 {
  margin-bottom: 0.5rem;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.legal-page h2 {
  margin-top: 2rem;
}
