@import url("https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;600;700&display=swap");

:root {
  --bg: #0e0e10;
  --panel: #17171b;
  --panel-2: #1e1e24;
  --border: #2a2a32;
  --text: #efeff1;
  --muted: #9a9aa5;
  --purple: #9147ff;
  --purple-dark: #772ce8;
  --pear: #e8c547;
  --radius: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(145, 71, 255, 0.12), transparent),
    radial-gradient(ellipse 40% 30% at 90% 0%, rgba(232, 197, 71, 0.05), transparent);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  flex: 1;
}

/* ---- Hlavička ---- */

.site-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.site-header .pear {
  font-size: 3rem;
  display: block;
  filter: drop-shadow(0 0 18px rgba(232, 197, 71, 0.35));
}

.site-header h1 {
  font-family: "Anton", sans-serif;
  font-size: 2.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header h1 a {
  color: var(--text);
  text-decoration: none;
}

.site-header h1 .army {
  color: var(--pear);
}

.site-header .subtitle {
  color: var(--muted);
  margin-top: 0.25rem;
}

.live-badge {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--purple);
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
}

.live-badge:hover {
  background: var(--purple-dark);
}

/* ---- Bannerové nadpisy sekcí (styl Twitch panelů) ---- */

.banner {
  font-family: "Anton", sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, #232329, #121215);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0.45rem 1rem 0.35rem;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6), 0 0 24px rgba(145, 71, 255, 0.35);
}

section {
  margin-bottom: 1.75rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.5rem;
}

/* ---- Donate / obsah ---- */

.bank-box {
  background: var(--panel-2);
  border: 1px dashed var(--purple);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.bank-box .cislo {
  font-family: "Anton", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--pear);
}

.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: var(--purple);
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--purple-dark);
}

.btn-velky {
  font-size: 1.05rem;
  padding: 0.8rem 2rem;
  width: 100%;
  margin-top: 0.5rem;
}

.platba-tlacitka {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.platba-tlacitka .btn-velky {
  flex: 1;
  min-width: 200px;
  width: auto;
}

.btn-paypal {
  background: #0070ba;
}

.btn-paypal:hover {
  background: #005ea6;
}

/* ---- Donate formulář ---- */

.donate-form {
  margin-top: 1.25rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.9rem;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--purple);
}

.presets {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.preset-btn {
  font-family: "Anton", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--pear);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

.preset-btn:hover {
  border-color: var(--pear);
}

.souhlas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.souhlas input {
  accent-color: var(--purple);
  width: 1.05rem;
  height: 1.05rem;
}

.souhlas a {
  color: var(--pear);
  text-decoration: none;
}

.souhlas a:hover {
  text-decoration: underline;
}

.test-banner {
  background: rgba(232, 197, 71, 0.1);
  border: 1px dashed var(--pear);
  border-radius: 6px;
  color: var(--pear);
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  margin-top: 1rem;
}

.fake-gate-akce {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.fake-gate-akce .btn {
  flex: 1;
  min-width: 200px;
  width: auto;
}

.btn-sedy {
  background: var(--panel-2);
  border: 1px solid var(--border);
}

.btn-sedy:hover {
  background: var(--border);
}

.chyba {
  background: rgba(220, 60, 60, 0.12);
  border: 1px solid rgba(220, 60, 60, 0.5);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  margin-top: 1rem;
}

/* ---- Stav platby ---- */

.stav-ok {
  border-color: rgba(124, 192, 67, 0.6);
}

.stav-fail {
  border-color: rgba(220, 60, 60, 0.5);
}

/* ---- Ceník alertů ---- */

.alert-list {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.alert-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.alert-item:hover {
  border-color: var(--pear);
}

.alert-item.vybrany {
  border-color: var(--purple);
  background: rgba(145, 71, 255, 0.12);
}

.alert-list .castka {
  font-family: "Anton", sans-serif;
  font-size: 1.05rem;
  color: var(--pear);
  min-width: 4.5rem;
  text-align: right;
  white-space: nowrap;
}

.alert-list .sipka {
  color: var(--purple);
  font-weight: 700;
}

/* ---- Leaderboard ---- */

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab-btn {
  font-family: "Anton", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.tab-btn:hover {
  border-color: var(--purple);
}

.tab-btn.aktivni {
  color: #fff;
  background: var(--purple);
  border-color: var(--purple);
}

.leaderboard {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.leaderboard[hidden] {
  display: none;
}

.leaderboard li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
}

.leaderboard li:first-child:not(.note) {
  border-color: rgba(232, 197, 71, 0.55);
}

.leaderboard .poradi {
  min-width: 2rem;
  text-align: center;
}

.leaderboard .jmeno {
  flex: 1;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.leaderboard .nej-spoustec {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}

.leaderboard .pocet-donatu {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.leaderboard .suma {
  font-family: "Anton", sans-serif;
  font-size: 1.05rem;
  color: var(--pear);
  white-space: nowrap;
}

/* ---- Definiční seznamy (obchodní údaje) ---- */

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.5rem;
}

dt {
  color: var(--muted);
  white-space: nowrap;
}

dd a {
  color: var(--pear);
  text-decoration: none;
}

dd a:hover {
  text-decoration: underline;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ---- Modal ---- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  width: 100%;
  max-width: 460px;
  animation: modal-in 0.15s ease-out;
}

.modal .panel {
  max-height: 70vh;
  overflow-y: auto;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Obchodní podmínky ---- */

.podminky h3 {
  font-family: "Anton", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pear);
  margin: 1.5rem 0 0.5rem;
}

.podminky h3:first-child {
  margin-top: 0;
}

.podminky p {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.podminky a {
  color: var(--pear);
  text-decoration: none;
}

.podminky a:hover {
  text-decoration: underline;
}

/* ---- Patička ---- */

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1.75rem 1rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-links a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--pear);
}

.footer-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-copy a {
  color: var(--pear);
  text-decoration: none;
}

.footer-copy a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .site-header h1 {
    font-size: 2rem;
  }
  .banner {
    font-size: 1.5rem;
  }
  dl {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dt {
    margin-top: 0.6rem;
  }
}
