/* ── Vitrin — Neumorphic/Emboss UX ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #dde3ec;
  --sd:           #b3bacb;   /* shadow dark  */
  --sl:           #ffffff;   /* shadow light */
  --primary:      #1a3a5c;
  --primary-h:    #14304f;
  --accent:       #2e7d32;
  --text:         #2d3748;
  --muted:        #6b7a99;
  --radius:       18px;
  --radius-sm:    10px;
  --card-pad:     36px;
}

body {
  background: var(--bg);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────────────────────────────── */
.vt-header {
  background: var(--bg);
  box-shadow: 0 4px 10px var(--sd), 0 -1px 0 var(--sl);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.vt-header img { height: 68px; width: auto; }
.vt-header-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.vt-header-text p {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Main ────────────────────────────────────────────────────── */
.vt-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

/* ── Card ────────────────────────────────────────────────────── */
.vt-card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: 8px 8px 20px var(--sd), -8px -8px 20px var(--sl);
  padding: var(--card-pad);
  width: 100%;
  max-width: 480px;
}
.vt-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vt-card__title i { color: var(--accent); font-size: 1.4rem; }
.vt-card__sub {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ── Form Group ──────────────────────────────────────────────── */
.vt-group { margin-bottom: 18px; }
.vt-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

/* Embossed input wrapper */
.vt-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
  box-shadow: inset 4px 4px 10px var(--sd), inset -4px -4px 10px var(--sl);
  padding: 0 14px;
  transition: box-shadow .2s;
}
.vt-input-wrap:focus-within {
  box-shadow: inset 5px 5px 12px var(--sd), inset -5px -5px 12px var(--sl),
              0 0 0 2px rgba(26,58,92,.18);
}
.vt-input-wrap i {
  color: var(--muted);
  font-size: 1rem;
  margin-right: 10px;
  flex-shrink: 0;
}
.vt-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: .95rem;
  color: var(--text);
  padding: 13px 0;
  font-family: inherit;
}
.vt-input::placeholder { color: #a0acc0; }

/* ── Button ──────────────────────────────────────────────────── */
.vt-btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  background: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  box-shadow: 6px 6px 14px var(--sd), -6px -6px 14px var(--sl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: box-shadow .15s, transform .15s, color .15s;
  font-family: inherit;
  letter-spacing: .02em;
}
.vt-btn:hover {
  color: var(--primary-h);
  box-shadow: 8px 8px 18px var(--sd), -8px -8px 18px var(--sl);
}
.vt-btn:active {
  box-shadow: inset 4px 4px 10px var(--sd), inset -4px -4px 10px var(--sl);
  transform: scale(.98);
}
.vt-btn--secondary {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 13px 24px;
  width: auto;
  color: var(--muted);
}

/* ── Alert ───────────────────────────────────────────────────── */
.vt-alert {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vt-alert--error {
  background: var(--bg);
  color: #c0392b;
  box-shadow: inset 3px 3px 8px var(--sd), inset -3px -3px 8px var(--sl);
}
.vt-alert--info {
  background: var(--bg);
  color: var(--primary);
  box-shadow: inset 3px 3px 8px var(--sd), inset -3px -3px 8px var(--sl);
}

/* ── Results ─────────────────────────────────────────────────── */
.vt-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.vt-results-head h2 {
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 700;
}
.vt-results-head span {
  font-size: 1rem;
  color: var(--muted);
  background: var(--bg);
  box-shadow: 3px 3px 8px var(--sd), -3px -3px 8px var(--sl);
  border-radius: 20px;
  padding: 5px 14px;
}

.vt-result-card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: 6px 6px 16px var(--sd), -6px -6px 16px var(--sl);
  padding: 28px 30px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.vt-result-info { flex: 1; }
.vt-result-name {
  font-size: 1.37rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.vt-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.vt-chip {
  background: var(--bg);
  box-shadow: inset 2px 2px 6px var(--sd), inset -2px -2px 6px var(--sl);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .98rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.vt-chip i { font-size: 1rem; color: var(--accent); }

/* ── Modal ───────────────────────────────────────────────────── */
.vt-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30,40,60,.45);
  backdrop-filter: blur(3px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.vt-overlay.active { display: flex; }
.vt-modal {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: 12px 12px 30px var(--sd), -12px -12px 30px var(--sl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn .25s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.vt-modal__head {
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vt-modal__head h3 { font-size: 1rem; color: var(--primary); font-weight: 700; }
.vt-modal__close {
  background: var(--bg);
  border: none;
  border-radius: 8px;
  box-shadow: 3px 3px 8px var(--sd), -3px -3px 8px var(--sl);
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .15s;
}
.vt-modal__close:active {
  box-shadow: inset 2px 2px 6px var(--sd), inset -2px -2px 6px var(--sl);
}
.vt-modal__body { padding: 24px; }
.vt-modal__loading {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: .9rem;
}

/* Detail rows */
.vt-detail-row {
  display: flex;
  padding: 11px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  font-size: .88rem;
  gap: 12px;
}
.vt-detail-row:last-child { border-bottom: none; }
.vt-detail-label {
  width: 130px;
  flex-shrink: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-top: 1px;
}
.vt-detail-val { color: var(--text); font-weight: 500; flex: 1; }

.vt-detail-img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 4px 4px 12px var(--sd), -4px -4px 12px var(--sl);
  margin-top: 16px;
  object-fit: cover;
}

/* ── Footer ──────────────────────────────────────────────────── */
.vt-footer {
  text-align: center;
  padding: 20px;
  font-size: .75rem;
  color: var(--muted);
}

/* ── Spinner ─────────────────────────────────────────────────── */
.vt-spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--sd);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 520px) {
  :root { --card-pad: 24px; }
  .vt-result-card { flex-direction: column; align-items: flex-start; }
  .vt-btn--secondary { width: 100%; justify-content: center; }
}
