/* ===== PROFILE ===== */
.profile-container {
  overflow-y: auto;
  height: calc(100vh - var(--nav-height) - var(--header-height));
  height: calc(100dvh - var(--nav-height) - var(--header-height));
  background: var(--bg-primary);
}

/* ===== PROFILE HEADER ===== */
.profile-header {
  position: relative;
  background: var(--bg-secondary);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.profile-cover {
  width: 100%;
  height: 200px;
  background: var(--primary-gradient);
  position: relative;
}

.profile-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 5px solid var(--bg-secondary);
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: var(--shadow-md);
}

.profile-header-info {
  text-align: center;
  padding: 72px 24px 0;
}

.profile-name-large {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.profile-verified-badge {
  color: var(--superlike-blue);
  font-size: 20px;
}

.profile-location-text {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}

.profile-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.profile-stat {
  text-align: center;
}

.profile-stat-value {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.profile-stat-label {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Trust Score */
.trust-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  max-width: 200px;
  margin: 0 auto 16px;
}

.trust-score-value {
  font-size: var(--font-size-xl);
  font-weight: 800;
}

.trust-score-value.high { color: var(--like-green); }
.trust-score-value.medium { color: var(--gold); }
.trust-score-value.low { color: var(--nope-red); }

.trust-score-label {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
}

.profile-edit-btn {
  margin-top: 8px;
}

/* ===== PHOTO GALLERY ===== */
.photos-section {
  padding: 24px 16px;
}

.photos-section h3 {
  font-size: var(--font-size-md);
  font-weight: 700;
  margin-bottom: 16px;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.photo-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  position: relative;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.photo-item:hover img {
  transform: scale(1.05);
}

.photo-item .main-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 4px 8px;
  background: rgba(0,0,0,0.7);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  color: white;
}

/* ===== BIO SECTION ===== */
.profile-section {
  padding: 24px 16px;
  border-top: 1px solid var(--border-color);
}

.profile-section h3 {
  font-size: var(--font-size-md);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.profile-bio-text {
  font-size: var(--font-size-md);
  line-height: 1.6;
  color: var(--text-primary);
}

/* ===== INTERESTS SECTION ===== */
.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
}

.interest-item .icon {
  opacity: 0.7;
}

/* ===== EDIT PROFILE ===== */
.edit-profile-container {
  overflow-y: auto;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  background: var(--bg-primary);
}

.edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 10;
}

.edit-header h2 {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.edit-save-btn {
  padding: 8px 20px;
  background: var(--primary-gradient);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: white;
}

.edit-section {
  padding: 24px 16px;
  border-bottom: 1px solid var(--border-color);
}

.edit-section h3 {
  font-size: var(--font-size-md);
  font-weight: 700;
  margin-bottom: 16px;
}

.edit-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.edit-photo-slot {
  aspect-ratio: 1;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px dashed var(--border-color);
  transition: all var(--transition-fast);
}

.edit-photo-slot:hover {
  border-color: var(--primary);
}

.edit-photo-slot.has-photo {
  border-style: solid;
  border-color: transparent;
}

.edit-photo-slot.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-photo-main {
  position: absolute;
  bottom: 4px;
  left: 4px;
  padding: 2px 6px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  color: white;
}

.edit-photo-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(0,0,0,0.7);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.edit-photo-slot:hover .edit-photo-delete {
  opacity: 1;
}

.edit-interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edit-interest-tag {
  padding: 8px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.edit-interest-tag.selected {
  background: rgba(254, 60, 114, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.edit-interest-tag:hover {
  border-color: var(--border-light);
}

/* ===== OTHER USER PROFILE ===== */
.profile-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 24px 16px;
  position: sticky;
  bottom: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.profile-action-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  transition: all var(--transition-fast);
}

.profile-action-btn:hover {
  transform: scale(1.1);
}

.profile-action-btn.like {
  color: var(--like-green);
  border-color: var(--like-green);
}

.profile-action-btn.nope {
  color: var(--nope-red);
  border-color: var(--nope-red);
}

.profile-action-btn.superlike {
  color: var(--superlike-blue);
  border-color: var(--superlike-blue);
}

/* ===== PERSONALITY SECTION ===== */
.personality-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.personality-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.personality-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.personality-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.personality-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 4px;
  transition: width 0.6s ease;
}
