/* ============================================================
   WebtasticAI — Prompt-uri (digital product storefront)
   Extends /aplicatii/apps.css tokens + shell. Page-specific only.
   ============================================================ */

/* ---- Trust strip ---- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.8rem; position: relative; z-index: var(--z-raised); }
.trust-card { display: flex; align-items: flex-start; gap: 0.8rem; }
.trust-card .tc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-tint); color: var(--purple); flex: none; }
.trust-card .tc-icon svg { width: 22px; height: 22px; }
.trust-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.trust-card p { color: var(--text-dim); font-size: 0.88rem; }
@media (max-width: 800px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---- Bundle spotlight ---- */
.bundle-panel {
  position: relative; overflow: clip; border-radius: var(--r-xl);
  padding: clamp(1.8rem, 3vw, 3rem);
  background: linear-gradient(150deg, #5415D4 0%, #7B2FFF 55%, #4A1FB0 100%);
  box-shadow: var(--glow-brand);
  color: #fff;
}
.bundle-panel .blob { filter: blur(60px); }
.bundle-panel .bp-blob { width: 320px; height: 320px; top: -100px; right: -60px; background: radial-gradient(circle, var(--lime-bright) 0%, transparent 70%); opacity: 0.3; }
.bundle-panel .bp-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.bundle-panel .bp-copy { max-width: 46ch; }
.bundle-panel .eyebrow { color: #C9B8FF; }
.bundle-panel .eyebrow::before { background: #C9B8FF; }
.bundle-panel h2 { color: #fff; margin-top: 0.5rem; }
.bundle-panel p { color: rgba(255,255,255,0.85); margin-top: 0.8rem; }
.bundle-panel .bp-buy { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.bundle-panel .price-old { color: rgba(255,255,255,0.78); }
.bundle-panel .price-new { color: #fff; }
.bundle-panel .price-save { background: rgba(255,255,255,0.16); color: #fff; }

/* ---- Price row (shared: cards + bundle) ---- */
.price-row { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.price-old { text-decoration: line-through; color: var(--text-dimmer); font-size: 0.95rem; font-weight: 600; }
.price-new { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--text); }
.price-save { display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 800; padding: 3px 9px; border-radius: var(--r-pill); background: rgba(101,163,13,0.14); color: var(--lime-text); border: 1px solid rgba(101,163,13,0.3); }

/* ---- Filter bar ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 2.4rem; margin-bottom: 1.6rem; position: relative; z-index: var(--z-raised); }
.filter-btn {
  padding: 0.55rem 1.05rem; border-radius: var(--r-pill); font-weight: 600; font-size: 0.9rem;
  background: var(--surface); border: 1.5px solid var(--border); color: var(--text-dim);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.filter-btn:hover { border-color: var(--purple); color: var(--purple); }
.filter-btn[aria-pressed="true"] { background: var(--purple); color: #fff; border-color: var(--purple); }

/* ---- Product grid ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; position: relative; z-index: var(--z-raised); }
.product-card {
  position: relative; display: flex; flex-direction: column; gap: 0.7rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease-out-quart), box-shadow var(--dur), border-color var(--dur-fast);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--glow-brand-soft); border-color: rgba(123,47,255,0.35); }
.pc-ribbon {
  position: absolute; top: -10px; left: 1.3rem;
  background: var(--orange-cta, #C2410C); color: #fff; font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 11px; border-radius: var(--r-pill);
  box-shadow: var(--glow-action);
}
.pc-cat { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--purple); }
.product-card h3 { font-size: 1.05rem; }
.product-card p { color: var(--text-dim); font-size: 0.9rem; flex: 1; }
.pc-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: var(--text-dimmer); font-weight: 600; }

.product-grid[data-empty="true"]::after {
  content: "Niciun pachet în această categorie momentan.";
  color: var(--text-dimmer); font-size: 0.95rem; grid-column: 1 / -1; text-align: center; padding: 2rem 0;
}

/* ---- Availability stats banner ---- */
.catalog-stats {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  text-align: center; color: var(--text-dim); font-size: 0.88rem; margin: 0.6rem 0 1.8rem;
}
.catalog-stats .cs-count { font-weight: 800; color: var(--purple); }

/* ---- Locked product cards ---- */
.product-card.is-locked { background: var(--bg-tint); }
.product-card.is-locked::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(123,47,255,0.035) 0px, rgba(123,47,255,0.035) 10px, transparent 10px, transparent 20px);
}
.product-card.is-locked:hover { transform: none; box-shadow: var(--shadow-card); border-color: var(--border); }
.product-card.is-locked h3 { color: var(--text-dim); }
.product-card.is-locked p { color: var(--text-dimmer); }
.product-card.is-locked .price-new { color: var(--text-dimmer); }
.pc-ribbon-locked {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface); color: var(--text-dim); border: 1px solid var(--border); box-shadow: none;
}
.pc-ribbon-locked svg { width: 11px; height: 11px; }
.pc-soon { font-style: italic; }
.btn-locked {
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  background: transparent; border: 1.5px dashed var(--border); color: var(--text-dim);
}
.btn-locked svg { width: 16px; height: 16px; flex: none; }
.btn-locked:hover { border-color: var(--purple); border-style: solid; color: var(--purple); }

/* ---- Locked bundle spotlight (same brand gradient, desaturated to signal "not live yet") ---- */
.bundle-panel.is-locked { filter: grayscale(0.8) brightness(0.92); box-shadow: none; }
.bundle-panel.is-locked .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.bundle-panel.is-locked .eyebrow svg { width: 13px; height: 13px; }
.bp-progress { color: rgba(255,255,255,0.82) !important; font-size: 0.85rem; margin-top: 0.6rem !important; }
.btn-cta-locked {
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  background: rgba(255,255,255,0.1); border: 1.5px dashed rgba(255,255,255,0.35); color: #fff;
}
.btn-cta-locked svg { width: 16px; height: 16px; flex: none; }
.btn-cta-locked:hover { background: rgba(255,255,255,0.18); }

/* ---- Withdrawal / legal note ---- */
.legal-note { display: flex; gap: 0.7rem; align-items: flex-start; background: var(--bg-tint); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1rem 1.2rem; font-size: 0.85rem; color: var(--text-dim); margin-top: 2rem; }
.legal-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--purple); }

@media (max-width: 700px) {
  .bundle-panel .bp-inner { flex-direction: column; align-items: flex-start; }
  .bundle-panel .bp-buy { width: 100%; }
  .bundle-panel .bp-buy .btn { width: 100%; }
}
