/* Community feed, posts, comments and the virtual vault.
   Continues the token set defined in site.css. */

/* ---------------------------------------------------------------- feed */

.feed-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 5vw 70px;
}
.feed-side .panel { position: sticky; top: 95px; }
.feed-side .panel + .panel { position: static; }

.feed-scope { margin-top: 22px; }
.feed-scope .chip { text-decoration: none; }

.join-prompt p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- composer */

.composer .composer-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

.composer textarea {
    min-height: 82px;
}

.composer-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
}

.composer-attach {
    display: inline-flex; align-items: center; gap: 9px;
    cursor: pointer; font-size: 13px; color: var(--mint-2); font-weight: 600;
}
.composer-attach input { position: absolute; opacity: 0; width: 0; height: 0; }
.composer-attach small { color: var(--muted); font-weight: 400; }
.composer-attach[hidden] { display: none; }

/* ---------------------------------------------------------------- posts */

.post-card .post-head { align-items: center; }
.post-card .post-head .avatar { overflow: hidden; text-decoration: none; }
.post-card .post-head .avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-head strong a { color: var(--cream); }
.post-card .post-head form { margin: 0 0 0 auto; }
.post-card .post-head form button { background: none; border: 0; color: var(--muted); cursor: pointer; }

.post-type {
    color: var(--mint-2); font-weight: 600;
}

.post-title {
    font: 700 19px 'Space Grotesk', sans-serif;
    margin: 4px 0 8px;
    letter-spacing: -.02em;
}
.post-title a { color: var(--cream); }
.post-title a:hover { color: var(--mint-2); }

.post-gallery {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ink-2);
}
.post-gallery.count-1 { grid-template-columns: 1fr; }
.post-gallery.count-2 { grid-template-columns: 1fr 1fr; }
.post-gallery.count-3 { grid-template-columns: 2fr 1fr 1fr; }
.post-gallery a { position: relative; display: block; overflow: hidden; max-height: 380px; }
.post-gallery img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; display: block; transition: transform 0.25s ease; }
.post-gallery a:hover img { transform: scale(1.02); }
.post-gallery .more-count {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background: rgba(6, 25, 35, .68);
    font: 700 20px 'Space Grotesk', sans-serif;
    color: var(--cream);
}

.post-actions .like-button.liked,
.like-button.liked { color: var(--coral); }
.post-actions a.like-button,
.post-actions a.comment-link { text-decoration: none; }
.post-actions form { margin: 0; }
.share-button { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; }

