/* ==========================================================================
   Polskie Kasyno Online — main stylesheet
   ========================================================================== */

/* ----- reset ----- */
a, blockquote, body, button, dd, dl, figcaption, figure,
h1, h2, h3, h4, li, ol, p, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
:focus { outline: 0 !important; }

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

/* ----- variables ----- */
:root {
  --color-bg: #ffffff;
  --color-surface: #f5f6f8;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-primary: #e63950;
  --color-primary-hover: #c92e43;
  --color-rank-1: #e63950;
  --color-rank-2: #22c55e;
  --color-rank-3: #2563eb;
  --color-rank-default: #9ca3af;
  --color-star: #f5a623;
  --color-dark: #171722;
  --shadow-card: 0 2px 8px rgba(0,0,0,.06);
  --shadow-card-hover: 0 4px 16px rgba(0,0,0,.10);
  --radius-card: 14px;
  --radius-btn: 999px;
  --font-base: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ----- font ----- */
@font-face {
  font-family: 'Geologica';
  src: url('../Geologica-VariableFont_CRSV,SHRP,slnt,wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-display: swap;
}

html, body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden { display: none !important; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-logo img {
  height: 56px;
  width: auto;
}

.header-nav-desktop {
  display: flex;
  gap: 28px;
  margin-left: 32px;
  flex: 1;
}

.header-nav-item {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .15s ease;
  cursor: pointer;
}
.header-nav-item:hover { color: var(--color-primary); }

.header-nav-item .nav-arrow {
  width: 10px;
  height: 10px;
  opacity: .6;
  transition: transform .15s ease;
}
.header-nav-item:hover .nav-arrow { transform: rotate(180deg); }

.header-search-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background .15s ease;
}
.header-search-btn:hover { background: var(--color-surface); }

.header-mobile-buttons-wrapper { display: none; }
.header-buttons-wrapper { display: none; }
.overlay { display: none; }
.header-burger-button {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: var(--color-bg);
  padding: 48px 0 24px;
}

.hero-title {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--color-text);
}

/* ==========================================================================
   INTRO BLOCK (meta + paragraph)
   ========================================================================== */
.page-intro {
  background: var(--color-surface);
  padding: 32px 0 40px;
}

.intro-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.intro-meta strong { color: var(--color-text); font-weight: 600; }
.intro-meta a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(230,57,80,.35);
  transition: text-decoration-color .15s ease;
}
.intro-meta a:hover { text-decoration-color: var(--color-primary); }
.intro-meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.intro-meta-divider { color: var(--color-border); }
.intro-meta-tag {
  background: var(--color-surface);
  color: var(--color-text-muted);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.intro-text {
  font-size: 16px;
  line-height: 1.65;
  color: #2a2a2a;
  max-width: 1100px;
}

/* ==========================================================================
   CASINO RANKING CARDS
   ========================================================================== */
.ranking {
  padding: 32px 0 16px;
  background: var(--color-bg);
}

.casino-card {
  position: relative;
  margin-bottom: 36px;
}

/* numbered badge — top-left corner */
.rank-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 10px 10px 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0,0,0,.12);
}
.rank-1 { background: var(--color-rank-1); }
.rank-2 { background: var(--color-rank-2); }
.rank-3 { background: var(--color-rank-3); }
.rank-default { background: var(--color-rank-default); }

/* the card body */
.casino-card-inner {
  display: grid;
  grid-template-columns: 140px 1fr auto auto;
  gap: 24px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .15s ease, transform .15s ease;
}
.casino-card-inner:hover {
  box-shadow: var(--shadow-card-hover);
}

.casino-logo {
  background: var(--color-dark);
  border-radius: 12px;
  width: 140px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.casino-logo img {
  max-width: 80%;
  max-height: 70%;
  object-fit: contain;
}

.casino-info { min-width: 0; }

.casino-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  transition: color .15s ease;
}
.casino-name:hover { color: var(--color-primary); }
.casino-name-emoji,
.casino-name-star { font-size: 18px; }

.casino-bonus {
  font-size: 15px;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.4;
}

.casino-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 90px;
}
.stars {
  display: inline-flex;
  gap: 2px;
  font-size: 18px;
  color: #d1d5db;
  letter-spacing: 1px;
}
.stars .star.filled { color: var(--color-star); }
.rating-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  white-space: nowrap;
  transition: background .15s ease, transform .1s ease;
  box-shadow: 0 4px 12px rgba(230,57,80,.25);
}
.cta-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}
.cta-btn:active { transform: translateY(0); }

.casino-disclaimer {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 12px;
  padding: 0 24px;
}

/* ==========================================================================
   CONTENT / TEXT BLOCKS
   ========================================================================== */
.content-block {
  padding: 40px 0;
  background: var(--color-bg);
}

.h2-base-title {
  font-size: 28px;
  font-weight: 800;
  margin: 32px 0 16px;
  letter-spacing: -.01em;
}

.h3-base-title {
  font-size: 21px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--color-text);
  letter-spacing: -.005em;
}

/* bullet list (used inside content blocks) */
.bullet-list {
  list-style: none;
  margin: 8px 0 18px;
  padding: 0;
}
.bullet-list li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 16px;
  line-height: 1.6;
  color: #2a2a2a;
}
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}
.bullet-list li strong { color: var(--color-text); font-weight: 700; }

