/* ═══════════════════════════════════════════════════════════
   QUICK ANSWERS STYLES
   Styles for instant answer cards
   ═══════════════════════════════════════════════════════════ */

.quick-answer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin: 20px 0;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.quick-answer-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 20px 0;
}

.quick-answer-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  font-size: 18px;
  color: var(--txt);
}

.quick-answer-details div {
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
}

.quick-answer-details strong {
  color: var(--red);
  margin-right: 8px;
}

/* QR Code container */
#qrcode-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
}

#qrcode-container canvas {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: white;
}

#qrcode-container img {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .quick-answer-card {
    padding: 20px;
  }
  
  .quick-answer-card h2 {
    font-size: 32px;
  }
  
  .quick-answer-details {
    font-size: 16px;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Price Panel ─────────────────────────────────────────────────────────── */
.price-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px 20px;
  margin: 20px 0;
  animation: fadeIn 0.3s ease;
}

.price-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.price-panel-icon {
  font-size: 28px;
  line-height: 1;
}

.price-panel-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--txt);
  margin: 0;
  flex: 1;
}

.price-panel-live {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--red);
  border-radius: 4px;
  padding: 2px 7px;
  animation: pulseLive 2s ease-in-out infinite;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.price-sources-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.price-source-card {
  flex: 1;
  min-width: 160px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  text-align: center;
}

.price-source-name {
  font-size: 12px;
  color: var(--txt-muted, #888);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-source-name a {
  color: inherit;
  text-decoration: none;
}

.price-source-name a:hover {
  color: var(--red);
}

.price-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 6px;
}

.price-change {
  font-size: 14px;
  font-weight: 600;
}

.price-up   { color: #22c55e; }
.price-down { color: #ef4444; }

.price-market-state {
  font-size: 11px;
  color: var(--txt-muted, #888);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-disclaimer {
  font-size: 11px;
  color: var(--txt-muted, #888);
  margin: 0;
  line-height: 1.5;
}

.price-disclaimer a {
  color: var(--red);
  text-decoration: none;
}

/* Loading state */
.price-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px;
}

.price-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .price-panel { padding: 20px 16px 16px; }
  .price-value { font-size: 22px; }
  .price-sources-grid { flex-direction: column; }
}
