/* ===== Ergosona – Profile Page ===== */

.profile-page {
  padding-bottom: 40px;
}

.profile-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px;
}

.profile-header {
  margin-bottom: 26px;
}

.profile-kicker {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(44, 200, 185, 0.38);
  background: rgba(44, 200, 185, 0.12);
  color: var(--primary-light);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.profile-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  margin-bottom: 6px;
}

.profile-header p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.64;
  max-width: 760px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.profile-card {
  background: linear-gradient(
    160deg,
    rgba(21, 37, 40, 0.95),
    rgba(18, 34, 38, 0.98)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition:
    border-color 0.2s var(--easing-snappy),
    box-shadow 0.2s var(--easing-snappy),
    transform 0.2s var(--easing-snappy);
}

.profile-card:hover {
  border-color: rgba(44, 200, 185, 0.3);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.profile-card h2 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.profile-form {
  display: grid;
  gap: 16px;
}

.field-row {
  display: grid;
  gap: 7px;
}

.field-row.two-cols {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-row label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.field-meta {
  margin: -2px 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
}

.profile-form input,
.profile-form select,
.profile-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(92, 130, 136, 0.75);
  background: #102126;
  color: #ecf4f2;
  font-size: 0.88rem;
  line-height: 1.35;
  color-scheme: dark;
  transition:
    border-color 0.18s var(--easing-snappy),
    background-color 0.18s var(--easing-snappy),
    box-shadow 0.18s var(--easing-snappy);
}

.profile-form input:hover,
.profile-form select:hover,
.profile-form textarea:hover {
  border-color: rgba(122, 162, 169, 0.92);
  background: #12262c;
}

.profile-form textarea {
  min-height: 92px;
  resize: vertical;
}

.profile-form input::placeholder,
.profile-form textarea::placeholder {
  color: #88a6a0;
}

.profile-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, #9fd4cd 50%),
    linear-gradient(135deg, #9fd4cd 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.profile-form select option,
.profile-form select optgroup {
  background: #123037;
  color: #ecf4f2;
}

.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(44, 200, 185, 0.2);
  background: #13272d;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.profile-status {
  min-height: 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-status.success {
  color: var(--success);
}

.profile-status.warning {
  color: var(--warning);
}

.profile-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.profile-summary-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 10px 12px;
  transition:
    border-color 0.2s var(--easing-snappy),
    background-color 0.2s var(--easing-snappy),
    transform 0.2s var(--easing-snappy);
}

.profile-summary-item:hover {
  border-color: rgba(44, 200, 185, 0.3);
  background: rgba(44, 200, 185, 0.08);
  transform: translateY(-1px);
}

.profile-summary-item strong {
  display: block;
  color: var(--text-muted);
  font-size: 0.74rem;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.profile-summary-item span {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.profile-privacy-note {
  border-radius: 10px;
  border: 1px solid rgba(44, 200, 185, 0.3);
  background: rgba(44, 200, 185, 0.1);
  padding: 11px 13px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.56;
}

@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .profile-shell {
    padding: 14px 12px;
  }

  .field-row.two-cols {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    flex-direction: column;
  }

  .profile-actions .btn {
    width: 100%;
  }
}
