/* BagEngine Seller Insights - Popup Styles */
/* Dark theme, accent #7c6af7, Geist font */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 350px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0d0d12;
  color: #e0dfe6;
  font-size: 13px;
  line-height: 1.5;
}

.popup-container {
  padding: 16px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(124, 106, 247, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.version {
  font-size: 11px;
  color: #5a5870;
  background: rgba(124, 106, 247, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
}

/* State messages */
.state-message {
  text-align: center;
  padding: 32px 16px;
  color: #7a7890;
}

.state-message p {
  font-size: 13px;
  line-height: 1.6;
}

/* Product data */
.product-title {
  font-size: 12px;
  font-weight: 500;
  color: #9d9bb0;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* Metrics grid */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.metric-card {
  background: #16151e;
  border: 1px solid #1f1e2e;
  border-radius: 8px;
  padding: 10px 12px;
}

.metric-card.accent {
  border-color: rgba(124, 106, 247, 0.3);
  background: rgba(124, 106, 247, 0.06);
}

.metric-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a5870;
  margin-bottom: 4px;
  font-weight: 600;
}

.metric-value {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.metric-card.accent .metric-value {
  color: #7c6af7;
}

/* Divider */
.divider {
  height: 1px;
  background: #1f1e2e;
  margin: 14px 0;
}

/* Calculator */
.section-title {
  font-size: 12px;
  font-weight: 600;
  color: #9d9bb0;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.calc-row label {
  font-size: 12px;
  color: #7a7890;
}

.calc-row input {
  width: 100px;
  background: #16151e;
  border: 1px solid #2a2940;
  border-radius: 6px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  text-align: right;
  outline: none;
  transition: border-color 0.2s;
}

.calc-row input:focus {
  border-color: #7c6af7;
}

.calc-row input::placeholder {
  color: #3a3950;
}

.calc-value {
  font-size: 13px;
  font-weight: 600;
  color: #c0bdd0;
}

.calc-row.result {
  padding-top: 6px;
  border-top: 1px solid #1f1e2e;
}

.calc-row.result .calc-value {
  color: #7c6af7;
  font-weight: 700;
}

/* Footer */
.footer {
  margin-top: 16px;
  text-align: center;
}

.cta-link {
  display: inline-block;
  background: linear-gradient(135deg, #7c6af7, #5b4bd4);
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 6px;
  transition: opacity 0.2s;
  width: 100%;
}

.cta-link:hover {
  opacity: 0.9;
}

/* Competition badges */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-low {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.badge-med {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.badge-high {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}
