/* Avahouse brand: fuchsia A, arrows, 3D pedestal, profile UI */
:root {
  --fuchsia: #fb3fc7;
  --fuchsia-soft: #ff8ae6;
  --fuchsia-dim: rgba(251, 63, 199, 0.18);
  --fuchsia-glow: rgba(251, 63, 199, 0.45);
  --violet: #a855f7;
  --surface: #0f1624;
  --surface-2: #151d2e;
  --surface-3: #1c2640;
  --text: rgba(255, 255, 255, 0.92);
  --text-soft: rgba(255, 255, 255, 0.58);
}

body.theme-dark {
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(251, 63, 199, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(94, 234, 212, 0.08), transparent 50%),
    linear-gradient(180deg, var(--night) 0%, var(--surface) 100%);
}

body.theme-dark .lead {
  color: var(--text-soft);
}

body.theme-dark .site-header {
  background: rgba(7, 11, 18, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.theme-dark .site-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
}

body.theme-dark .eyebrow {
  color: var(--fuchsia-soft);
}

body.theme-dark .btn--ghost {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

/* Brand lockup — native A, not PNG */
.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-word {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  background: linear-gradient(90deg, var(--white) 0%, rgba(255, 255, 255, 0.82) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand:hover .logo-word {
  background: linear-gradient(90deg, var(--fuchsia-soft), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}

/* Decorative brand arrows */
.brand-arrows {
  position: absolute;
  pointer-events: none;
  opacity: 0.35;
}

.brand-arrow {
  fill: none;
  stroke: var(--fuchsia);
  stroke-width: 2;
  stroke-linecap: round;
}

/* ─── Profile presentation (FB-style → Avahouse) ─── */
.profile-stage {
  position: relative;
  padding: 100px 0 100px;
  min-height: calc(100vh - 80px);
}

.profile-ui {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.profile-ui__topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.profile-ui__topbar .brand-mark {
  width: 22px;
  height: 22px;
}

.profile-ui__cover {
  height: 180px;
  background:
    linear-gradient(135deg, rgba(251, 63, 199, 0.35), rgba(94, 234, 212, 0.2)),
    url("https://dev.avahouse.ru/storage/avatars/images/08b44c0b-3bc8-4c69-bf0b-99ae9a3b6f71.png") center/cover;
  position: relative;
}

.profile-ui__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--surface-2));
}

.profile-ui__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: end;
  padding: 0 24px 20px;
  margin-top: -48px;
  position: relative;
  z-index: 2;
}

.profile-ui__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid var(--surface-2);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(251, 63, 199, 0.25);
}

.profile-ui__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-ui__name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
  line-height: 1;
}

.profile-ui__handle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  margin-top: 6px;
}

.profile-ui__stats {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 8px;
}

.profile-ui__stats strong {
  color: var(--text);
  font-weight: 600;
}

.profile-ui__actions {
  display: flex;
  gap: 10px;
  align-self: center;
}

.profile-ui__actions .btn {
  padding: 10px 18px;
  font-size: 0.82rem;
}

.btn--fuchsia {
  background: linear-gradient(135deg, var(--fuchsia-soft), var(--fuchsia));
  color: var(--white);
  box-shadow: 0 8px 28px var(--fuchsia-dim);
}

.profile-ui__tabs {
  display: flex;
  gap: 4px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-ui__tab {
  padding: 14px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.profile-ui__tab.is-active {
  color: var(--fuchsia-soft);
  border-bottom-color: var(--fuchsia);
}

.profile-ui__body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  min-height: 320px;
}

.profile-feed {
  padding: 20px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-post {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
}

.profile-post__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.profile-post__head img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-post__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.profile-post__grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}

.profile-sidebar {
  padding: 20px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.profile-sidebar h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  margin: 0 0 12px;
}

.profile-sidebar ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.profile-sidebar li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.profile-sidebar li::before {
  content: "→ ";
  color: var(--fuchsia);
}

/* 3D A pedestal — avatar sits here (replaces Facebook f) */
.ava-pedestal-scene {
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  width: min(420px, 90%);
  height: 340px;
  pointer-events: none;
  z-index: 20;
}

.ava-pedestal {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotateX(12deg);
  transform-style: preserve-3d;
  perspective: 800px;
}

.ava-pedestal__disc {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--fuchsia-soft) 0%, var(--fuchsia) 45%, var(--violet) 100%);
  box-shadow:
    0 30px 60px var(--fuchsia-glow),
    inset 0 -8px 24px rgba(0, 0, 0, 0.25),
    inset 0 8px 16px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ava-pedestal__disc::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.ava-pedestal__disc .brand-mark {
  width: 110px;
  height: 110px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.ava-pedestal__disc .brand-mark path[fill="url(#ava-fuchsia)"] {
  fill: white;
}

.ava-pedestal__figure {
  position: absolute;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, 65%);
  z-index: 5;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
  animation: pedestal-float 5s ease-in-out infinite;
}

@keyframes pedestal-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.ava-pedestal__shadow {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 24px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.45), transparent 70%);
  filter: blur(8px);
}

/* License dock under profile */
.profile-license-dock {
  position: relative;
  z-index: 25;
  margin: 280px auto 0;
  max-width: 520px;
  padding: 14px 22px;
  border-radius: 999px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  background: rgba(15, 22, 36, 0.92);
  border: 1px solid rgba(251, 63, 199, 0.35);
  color: var(--text-soft);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 48px rgba(251, 63, 199, 0.15);
}

.profile-license-dock strong {
  color: var(--fuchsia-soft);
}

/* Stage page extras */
.stage-back {
  color: var(--text-soft);
}

.stage-back:hover {
  color: var(--fuchsia-soft);
}

.stage-details-dark .detail-card {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
}

.stage-details-dark .detail-card h3 {
  color: var(--text);
  font-family: var(--font-display);
}

.stage-details-dark {
  padding: 64px 0 96px;
}

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

.detail-card {
  padding: 24px;
  border-radius: var(--radius-md);
}

.detail-card p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .profile-ui__head {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-ui__avatar {
    margin: 0 auto;
  }

  .profile-ui__actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .profile-ui__body {
    grid-template-columns: 1fr;
  }

  .profile-feed {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .ava-pedestal-scene {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: -40px auto 0;
  }

  .profile-license-dock {
    margin-top: 24px;
  }
}
