/* TibiaMine - style strony (zwykły CSS, bez Tailwinda) */

:root {
  --radius: 0.25rem;
  --background: oklch(0.14 0.012 60);
  --foreground: oklch(0.9 0.03 80);
  --primary: oklch(0.78 0.14 80);
  --primary-glow: oklch(0.88 0.15 90);
  --primary-foreground: oklch(0.16 0.02 60);
  --muted: oklch(0.23 0.015 60);
  --muted-foreground: oklch(0.65 0.03 75);
  --destructive: oklch(0.6 0.2 27);
  --success: oklch(0.72 0.15 150);
  --border: oklch(0.42 0.06 70);
  --input: oklch(0.3 0.03 65);
  --gradient-gold: linear-gradient(180deg, var(--primary-glow), var(--primary) 55%, oklch(0.55 0.12 65));
  --gradient-stone: linear-gradient(180deg, oklch(0.21 0.016 60), oklch(0.16 0.012 60));
  --shadow-gold: 0 0 24px -6px color-mix(in oklab, var(--primary) 60%, transparent);
  --font-display: "Cinzel", serif;
  --font-body: "Crimson Pro", serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
table { border-collapse: collapse; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--background);
  background-image: radial-gradient(ellipse at top, oklch(0.22 0.03 60), transparent 60%);
  background-repeat: no-repeat;
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.5;
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0.04em; line-height: 1.2; }

/* Tekst złoty (gradient) */
.text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-success { color: var(--success); }
.text-error { color: var(--destructive); font-size: 0.875rem; }
.font-display { font-family: var(--font-display); }
.center { text-align: center; }

/* Układ */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.page { max-width: 72rem; margin: 0 auto; padding: 3.5rem 1rem; }

/* Nagłówek strony */
.site-header {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: color-mix(in oklab, var(--background) 90%, transparent);
  backdrop-filter: blur(8px);
}
.site-header__inner {
  max-width: 72rem; margin: 0 auto; padding: 0.75rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.nav__link {
  padding: 0.375rem 0.75rem; border-radius: 0.25rem;
  font-family: var(--font-display); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-foreground); transition: color 0.2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--primary); }

/* Stopka */
.site-footer {
  margin-top: 5rem; padding: 2rem 1rem; text-align: center; font-size: 0.875rem;
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  color: var(--muted-foreground);
}
.site-footer__brand { font-family: var(--font-display); color: var(--primary); margin-bottom: 0.25rem; }

/* Tytuł podstrony */
.page-title { text-align: center; margin-bottom: 2.5rem; }
.page-title h1 { font-size: 2.25rem; font-weight: 700; }
.page-title p { margin-top: 0.75rem; color: var(--muted-foreground); }
.ornament {
  height: 1px; max-width: 24rem; margin: 1.5rem auto 0;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Panele i przyciski */
.panel {
  background: var(--gradient-stone);
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--primary) 15%, transparent), 0 10px 30px -15px oklch(0 0 0 / 0.8);
  border-radius: var(--radius);
}

.btn-gold, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
}
.btn-gold {
  background: var(--gradient-gold); color: var(--primary-foreground); font-weight: 700;
  border: 1px solid var(--primary-glow); box-shadow: var(--shadow-gold);
  transition: filter 0.2s, transform 0.2s;
}
.btn-gold:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; border: 1px solid var(--border); color: var(--primary);
  transition: background 0.2s;
}
.btn-ghost:hover { background: color-mix(in oklab, var(--primary) 12%, transparent); }
.btn-block { width: 100%; }

/* Formularze */
.field {
  width: 100%; padding: 0.6rem 0.8rem;
  background: var(--input); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--foreground);
}
.field:focus { outline: none; border-color: var(--primary); box-shadow: var(--shadow-gold); }
.form { display: grid; gap: 1rem; }
.form--wide { gap: 1.5rem; }
.form label.block { display: block; }
.label { display: block; margin-bottom: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.check input { accent-color: var(--primary); }
.form-card { margin: 0 auto; padding: 2rem; }
.form-card--sm { max-width: 28rem; }
.form-card--md { max-width: 42rem; }
.success-box { text-align: center; }
.success-box__icon { font-size: 3rem; line-height: 1; }
.success-box h2 { margin-top: 1rem; font-size: 1.5rem; font-weight: 700; }
.success-box p { margin-top: 0.75rem; color: var(--muted-foreground); }
.success-box .btn-gold { margin-top: 1.5rem; }

/* Wybór profesji i płci (radio bez JavaScriptu) */
.visually-hidden-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.voc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.voc { position: relative; display: block; cursor: pointer; }
.voc__card { display: block; padding: 1rem; text-align: center; opacity: 0.7; transition: opacity 0.2s, box-shadow 0.2s; }
.voc:hover .voc__card { opacity: 1; }
.voc__icon { display: block; font-size: 1.875rem; line-height: 1.2; }
.voc__name { display: block; margin-top: 0.5rem; font-family: var(--font-display); font-size: 0.875rem; color: var(--primary); }
.voc input:checked + .voc__card { opacity: 1; border-color: var(--primary); box-shadow: var(--shadow-gold); }
.voc input:focus-visible + .voc__card { outline: 2px solid var(--primary); outline-offset: 2px; }

.pills { display: flex; gap: 0.75rem; }
.pill { position: relative; cursor: pointer; }
.pill__label {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.75rem; border-radius: var(--radius); border: 1px solid var(--border);
  font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary);
  transition: background 0.2s;
}
.pill:hover .pill__label { background: color-mix(in oklab, var(--primary) 12%, transparent); }
.pill input:checked + .pill__label {
  background: var(--gradient-gold); color: var(--primary-foreground); font-weight: 700;
  border-color: var(--primary-glow); box-shadow: var(--shadow-gold);
}
.pill input:focus-visible + .pill__label { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Strona główna - hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--background), color-mix(in oklab, var(--background) 60%, transparent), color-mix(in oklab, var(--background) 10%, transparent));
}
.hero__content { position: relative; max-width: 72rem; margin: 0 auto; padding: 7rem 1rem; text-align: center; }
.hero__eyebrow { font-family: var(--font-display); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.4em; color: var(--primary); }
.hero h1 { margin-top: 1rem; font-size: 3rem; font-weight: 900; }
.hero__lead { max-width: 36rem; margin: 1.5rem auto 0; font-size: 1.25rem; color: color-mix(in oklab, var(--foreground) 90%, transparent); }
.hero__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.5rem; }

