/* ==============================================
   PROFILE PAGE STYLES — Redesigned
   ============================================== */

/* ── Profile Hero Card ── */
.profile-hero-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.65);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 6px 16px -4px rgba(0, 0, 0, 0.06),
    0 16px 36px -8px rgba(0, 0, 0, 0.04);
}

.profile-hero-cover {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      #0085ff 0%,
      #6366f1 40%,
      #ec4899 70%,
      #f59e0b 100%);
}

.cover-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 50%),
    radial-gradient(circle at 80% 30%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 40%);
}

.profile-hero-body {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 0 2rem 2rem;
  margin-top: -50px;
  position: relative;
}

.profile-avatar-ring {
  flex-shrink: 0;
  padding: 5px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(0, 133, 255, 0.15);
}

.profile-avatar-lg {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-hero-info {
  padding-top: 58px;
  /* Align text below the cover edge */
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.25rem;
  letter-spacing: -0.5px;
  font-family: "Outfit", sans-serif;
  line-height: 1.2;
}

.profile-headline {
  font-size: 1.05rem;
  color: #64748b;
  margin: 0 0 1rem;
  font-weight: 500;
}

.profile-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f1f5f9;
  border-radius: 99px;
  font-size: 0.85rem;
  color: #475569;
  font-weight: 500;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.2s;
}

.meta-pill i {
  font-size: 0.8rem;
  color: #94a3b8;
}

.meta-pill-accent {
  background: rgba(0, 133, 255, 0.08);
  border-color: rgba(0, 133, 255, 0.15);
  color: #0085ff;
}

.meta-pill-accent i {
  color: #0085ff;
}

/* ── Section Cards ── */
.profile-section-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.75rem 2rem;
  border: 1px solid rgba(226, 232, 240, 0.65);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 6px 16px -4px rgba(0, 0, 0, 0.06);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.section-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  font-family: "Outfit", sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header h3 i {
  color: #0085ff;
  font-size: 1rem;
}

/* ── Experience / Education Items ── */
.experience-list {
  position: relative;
  padding-left: 20px;
}

.experience-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #0085ff 0%, rgba(99, 102, 241, 0.3) 100%);
  border-radius: 2px;
}

.exp-item {
  position: relative;
  padding-left: 24px;
  padding-bottom: 1.75rem;
}

.exp-item:last-child {
  padding-bottom: 0;
}

.exp-dot {
  position: absolute;
  left: -1px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  z-index: 1;
  transition: all 0.3s;
}

.exp-dot.active {
  border-color: #0085ff;
  background: #0085ff;
  box-shadow: 0 0 0 4px rgba(0, 133, 255, 0.15);
}

.exp-dot.edu {
  border-color: #6366f1;
  background: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.exp-content {
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.exp-content:hover {
  background: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 133, 255, 0.12);
}

.exp-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0.5rem;
}

.exp-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.exp-date {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  background: rgba(0, 133, 255, 0.06);
  border: 1px solid rgba(0, 133, 255, 0.1);
  padding: 4px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

.exp-company {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 0.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.exp-company i {
  font-size: 0.8rem;
  color: #94a3b8;
}

.exp-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

/* ── Right Column Widgets ── */
.profile-widget-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.65);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 12px -3px rgba(0, 0, 0, 0.05);
}

.widget-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.widget-header-row h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  font-family: "Outfit", sans-serif;
}

.btn-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #f8fafc;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8rem;
}

.btn-icon-sm:hover {
  background: #0085ff;
  color: #ffffff;
  border-color: #0085ff;
}

/* Completion Ring */
.completion-ring-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
}

.completion-ring-text {
  position: absolute;
  text-align: center;
}

.completion-pct {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  font-family: "Outfit", sans-serif;
  line-height: 1.1;
}

.completion-label {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Resume */
.resume-file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.resume-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.resume-info {
  flex: 1;
  min-width: 0;
}

.resume-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.resume-date {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Skills */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: linear-gradient(135deg,
      rgba(0, 133, 255, 0.06) 0%,
      rgba(99, 102, 241, 0.04) 100%);
  border: 1px solid rgba(0, 133, 255, 0.12);
  border-radius: 99px;
  font-size: 0.85rem;
  color: #334155;
  font-weight: 600;
  transition: all 0.2s;
}

.skill-chip:hover {
  background: rgba(0, 133, 255, 0.1);
  border-color: rgba(0, 133, 255, 0.25);
  color: #0085ff;
  transform: translateY(-1px);
}

/* Quick Actions */
.quick-action-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.quick-action-btn i {
  width: 20px;
  text-align: center;
  color: #0085ff;
}

.quick-action-btn:hover {
  background: rgba(0, 133, 255, 0.05);
  border-color: rgba(0, 133, 255, 0.15);
  color: #0085ff;
  transform: translateX(4px);
}

/* ── Layout Override for profile ── */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  padding-bottom: 2rem;
}

