/* BetterGame.pl — style wspólne */

:root {
  /* kolory wzięte z logo: fioletowy smok, różowa sakura i litery, turkusowa grzywa, złote rogi */
  --bg: #110920;
  --bg-2: #190f2c;
  --bg-3: #231539;
  --line: #2f1f47;
  --line-2: #45305f;
  --text: #f7eefc;
  --muted: #b39fca;
  --dim: #7a6593;

  --violet: #9b3dff;
  --violet-2: #c18bff;
  --violet-deep: #3b0f5c;
  --pink: #ff2fb0;
  --pink-2: #ff9bd6;
  --sakura: #ff6fae;
  --cyan: #33e4f2;
  --gold: #f4c04a;
  --ok: #4ee6a0;

  --radius: 8px;
  --wrap: 1180px;

  --f-head: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Bricolage Grotesque", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* wzór fal seigaiha */
  --waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30' viewBox='0 0 60 30'%3E%3Cg fill='none' stroke='%239b3dff' stroke-width='1.2'%3E%3Cpath d='M0 30a30 30 0 0 1 60 0M8 30a22 22 0 0 1 44 0M16 30a14 14 0 0 1 28 0M24 30a6 6 0 0 1 12 0'/%3E%3Cpath d='M-30 15a30 30 0 0 1 60 0M-22 15a22 22 0 0 1 44 0M-14 15a14 14 0 0 1 28 0M30 15a30 30 0 0 1 60 0M38 15a22 22 0 0 1 44 0M46 15a14 14 0 0 1 28 0'/%3E%3C/g%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* delikatne ziarno zamiast gładkiego tła */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

::selection { background: var(--pink); color: #fff; }

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

h1, h2, h3, h4 {
  font-family: var(--f-head);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
}

.mono { font-family: var(--f-mono); }

/* ---------- pasek ogłoszeń ---------- */
.topbar {
  background: var(--pink);
  color: #1b0613;
  font-size: 14px;
  font-weight: 600;
}
.topbar .wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding-top: 7px;
  padding-bottom: 7px;
  text-align: center;
}
.topbar a { font-weight: 700; }

/* ---------- nawigacja ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 9, 18, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
}
.brand b { color: var(--pink); font-weight: 800; }

/* miejsce na logo — podmień .logo-slot na <img src="img/logo.png"> */
.logo-slot {
  width: 38px;
  height: 38px;
  border: 1.5px dashed var(--violet-2);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--violet-2);
  letter-spacing: .05em;
  flex: none;
}
.brand-logo {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(155, 61, 255, .45));
  transition: transform .2s;
}
.brand:hover .brand-logo { transform: rotate(-4deg) scale(1.06); }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-3); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  margin-top: 3px;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
}
.cart-btn:hover { border-color: var(--violet); }
.cart-count {
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--pink);
  color: #1b0613;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 6px;
}
.cart-count[data-empty="true"] { background: var(--line-2); color: var(--muted); }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line-2);
  color: var(--text);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  cursor: pointer;
}

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s, box-shadow .12s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-pink {
  background: linear-gradient(180deg, #ff5cc4, var(--pink));
  color: #2a0420;
  box-shadow: 0 4px 0 #8a149e, 0 8px 18px rgba(255, 47, 176, .25);
}
.btn-pink:hover { box-shadow: 0 6px 0 #8a149e, 0 12px 24px rgba(255, 47, 176, .35); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--violet-2); }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }

/* ---------- etykiety sekcji ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--cyan);
}

section { padding: 96px 0; }
.sec-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.sec-head h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }

/* wypukłe litery jak w logo */
.td {
  color: var(--text);
  text-shadow:
    0 2px 0 var(--violet),
    0 4px 0 #6a1fb0,
    0 6px 0 var(--violet-deep),
    0 10px 18px rgba(0, 0, 0, .45);
}
.td-pink {
  background: linear-gradient(180deg, #ffb0e4 0%, var(--pink) 40%, #ff2fb0 58%, #c21fd0 62%, #8a22d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 var(--violet-deep)) drop-shadow(0 6px 10px rgba(0, 0, 0, .4));
}
.sec-head p { color: var(--muted); max-width: 420px; margin: 0; }

/* ---------- stopka ---------- */
.footer {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--bg-2) 0%, rgba(25, 15, 44, .94) 100%),
    var(--waves) 0 0 / 60px 30px;
  padding: 64px 0 28px;
  font-size: 15px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
}
.footer h4 {
  font-size: 13px;
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--cyan); }
.footer .brand-logo { height: 84px; margin-bottom: 6px; }
.footer address { font-style: normal; line-height: 1.7; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--dim);
}
.pay-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pay-row span {
  font-family: var(--f-mono);
  font-size: 11px;
  border: 1px solid var(--line-2);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--muted);
}

/* dane do uzupełnienia — widoczne, żeby nie zostały w wersji produkcyjnej */
.fill {
  background: rgba(255, 63, 155, .14);
  color: var(--pink-2);
  border-bottom: 1px dashed var(--pink);
  padding: 0 3px;
  border-radius: 2px;
  font-style: normal;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 140%);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius);
  z-index: 200;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.2);
  box-shadow: 0 4px 0 var(--pink);
  max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- responsywność ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 68px 0; }
  .burger { display: grid; place-items: center; margin-left: auto; }
  .nav .wrap { gap: 12px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--pink-2); }
  .cart-btn .cart-label { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- płatki sakury ---------- */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1; /* za treścią, przed tłem strony */
}
.petals i {
  position: absolute;
  top: -20px;
  width: 12px;
  height: 9px;
  background: var(--sakura);
  border-radius: 12px 0 12px 0;
  opacity: .55;
  animation: opad linear infinite;
}
@keyframes opad {
  0% { transform: translate(0, -20px) rotate(0); }
  50% { transform: translate(60px, 50vh) rotate(200deg); }
  100% { transform: translate(-30px, 105vh) rotate(420deg); }
}
@media (prefers-reduced-motion: reduce) {
  .petals { display: none; }
}
