/* Profile selection (full screen, centered) */
.profile-select-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.profile-select {
  text-align: center;
}

.profile-select-title {
  margin-bottom: 1.5rem;
}

.profile-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.25rem;
  max-width: 100%;
}

.profile-card {
  text-align: center;
}

.profile-avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #edf2ff;
  border: 4px solid transparent;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.profile-card:hover .profile-avatar-img,
.profile-card:focus-within .profile-avatar-img {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(var(--brand-primary-rgb), .25);
  border-color: var(--brand-primary);
}

.profile-name {
  margin-top: .75rem;
  font-weight: 600;
}

.profile-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  transition: border-color .15s ease, color .15s ease;
}

.push-right {
  margin-left: auto;
}

.profile-card:hover .profile-add,
.profile-card:focus-within .profile-add {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* Role badges for profile avatars */
.profile-avatar {
  position: relative;
  display: inline-block;
}

.role-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .15);
  font-size: 18px;
}

.role-primary {
  background-color: var(--brand-primary);
}

.role-contributor {
  background-color: #6c757d;
}

/* Profile detail page */
.profile-hero {
  --avatar-size: clamp(150px, 12vw, 300px);
  min-height: 380px;
  padding-bottom: 112px;
  position: relative;
}

.profile-hero-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0) 99%, rgba(255, 255, 255, 1) 100%),
    var(--profile-cover-url, url('../Assets/demo2.png')) center/cover no-repeat;
}

.profile-avatar-wrap {
  position: relative;
  top: calc(-0.35 * var(--avatar-size));
  margin-bottom: 12px;
}

.profile-hero .container {
  position: relative;
  z-index: 1;
}

.profile-avatar-lg {
  /* Responsive avatar between 150px and 300px depending on viewport */
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

/* Typography and actions */
.profile-title {
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 40px);
}

.profile-subtitle {
  color: #6c757d;
  font-size: clamp(14px, 1.4vw, 18px);
  margin-bottom: 1.25rem;
}

.profile-actions .btn {
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 500;
}

.profile-actions .btn i {
  margin-right: .5rem;
}

.profile-tabs {
  gap: 15px;
  border-bottom: none;
  padding-bottom: 5px;
}

.profile-tabs .nav-item {
  margin-bottom: 0;
}

.profile-tabs .nav-link {
  border: none;
  border-radius: 50px;
  /* Fully rounded "pill" shape */
  padding: 10px 24px;
  font-weight: 600;
  color: #64748b;
  background: white;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 -3px 0 rgba(0, 0, 0, 0.02) inset;
  /* Subtle 3D bottom edge */
}

.profile-tabs .nav-link:hover {
  transform: translateY(-2px);
  color: var(--brand-primary);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05),
    0 -3px 0 var(--brand-primary) inset;
  /* Hint of color on hover */
}

.profile-tabs .nav-link.active {
  background: var(--brand-primary);
  color: white;
  transform: translateY(1px);
  /* Pressed effect */
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    /* Inner shadow for pressed look */
    0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Profile actions spacing on large screens */
@media (min-width: 768px) {
  .profile-actions {
    margin-top: 6px;
  }
}

/* Upload card (used in photo grid) */
.border-dashed {
  border-style: dashed !important;
}

.upload-photo-card {
  min-height: 140px;
  background: #f8fafc;
  color: #64748b;
  border-color: #cbd5e1 !important;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.upload-photo-card:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary) !important;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(var(--brand-primary-rgb), .1);
}

/* Tributes */
.tribute-card {
  border: none;
  border-radius: .75rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.tribute-meta {
  color: #6c757d;
  font-size: .9rem;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e9ecef;
  color: #495057;
  font-weight: 700;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}


.pp {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -50px;
  top: auto;
  right: auto;
}

/* Create Profile Page Layout */
.create-profile-wrapper {
  overflow: hidden;
}

.create-profile-left {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 1;
}

.create-profile-right {
  margin-left: 0;
  min-height: 100vh;
}

@media (min-width: 992px) {
  .create-profile-right {
    margin-left: 41.666667%;
    /* col-lg-5 width */
  }
}

.create-profile-scroll {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  /* Hide scrollbar for Chrome, Safari and Opera */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.create-profile-scroll::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

/* Photo Gallery Upload */
.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.photo-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-item:hover img {
  transform: scale(1.05);
}

.photo-item .delete-photo-btn {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.photo-item:hover .delete-photo-btn {
  opacity: 1;
}

/* Upload Modal */
#uploadPhotoModal .list-group-item {
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

#uploadPhotoModal .progress {
  border-radius: 4px;
  overflow: hidden;
}

#uploadPhotoModal .card {
  border: 1px solid #e5e7eb;
}

.upload-photo-card {
  cursor: pointer;
  border: none;
}

/* Upload Modal Drag and Drop Zone */
#dropZone {
  cursor: pointer;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#dropZone:hover {
  border-color: #3b82f6 !important;
  background-color: #eff6ff !important;
}

#dropZone.drag-over {
  border-color: #3b82f6 !important;
  background-color: #eff6ff !important;
  transform: scale(1.02);
}

/* Upload Modal Image Preview */
.upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem 0.375rem 0 0;
}

.upload-overlay-content {
  text-align: center;
}

#uploadPhotoModal .card-img-top {
  transition: transform 0.2s ease;
}

#uploadPhotoModal .card:hover .card-img-top {
  transform: scale(1.05);
}

/* Stepper UI */
.stepper-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.stepper-header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
  transform: translateY(-50%);
}

.step-item {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #64748b;
  z-index: 1;
  position: relative;
  transition: all 0.3s ease;
}

.step-item.active {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.step-item.completed {
  border-color: #10b981;
  background: #10b981;
  color: #fff;
}

.step-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.step-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-icon {
  cursor: pointer;
  color: #3b82f6;
  font-size: 0.9rem;
  vertical-align: middle;
  margin-left: 4px;
  transition: color 0.2s ease;
}

.info-icon:hover {
  color: #2563eb;
}

.popover {
  border: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.popover-header {
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
}