.profile-main-col,
.profile-side-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-side-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 640px) {
  .profile-hero-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.25rem 1.5rem;
    margin-top: -40px;
  }

  .profile-hero-info {
    padding-top: 0.5rem;
  }

  .profile-meta-pills {
    justify-content: center;
  }

  .exp-top-row {
    flex-direction: column;
    gap: 6px;
  }

  .profile-side-col {
    grid-template-columns: 1fr;
  }
}

/* ── Empty States ── */
.profile-empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: #94a3b8;
}

.profile-empty-state i {
  font-size: 2rem;
  opacity: 0.4;
  margin-bottom: 0.75rem;
  display: block;
}

.profile-empty-state p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
}

.profile-empty-state span {
  font-size: 0.85rem;
  display: block;
  margin-top: 0.25rem;
}

.profile-empty-state-sm {
  text-align: center;
  padding: 1rem 0.5rem;
  color: #94a3b8;
}

.profile-empty-state-sm p {
  margin: 0;
  font-size: 0.85rem;
}

/* ── Completion Checklist ── */
.completion-checklist {
  margin-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: background 0.15s;
}

.checklist-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.checklist-item i {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.checklist-item span:first-of-type {
  flex: 1;
  color: #334155;
  font-weight: 500;
}

.checklist-pts {
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 36px;
  text-align: right;
}

.checklist-item.done i {
  color: #22c55e;
}

.checklist-item.done .checklist-pts {
  color: #22c55e;
}

.checklist-item.done span:first-of-type {
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-color: rgba(148, 163, 184, 0.4);
}

.checklist-item.missing i {
  color: #ef4444;
  opacity: 0.6;
}

.checklist-item.missing .checklist-pts {
  color: #94a3b8;
}

/* Profile Edit Specifics */
.profile-edit-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-edit-btn:hover {
  background: #f1f5f9;
  color: #0085FF;
}

.profile-edit-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0;
  animation: fadeInModal 0.2s forwards;
}

@keyframes fadeInModal {
  to {
    opacity: 1;
  }
}

.profile-edit-modal {
  background: var(--bg-main, #fff);
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-header-row {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header-row h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-footer-row {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.modal-cancel-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 6px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.modal-save-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: #0085FF;
  border-radius: 6px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.modal-field input,
.modal-field textarea,
.modal-field select {
  padding: 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.modal-field input:focus,
.modal-field textarea:focus,
.modal-field select:focus {
  border-color: #0085FF;
}

/* Preferences Widget Styles */
.pref-item {
  display: flex;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.pref-item:last-child {
  border-bottom: none;
}

.pref-icon {
  color: #64748b;
  width: 24px;
  margin-top: 2px;
}

.pref-content {
  flex: 1;
}

.pref-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.pref-val {
  font-size: 0.9rem;
  color: #0f172a;
  font-weight: 500;
}

/* ── Nav Search Bar (Premium Spehre) ── */
.nav-search-wrapper {
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.nav-search-box {
  position: relative;
  display: flex;
  align-items: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  width: 220px;
}

.nav-search-box.focused {
  width: 320px;
}

.nav-search-icon {
  position: absolute;
  left: 14px;
  font-size: 0.82rem;
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
  transition: all 0.25s ease;
}

.nav-search-clear {
  position: absolute;
  right: 10px;
  font-size: 0.8rem;
  color: #94a3b8;
  cursor: pointer;
  z-index: 2;
  padding: 4px 5px;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
}

.nav-search-clear:hover {
  background-color: rgba(0, 133, 255, 0.08);
  color: #0085ff;
}

.nav-search-input {
  width: 100%;
  padding: 9px 34px 9px 38px;
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 500;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
  color: #0f172a;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  height: 40px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nav-search-input:hover {
  border-color: rgba(0, 133, 255, 0.3);
  background: linear-gradient(135deg, #eaf0f7 0%, #e2eaf4 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(0, 133, 255, 0.06);
}

.nav-search-input:focus {
  background: #ffffff;
  border-color: #0085ff;
  box-shadow: 0 0 0 3px rgba(0, 133, 255, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

.nav-search-input:focus~.nav-search-icon {
  color: #0085ff;
}

.nav-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Suggestion dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 14px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 25px -5px rgba(0, 0, 0, 0.08),
    0 20px 50px -12px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  padding: 6px 0;
  max-height: 360px;
  overflow-y: auto;
  backdrop-filter: blur(8px);
}

/* Shimmer animation for skeleton loaders */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}