/* ===== Poradnik Kasyn Online — style ===== */
:root {
  --color-bg: #f7f4ee;
  --color-surface: #ffffff;
  --color-ink: #21161d;
  --color-muted: #7a6c72;
  --color-line: #ece2da;
  --color-night: #1a1016;
  --color-gold: #e6a21a;
  --color-gold-dark: #9f6d06;
  --color-gold-soft: #fbeecb;
  --color-emerald: #178b68;
  --color-emerald-soft: #dcf3ea;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(26, 16, 22, .06);
  --shadow-md: 0 14px 34px rgba(26, 16, 22, .14);
  --maxw: 1010px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto",
    "Helvetica Neue", Arial, sans-serif;
  color: var(--color-ink);
  line-height: 1.7;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

a { color: var(--color-gold-dark); text-decoration: none; }

/* ===== Header ===== */
.site-header {
  background: linear-gradient(180deg, var(--color-night) 0%, #2c1c22 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .3px;
  color: #fff;
}

.site-logo:hover { color: var(--color-gold); }

.site-nav { display: flex; gap: 6px; }

.site-nav a {
  color: #ecdfd6;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color .2s, color .2s;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

/* ===== Main ===== */
.site-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 48px;
  min-height: calc(100vh - 130px);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-night);
  color: #ecdfd6;
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.site-footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.site-footer p { font-size: 14px; opacity: .85; }
/* ===== Hero ===== */
.hero {
  background: radial-gradient(1200px 500px at 20% -10%, rgba(230, 162, 26, .32), transparent 60%),
              linear-gradient(135deg, var(--color-night) 0%, #47212c 55%, var(--color-emerald) 135%);
  color: #fff;
  padding: 56px 32px;
  border-radius: 18px;
  margin-bottom: 36px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.hero h1 {
  font-size: 30px;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: .2px;
}

.hero-description {
  font-size: 16px;
  max-width: 720px;
  margin: 0 auto;
  color: #f2ebe3;
}

/* ===== Section headings ===== */
.faq-list h2,
.casino-list-header h2,
.category-list h2 {
  font-size: 22px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-line);
  position: relative;
}

.faq-list h2::after,
.casino-list-header h2::after,
.category-list h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 64px;
  height: 2px;
  background: var(--color-gold);
}

/* ===== FAQ cards ===== */
.faq-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}

.faq-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: #d8cbc0;
}

.faq-card-meta { margin-bottom: 10px; }

.faq-category {
  display: inline-block;
  background: var(--color-emerald-soft);
  color: #0f6a4f;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.faq-card-title { font-size: 19px; margin-bottom: 8px; line-height: 1.4; }

.faq-card-title a { color: var(--color-ink); }

.faq-card-title a:hover { color: var(--color-gold-dark); }

.faq-card-description { color: var(--color-muted); font-size: 14px; margin-bottom: 12px; }

.faq-card-link { font-size: 14px; font-weight: 700; color: var(--color-gold-dark); }

.faq-card-link:hover { color: var(--color-gold); }

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.pagination-link {
  padding: 9px 16px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 600;
}

.pagination-link:hover { background: #f2eae2; }

.pagination-disabled { color: #c9b9ae; cursor: not-allowed; background: transparent; }

.pagination-numbers { list-style: none; display: flex; gap: 6px; }

.pagination-number,
.pagination-current {
  display: inline-block;
  min-width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  font-size: 14px;
}

.pagination-number { background: var(--color-surface); color: var(--color-ink); }

.pagination-number:hover { background: #f2eae2; }

.pagination-current {
  background: var(--color-night);
  color: #fff;
  border-color: var(--color-night);
  font-weight: 700;
}

/* ===== List header + categories ===== */
.list-header { margin-bottom: 26px; }

.list-header h1 { font-size: 30px; margin-bottom: 8px; }

.list-description { color: var(--color-muted); font-size: 15px; max-width: 720px; }

.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s;
}

.category-card:hover { box-shadow: var(--shadow-md); border-color: #d8cbc0; }

.category-card h3 { font-size: 18px; }

.category-card h3 a { color: var(--color-ink); }

.category-card h3 a:hover { color: var(--color-gold-dark); }

.category-count { color: var(--color-muted); font-size: 14px; white-space: nowrap; }

.empty-message { color: var(--color-muted); font-size: 15px; text-align: center; padding: 36px 0; }
/* ===== FAQ single ===== */
.faq-topic-header { margin-bottom: 28px; }

.faq-topic-meta { margin-bottom: 12px; }

.faq-category-link {
  display: inline-block;
  background: var(--color-emerald-soft);
  color: #0f6a4f;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}

.faq-category-link:hover { background: var(--color-emerald); color: #fff; }

.faq-topic-header h1 {
  font-size: 29px;
  margin-bottom: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.faq-topic-description { color: var(--color-muted); font-size: 15px; }

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-size: 18px;
  color: var(--color-ink);
  margin-bottom: 10px;
  padding-left: 14px;
  border-left: 4px solid var(--color-gold);
  line-height: 1.5;
}

.faq-answer { color: #4a3c42; font-size: 15px; }

.faq-answer p { margin-bottom: 10px; }

.faq-answer p:last-child { margin-bottom: 0; }

/* ===== Inne najczęstsze pytania ===== */
.related-faqs {
  margin-top: 36px;
}

.related-faqs h2 {
  font-size: 22px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-line);
  position: relative;
}

.related-faqs h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 64px;
  height: 2px;
  background: var(--color-gold);
}

.related-faqs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.related-faqs-grid .faq-card {
  margin-bottom: 0;
}

/* ===== Casino list ===== */
.casino-list-section { max-width: var(--maxw); margin: 0 auto; padding: 30px 20px 0; }

.casino-list-header { margin-bottom: 18px; }

.casino-list-subtitle { color: var(--color-muted); font-size: 14px; }

.casino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.casino-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}

.casino-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: #d8cbc0;
}

.casino-card-image {
  background: var(--color-night);
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.casino-card-image img {
  max-width: 75%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.casino-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.casino-card-name { font-size: 18px; margin-bottom: 6px; color: var(--color-ink); }

.casino-card-description {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 12px;
  flex: 1;
}

.casino-card-link { font-size: 14px; font-weight: 700; color: var(--color-gold-dark); }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .site-header-inner { height: auto; padding: 12px 15px; flex-direction: column; gap: 8px; }
  .site-main { padding: 20px 15px; }
  .hero { padding: 34px 20px; }
  .hero h1 { font-size: 23px; }
  .list-header h1,
  .faq-topic-header h1 { font-size: 24px; }
  .faq-card { padding: 18px; }
  .faq-card-title { font-size: 17px; }
  .faq-question { font-size: 16px; }
  .pagination { gap: 8px; }
  .pagination-link { padding: 7px 12px; font-size: 13px; }
  .pagination-number,
  .pagination-current { min-width: 32px; height: 32px; line-height: 32px; font-size: 13px; }
  .casino-list-section { padding: 20px 15px 0; }
  .casino-grid { grid-template-columns: 1fr; gap: 14px; }
  .category-card { flex-direction: column; align-items: flex-start; }
}