/* Pan Peryskop — podstawowe elementy UI: pigułki, glass, chipy, przyciski */

/* --- eyebrow pill (EVpin: bg-black/6 lub bg-white/10) --- */
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
  white-space: nowrap;
}
.dark .pill, .pill.on-dark { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* --- buttons (EVpin: pill, white / glass-ghost) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }

.btn-white { background: #fff; color: var(--ink-soft); }
.btn-white:hover { background: #e8e8e3; }

.btn-ghost-dark { background: rgba(0, 0, 0, 0.25); color: #fff; }
.btn-ghost-dark:hover { background: rgba(0, 0, 0, 0.35); }

.btn-ghost-light { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost-light:hover { border-color: rgba(0, 0, 0, 0.3); }
.dark .btn-ghost-light { color: #fff; border-color: var(--glass-line); }
.dark .btn-ghost-light:hover { border-color: rgba(255, 255, 255, 0.5); }


.btn-disabled { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.4); cursor: not-allowed; }
.dark .btn-disabled { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.4); }

/* --- glass surface --- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-line);
}
.dark .glass { background: var(--glass); border-color: var(--glass-line); }

/* --- glass chip (app: ultraThinMaterial + white stroke) --- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s var(--ease), background-color 0.2s ease, box-shadow 0.2s ease;
}
.chip:hover { transform: translateY(-1px); }
.chip.is-active {
  background: var(--accent);
  color: var(--ink-soft);
  box-shadow: 0 6px 18px rgba(122, 92, 240, 0.4);
}

/* --- segmented control (app categoryPill) --- */
.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.segmented button.is-active {
  background: var(--accent);
  color: #fff;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* --- icon-in-circle (EVpin features) --- */
.icon-circle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
  transition: transform 0.25s var(--ease), background-color 0.25s ease;
}
.icon-circle svg { width: 17px; height: 17px; }
.icon-circle:hover { transform: scale(1.08); background: rgba(0, 0, 0, 0.1); }

/* --- badge (Wyprzedane / Sponsorowane) --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.badge-red { background: rgba(255, 59, 48, 0.16); color: #ff453a; }
.badge-orange { background: rgba(249, 115, 22, 0.16); color: var(--orange); }

/* --- accordion (FAQ) --- */
.accordion { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .plus {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  font-size: 15px;
  transition: transform 0.25s var(--ease), background-color 0.2s ease;
}
.accordion[open] summary .plus { transform: rotate(45deg); background: rgba(0, 0, 0, 0.12); }
.accordion .a-body { padding: 0 4px 24px; color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 60ch; }

/* --- link with arrow (Strona wydarzenia) --- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--link);
  transition: opacity 0.15s ease;
}
.link-arrow:hover { opacity: 0.75; }
.link-arrow svg { width: 13px; height: 13px; }