/* A collection flex embedded in a post. */
.flex-card {
    display: flex; align-items: center; gap: 13px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 11px;
    margin: 12px 0;
}
.flex-card:hover { border-color: #2d7776; }
.flex-thumb {
    flex: none; width: 62px; height: 62px; border-radius: 8px; overflow: hidden;
    background: var(--panel); display: grid; place-items: center; color: #35606a; font-size: 22px;
}
.flex-thumb img { width: 100%; height: 100%; object-fit: cover; }
.flex-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.flex-copy strong { color: var(--cream); font-size: 14px; }
.flex-copy small { color: var(--muted); font-size: 12px; }

/* Community Spotlight Card */
.community-spotlight-card {
    background: linear-gradient(150deg, #0d3a46, #082833);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.spotlight-header {
    margin-bottom: 14px;
}
.spotlight-header h3 {
    font: 700 18px 'Space Grotesk', sans-serif;
    margin: 3px 0 0;
    color: var(--cream);
    letter-spacing: -0.01em;
}
.collectors-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.collector-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(6, 26, 35, 0.45);
    border: 1px solid rgba(101, 214, 194, 0.12);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.collector-row:hover {
    background: rgba(101, 214, 194, 0.08);
    border-color: rgba(101, 214, 194, 0.28);
    transform: translateX(2px);
}
.collector-info {
    flex: 1;
    min-width: 0;
}
.collector-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.collector-info strong a {
    color: var(--cream);
    text-decoration: none;
}
.collector-info strong a:hover {
    color: var(--mint-2);
}
.collector-info small {
    display: block;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.collector-row .btn.small {
    padding: 5px 11px;
    font-size: 12px;
    flex: none;
}

.post-detail .post-card { margin-bottom: 18px; }
.post-photo-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}
.post-photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; display: block; }

/* ---------------------------------------------------------------- comments */

.comment-form {
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.comment-form .avatar { flex: none; overflow: hidden; }
.comment-form .avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-form input {
    flex: 1; min-width: 0;
    background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px;
    padding: 11px 13px; color: var(--cream); font: 400 14px 'DM Sans', sans-serif;
}
.comment-form input:focus {
    outline: 0; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(101, 214, 194, .18);
}

.comment { display: flex; gap: 11px; padding: 13px 0; }
.comment + .comment { border-top: 1px solid rgba(31, 94, 101, .4); }
.comment .avatar { flex: none; width: 34px; height: 34px; overflow: hidden; text-decoration: none; }
.comment .avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: baseline; gap: 9px; }
.comment-meta strong { font-size: 13.5px; }
.comment-meta strong a { color: var(--cream); }
.comment-meta small { color: var(--muted); font-size: 12px; }
.comment-body > p { margin: 4px 0 6px; font-size: 14px; }

.comment-actions { display: flex; align-items: center; gap: 13px; }
.comment-actions form { margin: 0; }
.like-button.small { font-size: 12.5px; background: none; border: 0; cursor: pointer; color: var(--muted); }

.reply-form { display: flex; gap: 9px; margin-top: 10px; }
.reply-form[hidden] { display: none; }
.reply-form input {
    flex: 1; min-width: 0;
    background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px;
    padding: 9px 12px; color: var(--cream); font: 400 13px 'DM Sans', sans-serif;
}
.reply-form input:focus { outline: 0; border-color: var(--mint); }

.comment-replies {
    margin-top: 10px;
    padding-left: 14px;
    border-left: 2px solid rgba(31, 94, 101, .55);
}
.comment.is-reply { padding: 9px 0; }
.comment.is-reply + .comment.is-reply { border-top: 0; }

/* ---------------------------------------------------------------- people */

.people-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px;
}
.person-card {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(180deg, #0d3b46, #092c36);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px;
}
.person-card .avatar { flex: none; overflow: hidden; text-decoration: none; }
.person-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-card > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.person-card strong a { color: var(--cream); font-size: 14px; }
.person-card small { color: var(--muted); font-size: 12px; }
.person-card form { margin: 0; }

.profile-meta a { color: var(--muted); }
.profile-meta a:hover { color: var(--mint-2); }
.profile-meta strong { color: var(--cream); }

/* ---------------------------------------------------------------- vault */

.collection-page-shell {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    padding: 36px 0 80px;
}

.collection-hero-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.collection-hero-bar h1 {
    font: 700 clamp(32px, 3.8vw, 48px)/1.1 'Space Grotesk', sans-serif;
    margin: 6px 0 8px;
    letter-spacing: -.03em;
}

.collection-hero-bar p {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}

.collection-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.collection-hero-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
}

.collection-hero-actions .btn svg {
    width: 16px;
    height: 16px;
    flex: none;
    stroke: currentColor;
}

.collection-hero-actions form {
    margin: 0;
}

/* 4 Metrics Cards Grid */
.vault-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.vault-stat-card {
    background: linear-gradient(175deg, #0b3742, #072832);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.vault-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(101, 214, 194, 0.4);
}

.vault-stat-card.highlighted {
    background: linear-gradient(175deg, #0e424f, #08303c);
    border-color: rgba(101, 214, 194, 0.35);
}

.stat-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.stat-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(101, 214, 194, 0.08);
    border: 1px solid rgba(101, 214, 194, 0.2);
    display: grid;
    place-items: center;
    color: var(--mint);
    flex: none;
}

.stat-icon-badge svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
}

.stat-icon-badge.mint {
    background: rgba(101, 214, 194, 0.16);
    border-color: var(--mint);
}

.stat-value {
    font: 700 28px/1 'Space Grotesk', sans-serif;
    color: var(--cream);
    letter-spacing: -0.02em;
}

.stat-value.mint {
    color: var(--mint);
}

.stat-value.muted {
    color: var(--muted);
}

.stat-value.up {
    color: var(--mint-2);
}

.stat-value.down {
    color: var(--coral);
}

.stat-sub {
    font-size: 12px;
    color: #8fa7a9;
    margin-top: 2px;
}

/* Info Callout Banner */
.vault-info-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(8, 38, 48, 0.6);
    border: 1px solid rgba(23, 80, 90, 0.55);
    border-radius: 12px;
    margin-bottom: 22px;
    color: #9eb7b9;
    font-size: 13px;
    line-height: 1.45;
}

.vault-info-banner svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--mint);
    stroke: currentColor;
}

.vault-info-banner strong {
    color: var(--cream);
}

.vault-info-banner p {
    margin: 0;
}

