﻿.page-profile-body {
  background: #f1f5f9;
  min-height: 100vh;
}

.page-profile {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.page-profile__hero {
  position: relative;
  margin-top: 32px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #1d4ed8, #9333ea);
  color: #fff;
  padding: 48px 36px;
}

.page-profile__cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.page-profile__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.page-profile__identity {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  z-index: 1;
}

.page-profile__avatar {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  border: 4px solid rgba(255, 255, 255, 0.85);
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}

.page-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-profile__text {
  flex: 1 1 320px;
  min-width: 260px;
}

.page-profile__title {
  font-size: 2.4rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-profile__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

.page-profile__handle {
  font-size: 1rem;
  margin-top: 6px;
  opacity: 0.85;
}

.page-profile__tagline {
  margin-top: 14px;
  font-size: 1.05rem;
}

.page-profile__category,
.page-profile__stats {
  margin-top: 10px;
  font-size: 0.95rem;
  opacity: 0.85;
}

.page-profile__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.page-profile__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.page-profile__btn--primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.page-profile__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.page-profile__btn--outline {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.page-profile__btn--outline:hover {
  border-color: #fff;
}

.page-profile__btn--disabled {
  background: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
}

.page-profile__chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.18);
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
}

.page-profile__chip--muted {
  background: #e2e8f0;
  color: #475569;
}

.page-profile__layout {
  display: flex;
  gap: 24px;
  margin-top: 28px;
}

.page-profile__main {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-profile__sidebar {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-profile__card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.page-profile__card h2 {
  margin-top: 0;
  font-size: 1.35rem;
  color: #0f172a;
}

.page-profile__bio {
  margin: 0;
  color: #334155;
  line-height: 1.6;
}

.page-profile__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-profile__contact-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 2px;
}

.page-profile__contact-link,
.page-profile__contact-text {
  font-size: 1rem;
  color: #1e293b;
  text-decoration: none;
}

.page-profile__contact-link:hover {
  text-decoration: underline;
}

.page-profile__owner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1f2937;
  font-weight: 600;
}

.page-profile__owner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1d4ed8;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.page-profile__owner-text {
  font-size: 1rem;
}

@media (max-width: 960px) {
  .page-profile__layout {
    flex-direction: column;
  }
  .page-profile__sidebar {
    flex: 1 1 auto;
  }
}

@media (max-width: 680px) {
  .page-profile__identity {
    align-items: flex-start;
  }
  .page-profile__actions {
    width: 100%;
    justify-content: flex-start;
  }
  .page-profile__hero {
    padding: 40px 24px;
  }
}


.page-profile__card--updates {
  padding: 26px 28px;
}

.page-profile__updates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.page-profile__updates-tabs {
  display: inline-flex;
  gap: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  padding: 4px;
}

.page-profile__tab {
  border: 0;
  background: transparent;
  color: #475569;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-profile__tab:hover {
  background: rgba(148, 163, 184, 0.35);
}

.page-profile__tab--active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.18);
}

.page-profile__timeline {
  position: relative;
  margin-top: 10px;
  padding-left: 20px;
}

.page-profile__timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.35), rgba(59, 130, 246, 0));
}

.page-profile__timeline-item {
  position: relative;
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.page-profile__timeline-item:last-child {
  margin-bottom: 0;
}

.page-profile__timeline-badge {
  position: absolute;
  left: -20px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1d4ed8;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.page-profile__timeline-card {
  flex: 1;
  background: #f8fafc;
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: #1e293b;
  line-height: 1.55;
}

.page-profile__timeline-card time {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 6px;
}

.page-profile__timeline-item--ghost .page-profile__timeline-card {
  min-height: 54px;
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.6), rgba(226, 232, 240, 0.3));
  border-style: dashed;
}
