/* SpeedSync - elementy wspólne (cookies + drobne komponenty)
   Uwaga: celowo ograniczone selektory, żeby nie psuć istniejących styli w index.html */

:root {
  --ss-cookie-bg: rgba(10, 10, 10, 0.92);
  --ss-cookie-border: rgba(255, 255, 255, 0.14);
  --ss-cookie-text: rgba(255, 255, 255, 0.92);
  --ss-cookie-muted: rgba(255, 255, 255, 0.7);
  --ss-accent-1: #667eea;
  --ss-accent-2: #764ba2;
}

/* ------------------------------------------------------------
   Shared layout + navbar (used across the whole shop)
   This keeps the header consistent on PL and EN pages.
   ------------------------------------------------------------ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
}

.page-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 52%),
    radial-gradient(ellipse at 80% 50%, rgba(118, 75, 162, 0.15) 0%, transparent 52%),
    radial-gradient(circle at 70% 15%, rgba(102, 126, 234, 0.10), transparent 45%);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  padding: 1.25rem 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo a { text-decoration: none; }

.logo h1,
.logo .logo-text {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.4px;
  background: linear-gradient(135deg, var(--ss-accent-1, #667eea) 0%, var(--ss-accent-2, #764ba2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shop-badge {
  background: linear-gradient(135deg, var(--ss-accent-1, #667eea) 0%, var(--ss-accent-2, #764ba2) 100%);
  color: white;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.2px;
}

nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 650;
  transition: all 0.2s ease;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
}

nav a:hover { color: #fff; background: rgba(102, 126, 234, 0.18); }
nav a.is-active { color: #fff; background: rgba(102, 126, 234, 0.18); }

nav a.nav-cta {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

nav a.nav-cta:hover {
  background: rgba(102, 126, 234, 0.20);
  border-color: rgba(102, 126, 234, 0.35);
}

.lang-switch{
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.lang-btn{
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.75);
  font-weight: 800;
  letter-spacing: .5px;
  padding: 0.35rem 0.55rem;
  border-radius: 9px;
  cursor: pointer;
}

.lang-btn:hover{ color:#fff; background: rgba(102, 126, 234, 0.18); }
.lang-btn.is-active{ color:#fff; background: rgba(102, 126, 234, 0.30); }

main { padding-top: 110px; }

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3000;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--ss-cookie-bg);
  border: 1px solid var(--ss-cookie-border);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.cookie-banner__text {
  flex: 1;
  min-width: 240px;
}

.cookie-banner__title {
  font-weight: 800;
  margin-bottom: 0.25rem;
  letter-spacing: -0.2px;
}

.cookie-banner__desc {
  color: var(--ss-cookie-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-banner__desc a {
  color: var(--ss-cookie-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ss-btn {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.ss-btn:link,
.ss-btn:visited { text-decoration: none; }

.ss-btn:hover { transform: translateY(-1px); }
.ss-btn:active { transform: translateY(0); opacity: 0.95; }

.ss-btn--primary {
  background: linear-gradient(135deg, var(--ss-accent-1), var(--ss-accent-2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.25);
}

.ss-btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ss-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.cookie-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal__overlay.is-open { display: flex; }

.cookie-modal {
  width: 100%;
  max-width: 720px;
  background: rgba(15, 15, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.cookie-modal__header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-modal__header h3 {
  font-size: 1.1rem;
  letter-spacing: -0.2px;
}

.cookie-modal__close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-modal__body {
  padding: 1rem 1.25rem;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-prefs {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.cookie-pref {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-pref__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-pref__name {
  font-weight: 800;
}

.cookie-pref__desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-top: 0.4rem;
  line-height: 1.4;
}

.cookie-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}

.cookie-toggle input {
  width: 18px;
  height: 18px;
}

.cookie-modal__footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { justify-content: flex-start; }
}
