/* ==========================================================================
   BUYYOURSHARE - MARKETPLACE & HOME STYLES
   ========================================================================== */

/* Home Hero Card */
.hero-home {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-home::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #a5b4fc;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 26px;
  font-weight: 900;
  color: white;
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 14px;
  color: #94a3b8;
  max-width: 440px;
  margin: 0 auto 22px auto;
  line-height: 1.5;
}

.hero-actions-two {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .hero-actions-two {
    flex-direction: row;
  }
}

.btn-hero-primary {
  flex: 1;
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
  text-decoration: none;
}

.btn-hero-secondary {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* How It Works (3 Steps) */
.how-it-works-box {
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.how-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.steps-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 520px) {
  .steps-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.step-text p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Marketplace Search Bar & Chips */
.search-bar-wrap {
  margin-bottom: 16px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: white;
  font-size: 15px;
  outline: none;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Category Filter Chips */
.chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.chips-row::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: white;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Group Cards List */
.groups-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.group-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.group-card:hover {
  border-color: #cbd5e1;
}

.group-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.group-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.group-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
}

.group-name-box h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.group-name-box p {
  font-size: 12px;
  color: var(--text-secondary);
}

.slots-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.slots-pill.available {
  background: var(--badge-success-bg);
  color: var(--badge-success-text);
}

.slots-pill.full {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* Transparent Price Decomposition Box */
.price-breakdown-card {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin: 12px 0;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.price-row.total-row {
  border-top: 1px dashed var(--border-strong);
  padding-top: 6px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.price-row.total-row .total-amount {
  font-size: 17px;
  font-weight: 900;
  color: var(--accent);
}

.btn-view-group {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
