/* The logged-in web Profile tab — own profile, read-only (no editing/
   settings in this phase). Loads after app-shell.css. */

.profile-main {
  max-width: 560px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 16px 12px;
}

.profile-avatar-img,
.profile-avatar-fallback {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.profile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
}

.profile-header-info {
  flex: 1;
  min-width: 0;
}

.profile-username {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 4px;
}

.profile-bio {
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
  margin: 0;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  margin-bottom: 8px;
}

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

.profile-stat-num {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

.profile-stat-label {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sub);
  margin-top: 2px;
}

.profile-section {
  padding: 16px 16px 4px;
}

.profile-section-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sub);
  margin: 0 0 10px;
}

.profile-section-empty {
  font-size: 13px;
  color: var(--sub);
  margin: 0 0 10px;
}

.profile-cars {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.profile-car-card {
  flex-shrink: 0;
  width: 140px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}

.profile-car-photo,
.profile-car-photo-fallback {
  width: 100%;
  height: 90px;
  object-fit: cover;
  background: var(--line);
  display: block;
}

.profile-car-info {
  padding: 8px 10px;
}

.profile-car-nickname {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-car-meta {
  font-size: 11px;
  color: var(--sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding-bottom: 16px;
}

.profile-grid-item {
  display: block;
  aspect-ratio: 1;
  background: var(--line);
}

.profile-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