.stats { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; max-width: 64rem; margin: -2.5rem auto 0; padding: 0 1rem; }
.stat { padding: 1.25rem; text-align: center; }
.stat__value { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; }
.stat__label { margin-top: 0.25rem; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }

.home-grid { display: grid; gap: 2.5rem; max-width: 72rem; margin: 0 auto; padding: 4rem 1rem; }
.home-grid h2 { margin-bottom: 1.5rem; font-size: 1.875rem; font-weight: 700; }
.stack > * + * { margin-top: 1.25rem; }
.news { padding: 1.5rem; }
.news__date { font-size: 0.875rem; color: var(--muted-foreground); }
.news h3 { margin-top: 0.25rem; font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.news p:last-child { margin-top: 0.75rem; color: color-mix(in oklab, var(--foreground) 85%, transparent); }
.side { padding: 1.5rem; }
.side h3 { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.steps { margin-top: 1rem; color: color-mix(in oklab, var(--foreground) 85%, transparent); }
.steps li + li { margin-top: 0.75rem; }
.steps span { font-family: var(--font-display); color: var(--primary); }
.side .btn-gold { margin-top: 1.5rem; }
.info-list { margin-top: 0.75rem; color: color-mix(in oklab, var(--foreground) 85%, transparent); }
.info-list div { display: flex; justify-content: space-between; }
.info-list div + div { margin-top: 0.25rem; }
.info-list dd { margin: 0; }

/* Ranking */
.switch { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.table-wrap { max-width: 48rem; margin: 0 auto; overflow-x: auto; }
.table-wrap table { width: 100%; text-align: left; }
.table-wrap thead { font-family: var(--font-display); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); }
.table-wrap th, .table-wrap td { padding: 1rem; }
.table-wrap thead tr { border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
.table-wrap tbody tr { border-bottom: 1px solid color-mix(in oklab, var(--border) 30%, transparent); }
.table-wrap tbody tr:last-child { border-bottom: 0; }
.table-wrap tbody tr:hover { background: color-mix(in oklab, var(--muted) 40%, transparent); }
.table-wrap .right { text-align: right; }
.rank { font-family: var(--font-display); color: var(--muted-foreground); }
.rank.is-top { font-weight: 700; }
.player-name { font-weight: 600; }

/* Krypto */
.card-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.crypto-card { padding: 1.25rem; }
.crypto-card__label { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }
.crypto-card__value { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; }
.crypto-card__delta { margin-top: 0.25rem; font-size: 0.875rem; color: var(--success); }
.two-col { display: grid; gap: 1.5rem; margin-top: 2rem; }
.box { padding: 1.5rem; }
.box h2 { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.chart { display: flex; align-items: flex-end; gap: 0.75rem; height: 12rem; margin-top: 1.5rem; }
.chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.5rem; height: 100%; }
.chart__bar { width: 100%; border-radius: 0.125rem 0.125rem 0 0; background: var(--gradient-gold); }
.chart__day { font-size: 0.75rem; color: var(--muted-foreground); }
.top-list { margin-top: 1rem; }
.top-list li { display: flex; align-items: center; justify-content: space-between; padding-bottom: 0.5rem; border-bottom: 1px solid color-mix(in oklab, var(--border) 30%, transparent); }
.top-list li + li { margin-top: 0.75rem; }
.top-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.top-list .pos { margin-right: 0.75rem; font-family: var(--font-display); }

/* Pobieranie */
.download-grid { display: grid; gap: 1.5rem; }
.download-card { padding: 2rem; text-align: center; }
.download-card h2 { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.download-card p { margin-top: 0.75rem; color: var(--muted-foreground); }
.download-card .btn-gold { margin-top: 1.5rem; }
.ip-box { max-width: 42rem; margin: 2rem auto 0; padding: 1.5rem; text-align: center; color: var(--muted-foreground); }
.ip-box__ip { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.5rem; }

/* Responsywność */
@media (min-width: 768px) {
  .page-title h1 { font-size: 3rem; }
  .hero__content { padding: 10rem 1rem; }
  .hero h1 { font-size: 4.5rem; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .home-grid { grid-template-columns: repeat(3, 1fr); }
  .home-grid__news { grid-column: span 2; }
  .voc-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .two-col, .download-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Logowanie: stan konta w menu */
.nav__user { padding: 0.375rem 0.75rem; font-family: var(--font-display); font-size: 0.875rem; letter-spacing: 0.05em; color: var(--primary); }
.nav__form { display: inline; margin: 0; }
.nav__button {
  padding: 0.375rem 0.75rem; border: 0; border-radius: 0.25rem; background: none; cursor: pointer;
  font-family: var(--font-display); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-foreground); transition: color 0.2s;
}
.nav__button:hover { color: var(--primary); }
.form-note { margin-top: 1.5rem; text-align: center; font-size: 0.875rem; color: var(--muted-foreground); }
.form-note a:hover { text-decoration: underline; }
