/* ==========================================================================
   BridgeHire Global - Perfect Employee Builder Stylesheet
   Gamified Drag & Drop Experience, Holographic Glassmorphism
   ========================================================================== */

.builder-body {
  background-color: var(--color-navy-dark);
  color: var(--color-text-primary);
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* Builder Header */
.builder-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: rgba(10, 25, 47, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 180, 216, 0.2);
  z-index: 100;
  display: flex;
  align-items: center;
}

.builder-header-container {
  max-width: 1300px;
  width: 92%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.builder-back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: var(--transition-fast);
}

.builder-back-link:hover {
  color: var(--color-teal);
  transform: translateX(-3px);
}

.builder-logo {
  height: 38px;
  width: auto;
}

.builder-lang {
  position: static !important;
  transform: none !important;
}

/* Stepper Navigation */
.builder-main {
  padding: 40px 0 100px;
}

.builder-container {
  max-width: 1250px;
  width: 92%;
  margin: 0 auto;
}

.stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 45px;
  background: rgba(15, 34, 64, 0.6);
  border: 1px solid rgba(0, 180, 216, 0.15);
  border-radius: 50px;
  padding: 12px 24px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.5;
  transition: var(--transition-fast);
}

.step-item.active {
  opacity: 1;
}

.step-item.completed .step-num {
  background: var(--color-teal);
  color: var(--color-navy);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--color-white);
  transition: var(--transition-fast);
}

.step-item.active .step-num {
  background: linear-gradient(135deg, var(--color-teal), var(--color-gold));
  color: var(--color-navy);
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.5);
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.step-item.active .step-label {
  color: var(--color-white);
}

.step-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 15px;
  position: relative;
}

.step-line.active {
  background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
}

/* Step Screens */
.step-screen {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.step-screen.active {
  display: block;
}

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

.step-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.step-badge {
  display: inline-block;
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.4);
  color: var(--color-teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.step-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: var(--color-white);
}

.step-desc {
  color: var(--color-text-secondary);
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 350;
  line-height: 1.6;
}

/* ==========================================================================
   STEP 1: ARENA (DRAG & DROP)
   ========================================================================== */
.arena-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
}

@media (min-width: 992px) {
  .arena-grid {
    grid-template-columns: 420px 1fr;
    gap: 45px;
    align-items: start;
  }
}

/* Left Column: Avatar & Dropzone */
.avatar-card {
  background: radial-gradient(circle at 50% 20%, rgba(0, 180, 216, 0.12) 0%, rgba(10, 25, 47, 0.85) 75%);
  border: 2px dashed rgba(0, 180, 216, 0.35);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
}

.avatar-card.drag-over {
  border-color: var(--color-gold);
  background: radial-gradient(circle at 50% 20%, rgba(254, 223, 0, 0.15) 0%, rgba(10, 25, 47, 0.9) 75%);
  box-shadow: 0 0 30px rgba(254, 223, 0, 0.3);
  transform: scale(1.01);
}

.avatar-silhouette-wrapper {
  position: relative;
  width: 100%;
  height: 270px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 180, 216, 0.25);
  background: #0a192f;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.avatar-card.drag-over .avatar-img {
  transform: scale(1.04);
}

.avatar-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(10, 25, 47, 0.8) 100%);
  pointer-events: none;
}

/* Score Bar */
.avatar-score-box {
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 16px;
}

.score-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.score-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
}

.score-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-teal);
}

.score-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.score-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-teal), var(--color-gold));
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Dropped Chips Area */
.dropped-area {
  min-height: 140px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.empty-drop-placeholder {
  width: 100%;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
}

.avatar-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-clear-arena {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-clear-arena:hover {
  color: #EF4444;
  border-color: #EF4444;
}

/* Right Column: Categories & Draggable Chips */
.categories-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.category-block {
  background: rgba(15, 34, 64, 0.5);
  border: 1px solid rgba(0, 180, 216, 0.12);
  border-radius: 16px;
  padding: 20px 24px;
}

.cat-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-icon {
  font-size: 18px;
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: grab;
  user-select: none;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip-item:hover {
  border-color: var(--color-teal);
  background: rgba(0, 180, 216, 0.12);
  color: var(--color-white);
  transform: translateY(-2px);
}

.chip-item:active {
  cursor: grabbing;
}

.chip-item.selected {
  opacity: 0.35;
  pointer-events: none;
  border-style: dashed;
}

/* Chip inside Dropzone */
.dropped-chip {
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.25), rgba(254, 223, 0, 0.15));
  border: 1px solid var(--color-teal);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0, 180, 216, 0.2);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.remove-chip-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-fast);
}

.remove-chip-btn:hover {
  background: #EF4444;
}

