/* 
  styles.css – Altaris Casino PL
  --------------------------------
  Ciemny motyw (dark theme) dla strony Altaris Casino.
  Główne założenia:
  - pełna responsywność (mobile-first),
  - brak poziomego scrolla na mobile (ekran "naprawiony"),
  - kontrastowe kolory tekstu,
  - semantyczne komponenty: header, hero, slots, sections, footer.
*/

/* 
  RESET I ZMIENNE
  ----------------
  Usuwamy domyślne marginesy i definiujemy zmienne kolorów dla ciemnego motywu.
*/

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  /* Płynne przewijanie dla kotwic (menu, przyciski "powrót na górę") */
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f5f7;
  background-color: #05050a;
  line-height: 1.6;
  /* Zapobiega przypadkowemu scrollowi poziomemu na małych ekranach */
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #ffcc33;
  outline-offset: 3px;
}

:root {
  --color-bg: #05050a;
  --color-bg-elevated: #10101b;
  --color-bg-overlay: rgba(5, 5, 10, 0.7);
  --color-primary: #ffcc33;
  --color-primary-soft: rgba(255, 204, 51, 0.15);
  --color-secondary: #28c5ff;
  --color-text-main: #f5f5f7;
  --color-text-muted: #a5a5b8;
  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-elevated: 0 18px 40px rgba(0, 0, 0, 0.8);
  --radius-large: 18px;
  --radius-medium: 12px;
  --radius-pill: 999px;
  --transition-fast: 160ms ease-out;
  --transition-med: 220ms ease-out;
  --container-max: 1120px;
}

/* 
  STRUKTURA STRONY
  ----------------
  .page – wrapper, który utrzymuje szerokość i tło.
  .container – standardowa szerokość dla sekcji.
*/

.page {
  min-height: 100vh;
  background: radial-gradient(circle at top, #14142b 0, #05050a 55%, #000000 100%);
  color: var(--color-text-main);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

/* 
  HEADER I NAWIGACJA
  -------------------
  - sticky header na desktopie,
  - hamburger na mobile,
  - ciemne tło półprzezroczyste.
*/

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(5, 5, 10, 0.96), rgba(5, 5, 10, 0.8));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}

