/* public/components/proposal/proposal.css */

.proposal-hub-wrapper {
  animation: fadeIn 0.3s ease;
}

/* Nav Tabs matching Portfolio & Promo hubs */
.proposal-tabs {
  display: flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 6px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  overflow-x: auto;
}

.proposal-tab-btn {
  flex: 1;
  min-width: 200px;
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text2, #94a3b8);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.proposal-tab-btn:hover {
  color: var(--text, #ffffff);
  background: rgba(255, 255, 255, 0.05);
}

.proposal-tab-btn.active {
  background: linear-gradient(135deg, var(--brand, #6366f1), var(--violet, #8b5cf6)) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--brand-soft, rgba(99, 102, 241, 0.35));
  font-weight: 800;
}

/* Linked Profile Card */
.linked-profile-card {
  background: var(--surface, #0B1628);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.profile-stat-pill {
  font-size: 11.5px;
  color: var(--text2, #94a3b8);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.profile-stat-pill strong {
  color: var(--text, #ffffff);
}

/* Options selectors grid */
.proposal-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* Tone, Lang & Focus Pills */
.tone-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tone-btn {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg2, rgba(15, 23, 42, 0.6));
  border: 1px solid var(--line2, rgba(255, 255, 255, 0.1));
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tone-btn:hover {
  border-color: var(--brand, #6366f1);
  color: var(--text, #ffffff);
}

.tone-btn.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--brand, #6366f1);
  color: var(--brand, #6366f1);
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.25);
}

/* Hero Action AI Button Sheen Effect */
.btn-hero-action {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--brand-soft, rgba(99, 102, 241, 0.35));
  transition: all 0.25s ease;
}

.btn-hero-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.45);
}

/* X-Ray Tags & Box */
.xray-box {
  background: var(--surface, #0B1628);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.xray-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.xray-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
}

.xray-urgent {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.xray-budget {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.xray-quality {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.xray-tech {
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Reusable card inside proposal hub */
.proposal-hub-wrapper .card {
  background: var(--surface, #0B1628) !important;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1)) !important;
  border-radius: 18px !important;
  padding: 22px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

/* Decision Analysis Card (Feature 1: Apply/Don't Apply) */
.decision-card-container {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.decision-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.decision-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.decision-badge.apply-good {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald, #10b981);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.decision-badge.apply-conditional {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber, #f59e0b);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.decision-badge.apply-skip {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red, #ef4444);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.decision-metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 14px;
}

.decision-metric-box .metric-title {
  font-size: 11px;
  color: var(--text2, #94a3b8);
  font-weight: 700;
  margin-bottom: 4px;
}

.decision-metric-box .metric-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--text, #ffffff);
}

.decision-metric-box .metric-desc {
  font-size: 10.5px;
  color: var(--text3, #64748b);
  margin-top: 4px;
}

/* Package Tabs (Feature 4: 4 Deliverables) */
.package-tab-btn {
  flex: 1;
  min-width: 120px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text2, #94a3b8);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.package-tab-btn:hover {
  color: var(--text, #ffffff);
  background: rgba(255, 255, 255, 0.05);
}

.package-tab-btn.active {
  background: var(--brand, #6366f1);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 3 Pricing Scenarios Grid (Feature 5) */
.pricing-scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.scenario-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  position: relative;
}

.scenario-card.highlight {
  border-color: var(--emerald, #10b981);
  background: rgba(16, 185, 129, 0.05);
}

.scenario-badge {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--emerald, #10b981);
  color: #000;
}

.scenario-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text, #ffffff);
}

.scenario-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent, #6366f1);
  margin: 4px 0;
}

.scenario-card.highlight .scenario-price {
  color: var(--emerald, #10b981);
}

.scenario-desc {
  font-size: 10.5px;
  color: var(--text2, #94a3b8);
  line-height: 1.4;
}
