.profile-editor {
  max-width: 900px;
  margin: 0 auto;
}

.profile-editor h1 {
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-editor h2 {
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.profile-editor form {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.photo-section-inline {
  background: rgba(0, 212, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Dark mode styling for select dropdown */
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.5rem;
}

.form-group select option:checked {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.interest-input {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.interest-input input {
  flex: 1;
  margin: 0;
}

.interest-input button {
  flex-shrink: 0;
  padding: 0.9rem 1.8rem;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.interest-input button:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
}

.interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.interest-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid var(--accent-primary);
  font-weight: 600;
}

.interest-tag button {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 1.1rem;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  transition: all 0.3s ease;
}

.interest-tag button:hover {
  color: var(--accent-secondary);
  transform: scale(1.2);
}

.profile-editor form > button {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.profile-editor form > button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.photo-section {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.photo-section h2 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.photo-upload {
  margin-bottom: 2rem;
}

.photo-upload input {
  display: none;
}

.photo-upload label {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #00d4ff, #00a896);
  color: var(--bg-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.photo-upload label:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.photo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.photo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.photo-card .delete-btn {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #ff006e, #ff1493);
  color: white;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.photo-card .delete-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}
