/* ============================================================
   features-v2.css — Styles for new Oletrak features
   Auction, Group Buy, Flash Sales, Verification Badges, Voice Search
   ============================================================ */

/* ── Auction Card ── */
.auc-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.auc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: #ff8011;
  margin-bottom: 0.75rem;
}
.auc-timer {
  font-family: monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ef4444;
  text-align: center;
  padding: 0.5rem;
  background: rgba(239, 68, 68, 0.06);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.auc-ended { color: #94a3b8; background: rgba(148, 163, 184, 0.06); }
.auc-current {
  text-align: center;
  margin-bottom: 0.75rem;
}
.auc-label { display: block; font-size: 0.78rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; }
.auc-price { display: block; font-size: 1.8rem; font-weight: 800; color: var(--text, #1e293b); }
.auc-count { font-size: 0.82rem; color: #64748b; }
.auc-my-bid {
  text-align: center;
  padding: 0.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}
.auc-my-high { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.auc-my-low { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.auc-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.auc-bid-row { display: flex; flex-direction: column; gap: 0.3rem; }
.auc-bid-row label { font-weight: 600; font-size: 0.88rem; }
.auc-bid-row input {
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--border, #e2e8f0);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s;
}
.auc-bid-row input:focus { border-color: #ff8011; outline: none; }
.auc-bid-row small { color: #94a3b8; font-size: 0.78rem; }
.auc-place-btn { align-self: flex-start; }
.auc-history { margin-top: 0.75rem; }
.auc-history-title { font-weight: 700; font-size: 0.85rem; color: #64748b; margin-bottom: 0.5rem; }
.auc-bid-item {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border, #e2e8f0);
  font-size: 0.88rem;
}
.auc-bidder { display: flex; align-items: center; gap: 6px; }
.auc-bid-amount { font-weight: 700; }
[data-theme="dark"] .auc-card { background: #0f2742; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .auc-price { color: #e2e8f0; }

/* ── Group Buy Card ── */
.gb-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.gb-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: #8b5cf6;
  margin-bottom: 0.5rem;
}
.gb-card p { color: #64748b; font-size: 0.88rem; margin-bottom: 1rem; }
.gb-create-form { display: flex; flex-direction: column; gap: 0.6rem; }
.gb-form-row { display: flex; flex-direction: column; gap: 0.2rem; }
.gb-form-row label { font-weight: 600; font-size: 0.85rem; }
.gb-form-row input {
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--border, #e2e8f0);
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
}
.gb-form-row input:focus { border-color: #8b5cf6; outline: none; }
[data-theme="dark"] .gb-card { background: #0f2742; border-color: rgba(255,255,255,0.08); }

/* ── Flash Sales Banner ── */
.fs-banner-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.fs-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #ff6a00 0%, #ff8a2b 50%, #ffb463 100%);
  border-radius: 14px;
  padding: 1.5rem;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.fs-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.fs-content { position: relative; z-index: 1; flex: 1; }
.fs-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(4px);
}
.fs-title { margin: 0 0 0.25rem; font-size: 1.2rem; font-weight: 800; }
.fs-desc { margin: 0 0 0.5rem; font-size: 0.88rem; opacity: 0.9; }
.fs-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; }
.fs-separator { opacity: 0.4; }
.fs-timer { font-weight: 700; font-family: monospace; }
.fs-image { position: relative; z-index: 1; max-width: 120px; }
.fs-image img { width: 100%; height: auto; border-radius: 8px; }
@media (max-width: 600px) {
  .fs-banner { padding: 1rem; }
  .fs-image { display: none; }
}

/* ── Verification Badges ── */
.vb-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}
.vb-badge svg { flex-shrink: 0; }

/* ── Voice Search Button ── */
.voice-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  color: #94a3b8;
  transition: color 0.15s, background 0.15s;
  z-index: 1;
}
.voice-search-btn:hover { color: #ff8011; background: rgba(255, 128, 17, 0.08); }
.voice-search-btn.voice-active {
  color: #ef4444;
  animation: voice-pulse 1s ease-in-out infinite;
}
@keyframes voice-pulse {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.15); }
}

/* ── Voice Search Listening Hint (floating pill next to the mic) ── */
.vs-hint {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
  animation: vs-hint-in 0.18s ease-out;
  z-index: 2;
}
.vs-hint::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: #ef4444;
}
@keyframes vs-hint-in {
  from { opacity: 0; transform: translateY(-50%) translateX(6px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* ── Screen Reader Only ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Reduced Motion ── */
.reduced-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* ── High Contrast ── */
.high-contrast .vb-badge { border-width: 2px; }
.high-contrast .auc-timer { border: 2px solid currentColor; }
