/* ---- VAA shared styles ---- */

html { scroll-behavior: smooth; }
body { font-feature-settings: "ss01"; }

.font-display { font-family: "Anton", "Rubik", sans-serif; text-transform: uppercase; letter-spacing: 0.01em; }

/* Brand emphasis — flat hazard yellow, no gradient. Caution signage is never gradiented. */
.text-gradient { color: #ffcc00; }

/* Logo mark — hazard stripe tile, matches favicon.svg */
.logo-mark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: repeating-linear-gradient(135deg, #ffcc00 0 4px, #111111 4px 8px);
  display: inline-block;
}

/* Background grid */
.grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* Glow behind hero */
.glow {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.14) 0%, transparent 65%);
  filter: blur(40px);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffcc00;
  color: #1c1500;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 26px rgba(255, 204, 0, 0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255, 204, 0, 0.28); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; border-radius: 0.6rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.25); }

/* Nav links */
.nav-link {
  padding: 0.5rem 0.9rem;
  border-radius: 0.6rem;
  font-size: 0.925rem;
  color: #cbd5e1;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav-link-active { color: #ffcc00; }

/* Cards */
.card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.85rem;
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 204, 0, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 0.6rem;
  background: repeating-linear-gradient(135deg, rgba(255, 204, 0, 0.16) 0 6px, rgba(0, 0, 0, 0.16) 6px 12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Listing card (catalog item) */
.listing {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.listing:hover { transform: translateY(-4px); border-color: rgba(255, 204, 0, 0.4); }
.listing-thumb {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  position: relative;
}
.listing-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(18, 17, 16, 0.55));
}

/* Badges / chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
}

.chip {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }

/* Verified badge — steel trust blue, distinct from the hazard-yellow action color */
.badge-verified {
  color: #7fc4e8;
  background: rgba(30, 58, 74, 0.55);
  border-color: rgba(127, 196, 232, 0.35);
}
.chip.chip-active {
  color: #1c1500;
  background: #ffcc00;
  border-color: transparent;
}

/* CTA panel */
.cta-panel {
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 4rem 2rem;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(255, 204, 0, 0.1), transparent 70%),
    rgba(255, 255, 255, 0.02);
}

/* Page header (inner pages) */
.page-header {
  padding-top: 9rem;
  padding-bottom: 3rem;
  position: relative;
}

/* Language switcher (KA / EN / RU) */
.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.6rem;
  overflow: hidden;
}
.lang-switch button {
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.lang-active {
  color: #1c1500;
  background: #ffcc00;
}

/* Forms */
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #e2e8f0;
  transition: border-color 0.15s ease;
}
.form-input:focus { outline: none; border-color: #ffcc00; }
.form-input::placeholder { color: #64748b; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 5, 8, 0.7);
  backdrop-filter: blur(4px);
}
.modal-card {
  width: 100%;
  max-width: 30rem;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: #232323;
  padding: 1.75rem;
}
[hidden] { display: none !important; }

/* ---- Hero AI box (home page centerpiece) ---- */
.hero-ai { max-width: 42rem; margin: 2.25rem auto 0; }
.hero-ai-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hero-ai-form:focus-within {
  border-color: rgba(255, 204, 0, 0.6);
  box-shadow: 0 18px 55px rgba(255, 204, 0, 0.14);
}
.hero-ai-spark { font-size: 1.15rem; color: #ffcc00; flex: none; }
.hero-ai-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #e2e8f0;
  font-size: 1rem;
  padding: 0.7rem 0.25rem;
}
.hero-ai-input::placeholder { color: #64748b; }
.hero-ai-btn { flex: none; }
.hero-ai-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
}
.hero-ai-try { font-size: 0.85rem; color: #64748b; }
@media (max-width: 520px) {
  .hero-ai-form { flex-direction: column; align-items: stretch; padding: 0.75rem; }
  .hero-ai-spark { display: none; }
  .hero-ai-btn { width: 100%; }
}

/* ---- AI assistant widget ---- */
.ai-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #1c1500;
  background: #ffcc00;
  box-shadow: 0 10px 30px rgba(255, 204, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ai-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(255, 204, 0, 0.4); }
.ai-fab .ai-fab-dot { width: 0.55rem; height: 0.55rem; border-radius: 999px; background: #1c1500; opacity: 0.8; }

.ai-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 95;
  width: min(26rem, calc(100vw - 2rem));
  max-height: min(38rem, calc(100vh - 2rem));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: #232323;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.ai-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(255, 204, 0, 0.1), transparent 70%),
    rgba(255, 255, 255, 0.02);
}
.ai-panel-title { display: flex; align-items: center; gap: 0.55rem; font-weight: 600; color: #fff; }
.ai-panel-title .icon-box { width: 34px; height: 34px; font-size: 1.05rem; border-radius: 0.6rem; }
.ai-close { color: #94a3b8; font-size: 1.5rem; line-height: 1; background: none; border: none; cursor: pointer; }
.ai-close:hover { color: #fff; }

.ai-body { flex: 1; overflow-y: auto; padding: 1.15rem; display: flex; flex-direction: column; gap: 0.85rem; }
.ai-msg { max-width: 92%; padding: 0.7rem 0.9rem; border-radius: 0.9rem; font-size: 0.9rem; line-height: 1.45; }
.ai-msg-bot { align-self: flex-start; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); color: #cbd5e1; }
.ai-msg-user { align-self: flex-end; background: #ffcc00; color: #1c1500; font-weight: 500; }
.ai-typing { display: inline-flex; gap: 0.25rem; }
.ai-typing span { width: 0.4rem; height: 0.4rem; border-radius: 999px; background: #64748b; animation: ai-blink 1.2s infinite both; }
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ai-blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.ai-suggestions { display: grid; grid-template-columns: 1fr; gap: 0.7rem; align-self: stretch; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ai-chip {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.15s ease;
}
.ai-chip:hover { color: #fff; border-color: rgba(255, 204, 0, 0.5); }

.ai-foot { padding: 0.85rem; border-top: 1px solid rgba(255, 255, 255, 0.07); display: flex; gap: 0.5rem; }
.ai-foot .form-input { border-radius: 0.7rem; }
.ai-foot button { padding: 0.6rem 1rem; border-radius: 0.7rem; white-space: nowrap; border: none; cursor: pointer; }
.ai-foot button:disabled { opacity: 0.55; cursor: default; }

/* compact catalog card inside the assistant */
.ai-suggestions .listing-thumb { height: 84px; font-size: 1.9rem; }
.ai-suggestions .listing .p-5 { padding: 0.9rem; }
