/* ==========================================================================
   SHORTCUT CAREER - SERVICE & INTERACTIVE COMPONENTS
   - Scroll Progress Bar (Top fixed)
   - 3D Floating WhatsApp & AI Assistant Buttons (Right Bottom)
   - AI Recruiting Assistant Chat Drawer
   - Quiz Analysis Loading Screen & Match Celebration Screen
   - Photo Upload & Preview
   ========================================================================== */

/* 1. SCROLL PROGRESS BAR */
.career-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #1e5cb3 0%, #3b82f6 50%, #60a5fa 100%);
  box-shadow: 0 0 12px rgba(93, 152, 236, 0.85);
  z-index: 99999;
  transition: width 0.08s ease-out;
  pointer-events: none;
}

/* 2. FLOATING ACTIONS CONTAINER */
.career-floating-wrap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.career-floating-wrap > * {
  pointer-events: auto;
}

/* SPEECH BUBBLE HINT */
.career-speech-bubble {
  background: #ffffff;
  color: #0b1728;
  padding: 9px 14px;
  border-radius: 12px;
  font: 700 13px/1.35 "Manrope", -apple-system, sans-serif;
  box-shadow: 0 10px 28px rgba(11, 23, 40, 0.16), 0 2px 6px rgba(0,0,0,0.06);
  border: 1px solid rgba(93, 152, 236, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float-bob 3s ease-in-out infinite;
  max-width: 250px;
  cursor: pointer;
}

.career-speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-right: 1px solid rgba(93, 152, 236, 0.25);
  border-bottom: 1px solid rgba(93, 152, 236, 0.25);
  transform: rotate(45deg);
}

.career-speech-bubble button.bubble-close {
  background: transparent;
  border: none;
  font-size: 16px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0 2px;
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* 3D FLOATING BUTTONS (1:1 GARTENBAU FEEL) */
.career-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px !important;
  font: 700 14px/1 "Manrope", sans-serif;
  color: #ffffff !important;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
  user-select: none;
}

/* WHATSAPP BUTTON (3D EMERALD) */
.career-whatsapp-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 6px 18px rgba(18, 140, 126, 0.35), 0 3px 0 #075e54, inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.career-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 140, 126, 0.45), 0 3px 0 #075e54, inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.career-whatsapp-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 6px rgba(18, 140, 126, 0.35), 0 1px 0 #075e54, inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

/* AI ASSISTANT BUTTON (3D SHORTCUT BLUE) */
.career-ai-btn {
  background: linear-gradient(135deg, #1e5cb3 0%, #133e7c 100%);
  box-shadow: 0 6px 18px rgba(30, 92, 179, 0.4), 0 3px 0 #0c274e, inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.career-ai-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30, 92, 179, 0.5), 0 3px 0 #0c274e, inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.career-ai-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 6px rgba(30, 92, 179, 0.4), 0 1px 0 #0c274e, inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

/* ANIMATED CUTE ROBOT ICON */
.career-robot-icon {
  width: 26px;
  height: 26px;
  display: block;
}

.career-robot-antenna {
  animation: robot-wiggle 3s ease-in-out infinite;
  transform-origin: 18px 9px;
}

.career-robot-eyes {
  animation: robot-blink 4s infinite;
  transform-origin: center 16.5px;
}

@keyframes robot-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

@keyframes robot-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

/* 3. AI RECRUITING ASSISTANT CHAT DRAWER */
.career-chat-drawer {
  position: fixed;
  right: 22px;
  bottom: 84px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(11, 23, 40, 0.25), 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(93, 152, 236, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9995;
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease;
}

.career-chat-drawer.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.career-chat-header {
  background: linear-gradient(135deg, #0b1728 0%, #133e7c 100%);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.career-chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.career-chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(93, 152, 236, 0.2);
  border: 1px solid rgba(93, 152, 236, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.career-chat-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 700 11px/1 "Space Grotesk", sans-serif;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.career-chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28e06a;
  box-shadow: 0 0 6px #28e06a;
}

.career-chat-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.career-chat-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.career-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 14px;
  font: 500 13.5px/1.45 "Manrope", sans-serif;
  word-break: break-word;
}

.chat-bubble.bot {
  background: #ffffff;
  color: #0b1728;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  align-self: flex-start;
}

.chat-bubble.user {
  background: #1e5cb3;
  color: #ffffff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.career-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.chat-chip {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e5cb3;
  padding: 6px 11px;
  border-radius: 20px;
  font: 700 12px/1 "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-chip:hover {
  background: #1e5cb3;
  color: #ffffff;
  border-color: #1e5cb3;
  transform: translateY(-1px);
}

.career-chat-input-bar {
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 8px;
}

.career-chat-input-bar input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font: 500 13.5px/1 "Manrope", sans-serif;
  outline: none;
  transition: border-color 0.15s;
}

.career-chat-input-bar input:focus {
  border-color: #1e5cb3;
}

.career-chat-input-bar button {
  background: #1e5cb3;
  border: none;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 4. QUIZ ANALYSIS LOADING SCREEN & MATCH SCREEN */
.quiz-analyzing-wrap {
  text-align: center;
  padding: 36px 18px;
}

.quiz-radar-spinner {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 4px solid #e2e8f0;
  border-top-color: #1e5cb3;
  border-right-color: #5d98ec;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(93, 152, 236, 0.25);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.quiz-progress-outer {
  width: 100%;
  max-width: 440px;
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 18px auto 26px;
  position: relative;
}

.quiz-progress-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1e5cb3, #5d98ec);
  border-radius: 999px;
  transition: width 0.3s ease-out;
}

.analysis-check-list {
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analysis-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 14px/1.35 "Manrope", sans-serif;
  color: #64748b;
  transition: color 0.2s;
}

.analysis-check-item.done {
  color: #0b1728;
}

.analysis-check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  transition: all 0.2s;
}

.analysis-check-item.done .analysis-check-icon {
  background: #22c55e;
}

/* MATCH CELEBRATION CARD */
.quiz-match-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  border: 2px solid #5d98ec;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(30, 92, 179, 0.12);
  text-align: center;
}

.match-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #22c55e;
  color: #ffffff;
  border-radius: 999px;
  font: 800 13px/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.match-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
  text-align: left;
}

.match-feature-item {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  padding: 10px 12px;
  border-radius: 10px;
  font: 600 13px/1.3 "Manrope", sans-serif;
  color: #0b1728;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 5. PHOTO UPLOAD & PREVIEW */
.photo-upload-zone {
  border: 2px dashed #93c5fd;
  background: #f8fafc;
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.photo-upload-zone:hover {
  background: #eff6ff;
  border-color: #1e5cb3;
}

.photo-upload-zone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.photo-preview-wrap {
  display: none;
  align-items: center;
  gap: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 10px;
}

.photo-preview-img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.photo-preview-info {
  flex: 1;
  text-align: left;
}

.photo-preview-name {
  font: 700 13px/1.2 "Manrope", sans-serif;
  color: #0b1728;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.photo-preview-remove {
  background: transparent;
  border: none;
  color: #ef4444;
  font: 700 12px/1 "Manrope", sans-serif;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 600px) {
  .career-floating-wrap {
    right: 14px;
    bottom: 14px;
  }
  .career-float-btn {
    padding: 10px 14px;
    font-size: 13px;
  }
  .career-chat-drawer {
    right: 12px;
    bottom: 74px;
    height: 480px;
  }
}