@keyframes popIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   STEP 2: SALARY TIERS
   ========================================================================== */
.salary-selection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  max-width: 1050px;
  margin: 0 auto 40px;
}

@media (min-width: 850px) {
  .salary-selection-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.salary-card {
  background: rgba(15, 34, 64, 0.65);
  border: 1px solid rgba(0, 180, 216, 0.15);
  border-radius: 18px;
  padding: 35px 24px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.salary-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 180, 216, 0.4);
  box-shadow: 0 10px 30px rgba(0, 180, 216, 0.15);
}

.salary-card.selected {
  border: 2px solid var(--color-teal);
  background: radial-gradient(circle at 50% 0%, rgba(0, 180, 216, 0.18) 0%, rgba(10, 25, 47, 0.9) 80%);
  box-shadow: 0 0 30px rgba(0, 180, 216, 0.3);
}

.best-value-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, var(--color-gold), #e6b800);
  color: var(--color-navy);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 12px;
}

.salary-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-teal);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.salary-val {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 6px;
}

.salary-monthly-equiv {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 14px;
}

.salary-period {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.salary-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
  flex: 1;
}

.savings-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.savings-text {
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
}

/* ==========================================================================
   STEP 3: ROLE DETAILS FORM
   ========================================================================== */
.role-details-form {
  max-width: 800px;
  margin: 0 auto 40px;
  background: rgba(15, 34, 64, 0.6);
  border: 1px solid rgba(0, 180, 216, 0.15);
  border-radius: 18px;
  padding: 35px 30px;
}

.field-hint {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   STEP 4: REVIEW & BLUEPRINT
   ========================================================================== */
.review-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  max-width: 1150px;
  margin: 0 auto 40px;
}

@media (min-width: 900px) {
  .review-layout {
    grid-template-columns: 1fr 1.3fr;
    align-items: start;
  }
}

.blueprint-card {
  background: linear-gradient(135deg, rgba(15, 34, 64, 0.9), rgba(10, 25, 47, 0.95));
  border: 1px solid rgba(0, 180, 216, 0.3);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.blueprint-header {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.bp-icon {
  font-size: 32px;
}

.bp-subtitle {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-gold);
  letter-spacing: 1px;
}

.bp-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-white);
}

.bp-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.bp-meta-label {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.bp-meta-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-teal);
}

.bp-sec-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.review-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-chip-pill {
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.3);
  color: var(--color-white);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
}

/* Submission Card */
.submission-card {
  background: rgba(15, 34, 64, 0.6);
  border: 1px solid rgba(0, 180, 216, 0.15);
  border-radius: 18px;
  padding: 35px 30px;
}

.submission-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.submission-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 25px;
}

/* Checklist Preview Box */
.blueprint-checklist-box {
  background: rgba(10, 25, 47, 0.95);
  border: 1px solid rgba(0, 180, 216, 0.3);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 25px;
}

.checklist-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.checklist-icon {
  font-size: 18px;
}

.checklist-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checklist-text {
  font-family: 'Inter', monospace, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 250px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-builder-submit {
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-gold) 100%);
  color: var(--color-navy);
  border: none;
  border-radius: 30px;
  padding: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.btn-builder-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-glow);
}

/* WhatsApp Order Button Variant */
.btn-builder-order {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4) !important;
}

.btn-builder-order:hover {
  background: linear-gradient(135deg, #20ba59 0%, #0d7568 100%) !important;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6) !important;
  transform: translateY(-2px) scale(1.01);
}

/* Success State in Step 4 */
.blueprint-success-state {
  text-align: center;
  padding: 30px 15px;
}

.success-check-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10B981;
  color: #10B981;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.blueprint-success-state h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  color: var(--color-white);
  margin-bottom: 12px;
}

.blueprint-success-state p {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 30px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
}

.btn-builder-wa {
  background: #25D366;
  color: #ffffff;
  padding: 14px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-builder-home {
  color: var(--color-teal);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
}

/* ==========================================================================
   NAVIGATION BUTTONS (BOTTOM)
   ========================================================================== */
.step-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 35px;
}

.btn-builder-next {
  margin-left: auto;
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, var(--color-teal), var(--color-gold));
  color: var(--color-navy);
  border: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 14px 28px;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-fast);
}

.btn-builder-next:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-gold-glow);
}

.btn-builder-prev {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 13px;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-builder-prev:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile Stepper Tweaks */
@media (max-width: 768px) {
  .stepper-bar {
    padding: 10px 14px;
  }
  .step-label {
    display: none;
  }
  .step-line {
    margin: 0 8px;
  }
  .avatar-card {
    padding: 16px;
  }
  .avatar-silhouette-wrapper {
    height: 190px;
  }
}
