/* Public collector profiles (landing theme) */

.pub-profile-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  position: relative;
  z-index: 1;
}

.pub-profile-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.pub-profile-back:hover { color: var(--amber); }

.pub-profile-hero {
  display: grid;
  gap: 24px;
  margin-bottom: 36px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
}

@media (min-width: 720px) {
  .pub-profile-hero {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

.pub-profile-identity {
  display: flex;
  gap: 16px;
  align-items: center;
}

.pub-profile-avatar,
.pub-profile-avatar--ph {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pub-profile-avatar--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber), var(--amber2));
  color: var(--dark);
  font-weight: 900;
  font-size: 1.8rem;
}

.pub-profile-name {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin: 0 0 6px;
}

.pub-profile-loc,
.pub-profile-meta {
  color: var(--muted);
  font-size: .88rem;
  margin: 0 0 4px;
}

.pub-profile-pro {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  background: rgba(74, 222, 128, .15);
  color: var(--amber);
  vertical-align: middle;
}

.pub-profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 520px) {
  .pub-profile-stats { grid-template-columns: repeat(4, 1fr); }
}

.pub-profile-stat {
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  text-align: center;
}

.pub-profile-stat-num {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.02em;
}

.pub-profile-stat-lbl {
  margin-top: 4px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}

.pub-profile-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.pub-profile-cta {
  margin-top: 40px;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(74, 222, 128, .25);
  background: rgba(74, 222, 128, .06);
  text-align: center;
}

.pub-profile-cta h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pub-profile-cta p {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 16px;
}

.pub-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--amber), var(--amber2));
  color: var(--dark);
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
}

.pub-profile-btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  margin-left: 10px;
}

.pub-profile-empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  border-radius: 14px;
  border: 1px dashed var(--border);
}

.pub-profile-error {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

/* Collection grid (from app coll-card, landing vars) */
.pub-coll-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .pub-coll-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .pub-coll-grid { grid-template-columns: repeat(4, 1fr); }
}

.pub-coll-card {
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, border-color .2s;
}

.pub-coll-card:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 222, 128, .35);
}

.pub-coll-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0a0a0c;
  overflow: hidden;
}

.pub-coll-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-coll-cover-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55));
}

.pub-coll-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  background: rgba(10, 10, 12, .75);
  color: #fde68a;
  border: 1px solid rgba(74, 222, 128, .3);
}

.pub-coll-body {
  padding: 12px 14px 14px;
}

.pub-coll-body h3 {
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-coll-meta {
  margin-top: 4px;
  font-size: .72rem;
  color: var(--muted);
}

/* Card tiles in public collection */
.pub-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 640px) {
  .pub-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

.pub-card-tile {
  display: flex;
  min-height: 78px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}

.pub-card-thumb {
  width: 56px;
  flex-shrink: 0;
  background: #0c0c10;
  position: relative;
  overflow: hidden;
}

.pub-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-card-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .75rem;
  color: #fff;
}

.pub-card-body {
  padding: 8px 10px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pub-card-num {
  font-size: .65rem;
  font-weight: 800;
  color: var(--muted);
}

.pub-card-player {
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pub-card-club {
  font-size: .72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pub-coll-header {
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
}

.pub-coll-header h1 {
  font-size: 1.35rem;
  font-weight: 900;
  margin: 0 0 6px;
}

.pub-coll-header p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.pub-coll-owner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  font-size: .82rem;
  font-weight: 700;
}

.pub-coll-owner:hover { border-color: rgba(74, 222, 128, .35); }

.pub-coll-owner-avatar,
.pub-coll-owner-avatar--ph {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.pub-coll-owner-avatar--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber), var(--amber2));
  color: var(--dark);
  font-weight: 800;
  font-size: .75rem;
}

@media (max-width: 640px) {
  .pub-profile-btn--ghost {
    margin-left: 0;
    margin-top: 10px;
  }
}

/* Hub / search */
.pub-profile-hub-header {
  text-align: center;
  margin-bottom: 32px;
}

.pub-profile-hub-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -.03em;
  margin: 0 0 12px;
}

.pub-profile-hub-header p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto;
}

.pub-profile-search {
  max-width: 520px;
  margin: 0 auto 32px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
}

.pub-profile-search--inline {
  max-width: 420px;
  margin: 24px auto 0;
  padding: 16px;
}

.pub-profile-search-label {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 8px;
}

.pub-profile-search-row {
  display: flex;
  gap: 10px;
}

.pub-profile-search-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  color: inherit;
  font-size: .95rem;
  font-weight: 600;
}

.pub-profile-search-row input:focus {
  outline: none;
  border-color: rgba(74, 222, 128, .45);
}

.pub-profile-search-row .pub-profile-btn {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

.pub-profile-search-hint {
  margin: 14px 0 0;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
}

.pub-profile-search-hint code {
  font-size: .72rem;
  word-break: break-all;
}