/* numbered list — used for "step-by-step" content */
.numbered-list {
  list-style: none;
  margin: 8px 0 18px;
  padding: 0;
  counter-reset: nl;
}
.numbered-list li {
  counter-increment: nl;
  position: relative;
  padding: 6px 0 6px 38px;
  font-size: 16px;
  line-height: 1.6;
  color: #2a2a2a;
}
.numbered-list li::before {
  content: counter(nl);
  position: absolute;
  left: 0;
  top: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* small section heading (h4) */
.h4-base-title {
  font-size: 17px;
  font-weight: 700;
  margin: 18px 0 8px;
  color: var(--color-text);
}

/* inline accent link inside paragraphs */
.link-accent {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(230,57,80,.35);
  transition: text-decoration-color .15s ease;
}
.link-accent:hover { text-decoration-color: var(--color-primary); }

/* license pill next to bonus copy */
.license-tag {
  display: inline-block;
  background: #fef3f4;
  color: var(--color-primary);
  border: 1px solid #f8d7dc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ranking table */
.ranking-table-wrap { overflow-x: auto; margin: 16px 0 24px; }
.ranking-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.ranking-table thead th {
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
}
.ranking-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.ranking-table tbody tr:last-child td { border-bottom: 0; }
.ranking-table tbody tr:hover { background: #fafafa; }
.ranking-table strong { color: var(--color-text); font-weight: 700; }

/* small CTA used inside table */
.cta-btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(230,57,80,.20);
}

.toc-list {
  counter-reset: toc;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.toc-list li {
  counter-increment: toc;
  padding: 6px 0;
  font-size: 16px;
}
.toc-list li::before {
  content: counter(toc) ". ";
  color: var(--color-primary);
  font-weight: 700;
  margin-right: 6px;
}
.toc-list a:hover { color: var(--color-primary); }

.text-block {
  font-size: 16px;
  line-height: 1.7;
  color: #2a2a2a;
  margin-bottom: 16px;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq {
  padding: 16px 0 56px;
  background: var(--color-bg);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .15s ease;
}
.faq-item:hover { box-shadow: var(--shadow-card); }

.faq-item-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  gap: 16px;
}

.faq-item .toggle-icon {
  transition: transform .2s ease;
  width: 16px;
  height: 16px;
  opacity: .6;
}
.faq-item.open .toggle-icon { transform: rotate(180deg); }

.faq-item-content-hidden {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
  padding: 0 20px;
}
.faq-item.open .faq-item-content-hidden {
  max-height: 500px;
  padding: 0 20px 18px;
}
.faq-item-content-hidden p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--color-dark);
  color: #d1d5db;
  padding: 40px 0 24px;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-logo img { height: 48px; width: auto; }
.footer-disclaimer {
  flex: 1;
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.5;
  min-width: 280px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid #2a2a3a;
  border-bottom: 1px solid #2a2a3a;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 14px;
  color: #d1d5db;
  transition: color .15s ease;
}
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #9ca3af;
}
.age-icon { width: 32px; height: 32px; }

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(23, 23, 34, 0.96);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 1000;
  font-size: 13px;
}
.cookie-banner p {
  flex: 1;
  max-width: 1100px;
  line-height: 1.5;
}
.cookie-ok {
  background: var(--color-primary);
  color: #fff;
  padding: 8px 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  flex-shrink: 0;
  transition: background .15s ease;
}
.cookie-ok:hover { background: var(--color-primary-hover); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 36px; }
  .header-nav-desktop { gap: 18px; margin-left: 16px; }
  .header-nav-item { font-size: 14px; }
}

@media (max-width: 860px) {
  .header-nav-desktop { display: none; }
  .header-mobile-buttons-wrapper { display: flex; margin-left: auto; }
  .header-search-btn { margin-left: auto; }

  .hero { padding: 28px 0 16px; }
  .hero-title { font-size: 28px; }
  .page-intro { padding: 24px 0 28px; }

  .casino-card-inner {
    grid-template-columns: 88px 1fr;
    grid-template-areas:
      "logo info"
      "rating rating"
      "cta cta";
    gap: 14px;
    padding: 18px 16px;
  }
  .casino-logo { width: 88px; height: 64px; grid-area: logo; }
  .casino-info { grid-area: info; }
  .casino-rating { grid-area: rating; flex-direction: row; align-items: center; gap: 10px; }
  .cta-btn { grid-area: cta; width: 100%; padding: 14px; }
  .rank-badge { left: 14px; top: -12px; width: 30px; height: 30px; font-size: 14px; }
  .casino-name { font-size: 16px; }
  .casino-bonus { font-size: 14px; }
  .rating-value { font-size: 18px; }

  .h2-base-title { font-size: 22px; }
  .h3-base-title { font-size: 17px; }

  /* ranking table → stacked cards on mobile */
  .ranking-table { border: 0; box-shadow: none; background: transparent; }
  .ranking-table thead { display: none; }
  .ranking-table tbody tr {
    display: block;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 8px 4px;
    box-shadow: var(--shadow-card);
  }
  .ranking-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    border-bottom: 1px dashed var(--color-border);
    font-size: 14px;
  }
  .ranking-table tbody td:last-child { border-bottom: 0; }
  .ranking-table tbody td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: .04em;
    margin-right: 12px;
  }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: 14px; }

  .cookie-banner { flex-direction: column; padding: 12px; }
  .cookie-ok { width: 100%; }
}

@media (max-width: 480px) {
  .header-wrapper { gap: 12px; padding: 10px 16px; }
  .header-logo img { height: 40px; }
  .container { padding: 0 16px; }
  .hero-title { font-size: 24px; }
}
