/* Conduit 3D — componente comune: nav, butoane, secțiuni, carduri, formulare, footer, dialog. */

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-text); padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.site-nav__inner { display: flex; align-items: center; gap: 12px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: -0.02em; font-size: 1.1rem; }
.brand:hover { color: var(--text); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__3d { color: var(--accent); }
.nav-links { display: none; list-style: none; margin: 0 0 0 auto; padding: 0; gap: 4px; }
.nav-links a {
  display: block; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--muted);
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.wish-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; color: var(--text); text-decoration: none;
}
.wish-link:hover { background: var(--surface-2); color: var(--text); }
.wish-link svg { width: 22px; height: 22px; }
.wish-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: var(--accent-text);
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.wish-count.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 0; background: transparent; border-radius: 50%; color: var(--text);
}
.menu-toggle:hover { background: var(--surface-2); }
.menu-toggle svg { width: 24px; height: 24px; }
.mobile-menu {
  border-top: 1px solid var(--border); background: var(--bg);
  max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 8px var(--gutter) 20px; }
.mobile-menu a { display: block; padding: 12px 4px; color: var(--text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-menu li:last-child a { border-bottom: 0; }
.nav-cta { display: none; }
@media (min-width: 1040px) {
  .nav-links { display: flex; }
  .nav-actions { margin-left: 8px; }
  .menu-toggle, .mobile-menu { display: none !important; }
  .nav-cta { display: inline-flex; }
}

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: var(--accent-text); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-text); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--violet-300); color: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.4); }
.btn--outline-light:hover { border-color: #fff; color: #fff; background: rgb(255 255 255 / 0.08); }
.btn--sm { min-height: 38px; padding: 6px 14px; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

/* ---------- Secțiuni ---------- */
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--alt { background: var(--surface-2); }
.section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }
.stub { border: 2px dashed var(--border); border-radius: var(--radius); padding: 28px; color: var(--muted); }

/* ---------- Carduri ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(18px, 3vw, 26px);
}
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; background: var(--accent-soft); color: var(--accent);
}
.badge--glow { background: rgb(180 255 77 / 0.16); color: #3d6b00; }
@media (prefers-color-scheme: dark) { .badge--glow { color: var(--glow-color); } }
html[data-mode="glow"] .badge--glow { color: var(--glow-color); }

/* Chips / segmented controls (folosite de mai multe secțiuni) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.chips legend { font-weight: 700; margin-bottom: 8px; padding: 0; width: 100%; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--surface); font-weight: 600; font-size: 0.93rem;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.chip:hover span { border-color: var(--accent); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.chip input:focus-visible + span { outline: 3px solid var(--violet-300); outline-offset: 2px; }
.chip input:disabled + span { opacity: 0.45; cursor: not-allowed; }

/* ---------- Prețuri ---------- */
.price { display: grid; gap: 2px; }
.price__launch { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; }
.price__label { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.price__after { font-size: var(--step--1); color: var(--muted); }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 700; font-size: 0.95rem; }
.field .hint { font-size: var(--step--1); color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 16px; /* fără zoom pe iOS */
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field input:user-invalid, .field select:user-invalid { border-color: var(--danger); }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.form-error { color: var(--danger); font-weight: 600; font-size: 0.95rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.optional { font-weight: 500; color: var(--muted); }

/* ---------- Banner eveniment ---------- */
.event-banner {
  background: linear-gradient(90deg, #1b0f3d, #3a1d86 50%, #1b0f3d);
  color: #fff; font-size: 0.93rem;
}
.event-banner__inner { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-block: 8px; flex-wrap: wrap; }
.event-banner strong { color: #ffb347; }
.event-banner a { color: #fff; font-weight: 700; }
.event-banner .pumpkin { width: 20px; height: 20px; flex: none; }

/* ---------- Glow exit (vizibil doar în modul glow) ---------- */
.glow-exit {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: none; box-shadow: 0 0 0 1px var(--glow-color), 0 0 20px var(--glow-soft);
  background: #000; color: var(--glow-color);
}
html[data-mode="glow"] .glow-exit { display: inline-flex; }
.glow-exit:hover { background: #0a0f02; color: var(--glow-color); }

/* ---------- Dialog interes ---------- */
.dialog {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.35);
}
.dialog::backdrop { background: rgb(7 9 20 / 0.6); backdrop-filter: blur(3px); }
.dialog__body { padding: clamp(20px, 4vw, 28px); }
.dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dialog__head h2 { font-size: var(--step-2); margin: 0; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none;
  border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text);
}
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Brava camp ---------- */
.camp-card {
  display: grid; gap: 16px; align-items: center; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #3a1d86 0%, var(--navy) 60%);
  border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); overflow: hidden; position: relative;
}
.camp-card h2 { font-size: var(--step-2); margin: 0 0 6px; }
.camp-card p { color: #d6d2ec; margin: 0; max-width: 60ch; }
.camp-card .eyebrow { color: var(--violet-300); }
@media (min-width: 760px) { .camp-card { grid-template-columns: 1fr auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9c6de; padding-block: 48px calc(32px + env(safe-area-inset-bottom, 0px)); }
html[data-mode="glow"] .site-footer { background: #000; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.18); text-decoration: none; font-weight: 600;
}
.social a:hover { border-color: #fff; color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer .brand { color: #fff; }
.site-footer .brand__3d { color: var(--violet-300); }

/* ---------- Pagini simple (multumim, confidentialitate, wishlist) ---------- */
.page { padding-block: clamp(40px, 8vw, 88px); min-height: 60vh; }
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Placeholder foto ---------- */
.ph {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--violet-300) 35%, transparent), transparent 60%),
    linear-gradient(160deg, var(--surface-2), color-mix(in srgb, var(--accent-soft) 70%, var(--surface-2)));
  color: var(--accent); overflow: hidden;
}
.ph svg { width: 42%; height: auto; opacity: 0.9; }
.ph__label {
  position: absolute; left: 10px; bottom: 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--surface) 80%, transparent);
  padding: 3px 8px; border-radius: 999px;
}
