/* ==========================================================================
   FlipPnL™ - Reseller Gear & Sourcing Supplies Stylesheet
   ========================================================================== */

.gear-hero {
  padding: 48px 0 24px;
  text-align: center;
}

.gear-disclosure-banner {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin: 20px auto 32px;
  max-width: 960px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: left;
}

.gear-disclosure-banner .badge {
  flex-shrink: 0;
  background: #10B981;
  color: #05070e;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gear-controls {
  max-width: 1200px;
  margin: 0 auto 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gear-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gear-pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.gear-pill-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.gear-pill-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.gear-search-box {
  position: relative;
  min-width: 260px;
}

.gear-search-box input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 16px 8px 36px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.gear-search-box input:focus {
  border-color: var(--accent-emerald);
}

.gear-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Product Grid */
.gear-grid {
  max-width: 1200px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.gear-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.gear-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(16, 185, 129, 0.15);
}

.gear-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gear-cat-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
}

.gear-badge-deal {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
}

.gear-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.gear-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ROI / Unit Economics Callout Box */
.gear-roi-box {
  background: rgba(10, 15, 29, 0.65);
  border-left: 3px solid #10B981;
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.gear-roi-label {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: #10B981;
  margin-bottom: 3px;
  display: block;
}

.gear-roi-text {
  color: #cbd5e1;
  margin: 0;
}

/* Card Actions */
.gear-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.gear-actions > div:first-child {
  min-width: 0;
  flex: 1;
}

.gear-price-est {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  line-height: 1.2;
}

.gear-price-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  line-height: 1.35;
  margin-top: 2px;
}

.btn-amazon-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #05070e;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 9px 16px;
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.btn-amazon-buy:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

.btn-partner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 9px 16px;
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.btn-partner-link:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #05070e;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}

/* Empty Search State */
.gear-empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 500px;
  margin: 40px auto 60px;
}

.gear-empty-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}

.gear-empty-state h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.gear-empty-state p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.btn-clear-gear-search {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-emerald);
  color: #34d399;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-gear-search:hover {
  background: var(--accent-emerald);
  color: #05070e;
}

@media (max-width: 768px) {
  .gear-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  .gear-controls {
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px;
    gap: 12px;
  }
  .gear-search-box {
    width: 100%;
  }
  .gear-disclosure-banner {
    flex-direction: column;
    align-items: flex-start;
    margin: 16px;
  }
  .gear-actions {
    flex-direction: row;
    align-items: center;
  }
  .btn-amazon-buy {
    padding: 8px 14px;
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   Light Theme Overrides for Reseller Gear Hub
   ========================================================================== */
[data-theme="light"] .gear-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .gear-card:hover {
  border-color: #10b981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

[data-theme="light"] .gear-title {
  color: #0f172a;
}

[data-theme="light"] .gear-desc {
  color: #475569;
}

[data-theme="light"] .gear-roi-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #10b981;
}

[data-theme="light"] .gear-roi-text {
  color: #334155;
}

[data-theme="light"] .gear-pill-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
}

[data-theme="light"] .gear-pill-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

[data-theme="light"] .gear-pill-btn.active {
  background: #d1fae5;
  border-color: #10b981;
  color: #065f46;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .gear-search-box input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .gear-search-box input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

[data-theme="light"] .gear-disclosure-banner {
  background: #f0fdf4;
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #1e293b;
}

[data-theme="light"] .gear-actions {
  border-top: 1px solid #e2e8f0;
}

[data-theme="light"] .gear-price-est {
  color: #0f172a;
}

[data-theme="light"] .gear-price-sub {
  color: #64748b;
}

[data-theme="light"] .gear-empty-state {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

[data-theme="light"] .gear-empty-state h3 {
  color: #0f172a;
}

[data-theme="light"] .gear-empty-state p {
  color: #475569;
}