.logo {
  width: 132px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-list {
  list-style: none;
  display: none;
  flex-direction: column;
  position: absolute;
  inset-inline: 0;
  top: 56px;
  margin: 0;
  padding: 12px 16px 16px;
  background: rgba(5, 5, 10, 0.98);
  border-bottom: 1px solid var(--color-border-subtle);
}

.nav-list.is-open {
  display: flex;
}

.nav-link {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 16, 27, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

.header-cta {
  display: none;
}

/* 
  BREADCRUMBS
  -----------
  Prosty pasek okruszków pod headerem, dobry dla SEO i dostępności.
*/

.breadcrumbs {
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  background: rgba(10, 10, 22, 0.9);
}

.breadcrumbs-list {
  margin: 0;
  padding: 8px 16px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.breadcrumbs-item + .breadcrumbs-item::before {
  content: "›";
  margin: 0 4px;
  color: var(--color-text-muted);
}

.breadcrumbs-link {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumbs-link:hover {
  color: var(--color-primary);
}

/* 
  PRZYCISKI
  ---------
  Wspólne style dla CTA, wewnętrznie to po prostu <a> z klasą .btn.
*/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition-med), color var(--transition-med), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #ffcc33, #ff9f1c);
  color: #111111;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.7);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-main);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* 
  HERO / BANER
  ------------
  .hero-media-wrapper – relatywne opakowanie do overlay'a CTA.
  .hero-overlay – półprzezroczysty blok z CTA, na środku obrazu.
*/

.hero {
  padding: 16px 0 8px;
}

.hero-media-wrapper {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Overlay bez zmiany koloru banera – tylko centrowanie CTA; kolor banera pozostaje oryginalny */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: transparent;
}

.hero-content {
  max-width: 520px;
  text-align: center;
  padding: 12px 16px;
  border-radius: var(--radius-medium);
  background: rgba(5, 5, 10, 0.65);
  backdrop-filter: blur(10px);
}

.hero-title {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.hero-subtitle {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.hero-cta {
  min-width: 200px;
}

/* 
  SEKCJE OGÓLNE
  --------------
  Ujednolicone marginesy, tła i nagłówki.
*/

.section {
  padding: 32px 0;
}

.section:nth-of-type(odd) {
  background: rgba(5, 5, 15, 0.5);
}

.section:nth-of-type(even) {
  background: radial-gradient(circle at top, rgba(43, 43, 75, 0.4), rgba(5, 5, 10, 0.9));
}

.section-title {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.section-intro {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.body-text {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.body-list {
  margin: 0 0 16px;
  padding-left: 22px;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.body-list li {
  margin-bottom: 8px;
}

.subsection-title {
  margin: 20px 0 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.faq-list {
  margin: 0;
}

.faq-question {
  margin: 16px 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.faq-question:first-child {
  margin-top: 0;
}

.faq-answer {
  margin: 0 0 8px;
  padding-left: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* 
  POPULARNE SLOTY
  ---------------
  - Desktop: 6 kolumn, 2 rzędy.
  - Mobile: 2 kolumny na pełną szerokość ekranu (bez poziomego scrolla).
  - Obrazki klikalne (link), z efektem hover.
*/

.slots-scroll-wrapper {
  overflow-x: auto;
  padding-bottom: 8px;
}

.slots-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}

.slots-scroll-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.slots-scroll-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
}

.slots-grid {
  display: grid;
  grid-auto-rows: auto;
  grid-template-columns: repeat(6, auto);
  gap: 12px;
  padding: 12px 4px 4px;
}

.slot-item {
  margin: 0;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.slot-link:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 32px rgba(255, 204, 51, 0.25);
}

.slot-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.slot-image {
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
  width: 100%;
  display: block;
  transition: box-shadow var(--transition-fast);
}

.slot-link:hover .slot-image {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8);
}

/* 
  TABELA INFORMACYJNA
  -------------------
  - Na desktopie klasyczna tabela.
  - Na mobile (<= 600px) adaptujemy do układu kart: każdy wiersz to box,
    a nagłówek kolumny jest wstawiany z atrybutu data-label.
*/

.table-wrapper {
  margin: 20px 0;
  padding: 1px;
  border-radius: var(--radius-medium);
  background: radial-gradient(circle at top, rgba(255, 204, 51, 0.16), rgba(16, 16, 32, 0.9));
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(5, 5, 15, 0.96);
  border-radius: var(--radius-medium);
  overflow: hidden;
}

.info-table thead {
  background: rgba(5, 5, 20, 0.96);
}

.info-table th,
.info-table td {
  padding: 12px 12px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border-subtle);
  vertical-align: top;
}

.info-table th {
  text-align: left;
  font-weight: 600;
}

.info-table tbody tr:last-child th,
.info-table tbody tr:last-child td {
  border-bottom: none;
}

.register-steps {
  margin: 20px 0 0;
  padding-left: 20px;
  font-size: 0.95rem;
}

.register-step + .register-step {
  margin-top: 8px;
}

.register-cta-wrapper {
  margin-top: 20px;
}

/* 
  STOPKA + LOGA PŁATNOŚCI
  -----------------------
*/

.site-footer {
  padding: 24px 0 32px;
  background: #05050a;
  border-top: 1px solid var(--color-border-subtle);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.payment-logo {
  height: 26px;
  width: auto;
  filter: grayscale(0.1) brightness(1.2);
  opacity: 0.9;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-copy {
  margin: 0 0 6px;
}

.footer-links {
  margin: 0;
}

.footer-link {
  color: var(--color-text-muted);
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-separator {
  margin: 0 6px;
}

/* 
  UTILITY: SR-ONLY
  -----------------
  Klasa do elementów wyłącznie dla czytników ekranu (np. caption tabeli).
*/

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 
  MEDIA QUERIES
  -------------
  Desktopowe poprawki: menu, header CTA, layout tabeli itd.
*/

@media (min-width: 768px) {
  .header-container {
    padding-block: 14px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-list {
    position: static;
    display: flex;
    flex-direction: row;
    background: transparent;
    border: none;
    padding: 0;
    gap: 16px;
  }

  .header-cta {
    display: inline-flex;
  }

  .hero {
    padding: 24px 0 16px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Mobile: sloty 2 w rzędzie na pełną szerokość ekranu */
@media (max-width: 767px) {
  .slots-scroll-wrapper {
    overflow-x: visible;
    padding-bottom: 0;
  }

  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px 0 4px;
  }

  .slot-item {
    width: 100%;
  }

  .slot-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 600px) {
  /* 
    Adaptacja tabeli: thead ukryte, każdy wiersz jako karta,
    a "etykieta" pobierana z data-label.
  */
  .info-table thead {
    display: none;
  }

  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table td,
  .info-table th {
    display: block;
    width: 100%;
  }

  .info-table tbody tr {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .info-table tbody tr:last-child {
    border-bottom: none;
  }

  .info-table th[scope="row"] {
    font-size: 0.92rem;
    margin-bottom: 4px;
    padding-bottom: 0;
    border-bottom: none;
  }

  .info-table td {
    border-bottom: none;
    padding-top: 4px;
  }

  .info-table td::before {
    content: attr(data-label) " — ";
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-bottom: 2px;
  }
}