/* Toolbar & Filters */
.vault-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.vault-toolbar .filter-chips {
    margin: 0;
}

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.filter-chips .chip {
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(10, 44, 54, 0.7);
    border: 1px solid rgba(23, 80, 90, 0.7);
    color: #c4d7d7;
    transition: all 0.16s ease;
}
.filter-chips .chip:hover {
    background: #114552;
    color: #fff;
    border-color: var(--mint);
}
.filter-chips .chip.active {
    background: var(--mint);
    color: #032028;
    border-color: var(--mint);
    font-weight: 700;
    box-shadow: 0 0 12px rgba(101, 214, 194, 0.35);
}

.vault-empty-state {
    padding: 56px 28px;
    margin: 10px 0 30px;
}

.vault-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px;
}
.vault-grid.compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.vault-card {
    background: linear-gradient(180deg, #0d3b46, #092c36);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
}
.vault-card:hover { border-color: #2d7776; }

.vault-image {
    position: relative; display: block;
    aspect-ratio: 1; background: var(--ink-2);
    display: grid; place-items: center; color: #35606a; font-size: 32px;
}
.vault-image img { width: 100%; height: 100%; object-fit: cover; }

.availability-tag {
    position: absolute; left: 8px; bottom: 8px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 20px;
    background: rgba(6, 25, 35, .82); border: 1px solid var(--line); color: var(--muted);
}
.availability-tag.inline { position: static; }
.availability-open_to_offers .availability-tag { color: var(--mint-2); border-color: #2d7776; }
.availability-showcase .availability-tag { color: var(--gold); border-color: rgba(245, 187, 84, .5); }

.quantity-tag {
    position: absolute; right: 8px; top: 8px;
    font-size: 11px; font-weight: 700;
    padding: 2px 7px; border-radius: 20px;
    background: rgba(6, 25, 35, .82); color: var(--cream);
}

.vault-copy { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 4px; }
.vault-copy p { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.vault-copy p a { color: var(--cream); }
.vault-copy p a:hover { color: var(--mint-2); }
.vault-copy > small { color: var(--muted); font-size: 12px; }

.vault-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.vault-value strong { font: 700 17px 'Space Grotesk', sans-serif; color: var(--mint); }
.estimate-note { font-size: 11.5px; color: var(--muted); }
.value-change { font-size: 12px; font-weight: 700; }

.vault-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; }

/* ---------------------------------------------------------------- availability picker */

.availability-choices { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 9px; }
.choice {
    display: flex; align-items: flex-start; gap: 11px;
    background: var(--ink-2); border: 1px solid var(--line);
    border-radius: 10px; padding: 13px 15px; cursor: pointer;
    transition: .16s border-color, .16s background;
}
.choice:hover { border-color: #2d7776; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice > span:first-of-type {
    flex: none; width: 17px; height: 17px; margin-top: 2px;
    border: 1px solid #2f6b72; border-radius: 50%;
    background: var(--panel); display: grid; place-items: center;
}
.choice input:checked + span { border-color: var(--mint); }
.choice input:checked + span::after {
    content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
}
.choice input:checked ~ .choice-copy strong { color: var(--mint-2); }
.choice-copy { display: flex; flex-direction: column; gap: 2px; }
.choice-copy strong { font-size: 14px; }
.choice-copy small { color: var(--muted); font-size: 12.5px; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
    .feed-layout { grid-template-columns: 1fr; }
    .feed-side .panel { position: static; }
    .vault-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .vault-stats-grid { grid-template-columns: 1fr; }
    .collection-hero-bar { flex-direction: column; align-items: stretch; }
    .collection-hero-actions { flex-direction: column; align-items: stretch; }
    .collection-hero-actions .btn { justify-content: center; }
    .post-gallery.count-3 { grid-template-columns: 1fr 1fr; }
    .comment-form { flex-wrap: wrap; }
    .comment-form input { width: 100%; flex-basis: 100%; }
}

/* ---------------------------------------------------------------- reports */

.report-trigger { color: var(--muted); }
.report-trigger:hover { color: var(--coral); }

.report-slot { margin-top: 12px; text-align: center; }

.report-form {
    margin-top: 12px;
    padding: 14px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}
.report-form[hidden] { display: none; }
.report-form select,
.report-form textarea {
    width: 100%;
    box-sizing: border-box;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 12px;
    color: var(--cream);
    font: 400 13px 'DM Sans', sans-serif;
}
.report-form select:focus,
.report-form textarea:focus {
    outline: 0;
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(101, 214, 194, .18);
}
