/* gallery.css — public collection */

/* Public profile */
.pub-hero {
    position: relative; background-color: var(--dark);
    background-size: cover; background-position: center;
    padding: 32px 28px 28px; display: flex; flex-direction: column; justify-content: flex-end;
    border-radius: var(--radius) var(--radius) 0 0;
}
.pub-hero::before {
    content: ''; position: absolute; inset: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(to bottom,
        rgba(43,42,41,0.1), rgba(43,42,41,0.45) 40%, rgba(43,42,41,0.92) 75%, rgba(43,42,41,0.97));
}
.pub-hero > * { position: relative; z-index: 1; }
.pub-hero--standalone { border-radius: var(--radius); }
.pub-hero--standalone::before { border-radius: var(--radius); }

.pub-hero__identity { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.pub-hero__avatar {
    width: 80px; height: 80px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.15);
    object-fit: cover; background: var(--dark-soft); flex-shrink: 0;
}
.pub-hero__name {
    font-size: 26px; font-weight: 800; color: #fff; margin: 0; line-height: 1.15;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.pub-hero__slug { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 3px; }

.pub-hero__bar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}
.pub-hero__stats { display: flex; gap: 18px; }
.pub-hero__stat { font-size: 13px; color: rgba(255,255,255,0.5); }
.pub-hero__stat strong { font-size: 15px; font-weight: 800; color: #fff; margin-right: 3px; }
.pub-hero__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.pub-btn {
    display: inline-flex; align-items: center; padding: 9px 24px; border-radius: 8px;
    font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.15s;
    text-decoration: none; border: none; line-height: 1.2;
}
.pub-btn--primary { background: #fff; color: var(--dark); }
.pub-btn--primary:hover { background: rgba(255,255,255,0.85); color: var(--dark); text-decoration: none; }
.pub-btn--secondary {
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
    border: 1.5px solid rgba(255,255,255,0.15);
}
.pub-btn--secondary:hover {
    background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3);
    color: #fff; text-decoration: none;
}

.pub-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius); border-top: none;
    padding: 22px 28px;
}
.pub-about { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.pub-about a { color: var(--text-1); text-decoration: underline; text-underline-offset: 2px; }
.pub-about a:hover { text-decoration-color: var(--dark); }
.pub-message {
    background: var(--subtle); border: 1px solid var(--border); border-radius: 8px;
    padding: 10px 14px; font-size: 13px; color: var(--text-2); margin-bottom: 6px;
}
.pub-message:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
    .pub-hero { padding: 24px 18px 22px; }
    .pub-hero__avatar { width: 60px; height: 60px; }
    .pub-hero__name { font-size: 22px; }
    .pub-hero__identity { gap: 14px; margin-bottom: 18px; }
    .pub-hero__bar { flex-direction: column; align-items: flex-start; gap: 14px; }
    .pub-hero__actions { width: 100%; }
    .pub-btn { flex: 1; justify-content: center; }
    .pub-card { padding: 18px 16px; }
}