/* Liberation Vision 2.0 — Kategorie A pixel-match pass (Referenz-Sammlung 1-4) */

/* ===== 04 Profile Page ===== */

.public-profile-wrap {
  gap: 0;
}

.public-profile-cover {
  min-height: 300px;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 22px;
}

.public-profile-cover .pp-follow {
  position: relative;
  z-index: 1;
}

.pp-identity {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: -60px;
  padding: 0 8px;
  position: relative;
  z-index: 2;
}

.public-profile-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 4px solid #08060c;
}

.public-profile-avatar::after {
  right: 4px;
  bottom: 4px;
}

.public-profile-title {
  padding-bottom: 10px;
}

.public-profile-title h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.public-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 22px 8px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 212, 99, .16);
}

.public-profile-stats div {
  border: none;
  padding: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.public-profile-stats strong {
  font-size: 20px;
}

.public-profile-stats span {
  font-size: 13px;
}

.pp-tabs {
  display: flex;
  gap: 0;
  margin: 20px 8px 0;
  border-bottom: 1px solid rgba(255, 212, 99, .16);
  overflow-x: auto;
}

.pp-tab {
  border: none;
  background: transparent;
  color: rgba(255, 244, 220, .58);
  font-weight: 800;
  font-size: .92rem;
  padding: 14px 4px;
  margin-right: 26px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.pp-tab.active {
  color: #ffe58f;
}

.pp-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #d9a333, #fff0a6);
  border-radius: 2px;
}

.public-profile-layout {
  display: block;
  padding: 24px 8px 0;
}

.pp-panel[hidden] {
  display: none;
}

.public-profile-layout[data-shorts-only="true"] #publicProfilePosts .lc-post-card:not(.lc-short-card) {
  display: none;
}

@media (max-width: 760px) {
  .pp-identity {
    flex-direction: column;
    align-items: flex-start;
    margin-top: -44px;
  }
  .public-profile-avatar {
    width: 96px;
    height: 96px;
  }
  .public-profile-stats {
    gap: 18px;
  }
}

/* ===== 05 Create Post (Composer) ===== */

.composer-window {
  padding: 24px;
  border-radius: 26px;
}

.composer-type-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.composer-type-row button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  font-weight: 700;
  font-size: 0.86rem;
}

.composer-type-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.composer-type-row button.active .composer-type-icon {
  background: rgba(19, 13, 5, 0.18);
}

.composer-intro {
  margin-top: 4px;
  font-size: 0.92rem;
}

/* ===== 06 Marketplace ===== */

.market-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.market-search {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.market-search-icon {
  color: rgba(255, 246, 223, 0.5);
  font-size: 1rem;
}

.market-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff6df;
  font: inherit;
  outline: none;
}

.market-search input::placeholder {
  color: rgba(255, 246, 223, 0.4);
}

.market-toolbar .filter-row {
  margin-top: 0;
}

.market-thumb {
  height: 190px;
  border-radius: 20px;
}

.market-card {
  padding: 16px;
}

/* ===== 07 Creator Directory ===== */

.creator-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.creator-dir-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 22px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.creator-dir-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: rgba(243, 199, 91, 0.16);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: #ffe58f;
  font-weight: 800;
}

.creator-dir-card strong {
  color: #fff6df;
}

.creator-dir-card span {
  color: rgba(255, 246, 223, 0.55);
  font-size: 0.86rem;
}

.creator-dir-card button {
  margin-top: 6px;
}

.creator-dir-empty {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  color: rgba(255, 246, 223, 0.6);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

@media (max-width: 900px) {
  .creator-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== 08 Login / Register =====
   Hinweis: Registrierung ist aktuell per .closed-beta-hidden global deaktiviert
   (liberation-core-fixes-v46.js: "Public registration closed for now").
   Deshalb nur die echte, sichtbare Login-Karte stylen statt ein Nebeneinander
   mit einem absichtlich verborgenen Signup-Formular zu erzwingen. */

body.route-mode[data-current-route="/login"] #authShell,
body.route-mode[data-current-route="/register"] #authShell {
  max-width: 460px;
}

body.route-mode[data-current-route="/login"] .real-auth-form,
body.route-mode[data-current-route="/register"] .real-auth-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(19, 14, 8, .94), rgba(8, 6, 3, .9));
  padding: 28px;
}

.auth-card-title {
  margin: 0 0 2px;
  font-size: 1.4rem;
  color: #fff6df;
}

.auth-card-subtitle {
  margin: 0 0 8px;
  color: rgba(255, 246, 223, 0.6);
  font-size: 0.9rem;
}

.auth-switch {
  margin: 4px 0 0;
  text-align: center;
  color: rgba(255, 246, 223, 0.6);
  font-size: 0.88rem;
}

.auth-switch a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

/* ===== 09 Mobile Navigation ===== */

@media (max-width: 760px) {
  .main-nav.open {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 96px 28px 32px;
    border-radius: 0;
    border: none;
    background: linear-gradient(180deg, rgba(6,4,2,.99), rgba(8,6,3,.99));
    z-index: 2000;
  }

  .main-nav.open a {
    padding: 16px 4px;
    border-bottom: 1px solid rgba(255, 212, 99, .12);
    border-radius: 0;
    font-size: 1.05rem;
  }

  .main-nav.open .nav-pill {
    margin-top: 20px;
    text-align: center;
    border-bottom: none;
  }

  .nav-shell:has(.main-nav.open) .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-shell:has(.main-nav.open) .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav-shell:has(.main-nav.open) .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav-shell:has(.main-nav.open) .nav-toggle {
    position: relative;
    z-index: 2001;
  }
}

@media (max-width: 860px) {
  body.route-mode[data-current-route="/login"] #authShell,
  body.route-mode[data-current-route="/register"] #authShell {
    grid-template-columns: 1fr;
  }
}
