/* membership.css — styles for membership.html (the free Puppetverse community page). Same colors as style.css. */
[hidden] { display: none !important; }
.mem { max-width: 1100px; margin: 0 auto; padding: 40px 20px 60px; text-align: left; }
.mem-hero { text-align: center; padding: 24px 0 36px; }
.mem-hero .tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #071a2e; background: #f5a623; padding: 5px 12px; border-radius: 20px; }
.mem-hero h1 { font-size: 40px; font-weight: 900; letter-spacing: 2px; margin: 14px 0 8px; }
.mem-hero p { color: #9db2c8; font-size: 15px; margin-bottom: 20px; }
.mem-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mem-cta a { width: auto; min-width: 160px; }
.mem-sec { margin-top: 36px; }
.mem-sec h2 { font-size: 22px; margin-bottom: 4px; }
.mem-sec > .sub { color: #9db2c8; font-size: 13px; margin-bottom: 16px; }
.mem-card { background: linear-gradient(180deg, #0d2744 0%, #0a2038 100%); border: 1px solid #14385c; border-radius: 10px; padding: 20px; }
.mem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.mem-item { background: #081a2f; border: 1px solid #14385c; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.mem-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #0a2038; }
.mem-item .thumb { aspect-ratio: 16/9; }
.mem-item .b { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mem-item h3 { font-size: 13px; line-height: 1.3; }
.mem-item small { color: #9db2c8; font-size: 11px; }
.mem-item .row { display: flex; gap: 8px; margin-top: auto; }
.mem-item .row .btn-card, .mem-item .row .dash-ghost-btn { flex: 1; padding: 9px 8px; font-size: 11px; text-align: center; text-decoration: none; }
.mem-empty { text-align: center; color: #9db2c8; font-size: 13px; padding: 26px 10px; }
.mem-empty i { font-size: 28px; color: #14385c; display: block; margin-bottom: 10px; }
.mem-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mem-ann { display: flex; flex-direction: column; gap: 10px; }
.mem-ann .item { background: #081a2f; border: 1px solid #14385c; border-radius: 8px; padding: 14px; }
.mem-ann small { color: #9db2c8; font-size: 11px; } .mem-ann h4 { font-size: 13px; margin: 4px 0; } .mem-ann p { font-size: 12px; color: #a9bcd0; line-height: 1.5; }
.mem-ann .live { color: #f5a623; font-weight: 800; }
.post-form textarea { width: 100%; min-height: 78px; resize: vertical; margin-bottom: 8px; }
.post-form .bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.post-form .bar span { font-size: 11px; color: #9db2c8; }
.post-form .bar button { width: auto; padding: 10px 22px; }
.prompt { font-weight: 800; margin-bottom: 10px; }
.posts { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.post { background: #081a2f; border: 1px solid #14385c; border-radius: 8px; padding: 14px; }
.post .meta { font-size: 11px; color: #9db2c8; margin-bottom: 6px; }
.post .meta strong { color: #12b5f2; font-size: 12px; }
.post p { font-size: 13px; line-height: 1.55; color: #dbe7f3; white-space: pre-wrap; word-break: break-word; }
.post .acts { margin-top: 8px; display: flex; gap: 14px; }
.post .acts button { background: none; border: none; color: #9db2c8; font-size: 11px; font-weight: 700; cursor: pointer; padding: 0; }
.post .acts button:hover { color: #12b5f2; }
.replies { margin: 12px 0 0 14px; padding-left: 14px; border-left: 2px solid #14385c; display: flex; flex-direction: column; gap: 10px; }
.reply-form { margin-top: 10px; display: flex; gap: 8px; }
.reply-form input { flex: 1; }
.reply-form button { width: auto; padding: 10px 16px; }
.mem-note { font-size: 12px; margin-top: 8px; }
.gate { text-align: center; padding: 26px 10px; color: #9db2c8; font-size: 14px; }
.gate .mem-cta { margin-top: 14px; }
/* Wishlist heart on merch cards: just a heart (no circle). Dark see-through heart with a white outline,
   so it shows on light and dark product photos. Saved items turn pink. */
.heart-btn { position: absolute; top: 10px; right: 10px; z-index: 3; width: 34px; height: 34px; padding: 4px; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.heart-btn svg { width: 24px; height: 24px; fill: rgba(7,26,46,.45); stroke: #fff; stroke-width: 36px; overflow: visible; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); transition: transform .15s ease, fill .15s ease; }
.heart-btn:hover svg { transform: scale(1.12); fill: rgba(251,113,133,.55); }   /* grows and tints pink on hover */
.heart-btn.on svg { fill: #fb7185; }                                            /* saved: solid pink */
.heart-btn:focus-visible { outline: 2px solid #12b5f2; outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .heart-btn svg { transition: none; } }
.merch-img-box { position: relative; }
@media (max-width: 760px) { .mem-two { grid-template-columns: 1fr; } .mem-hero h1 { font-size: 30px; } }

/* Latest videos carousel: 3 visible on desktop, swipe on mobile */
.vid-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 12px; }
.vid-head h3 { font-size: 15px; } .vid-head a { color: #12b5f2; font-size: 12px; font-weight: 700; text-decoration: none; }
.vid-wrap { position: relative; }
.vid-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #14385c transparent; }
.vid-card { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; background: #081a2f; border: 1px solid #14385c; border-radius: 10px; overflow: hidden; text-decoration: none; color: #fff; display: block; }
.vid-card:hover { border-color: #12b5f2; }
.vid-thumb { position: relative; aspect-ratio: 16/9; background: #0a2038; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(7,26,46,.78); border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; padding-left: 3px; }
.vid-card:hover .vid-play { background: #f5a623; color: #071a2e; border-color: #f5a623; }
.vid-card .b { padding: 12px; } .vid-card h4 { font-size: 13px; line-height: 1.35; margin-bottom: 4px; } .vid-card small { color: #9db2c8; font-size: 11px; }
.vid-arrow { position: absolute; top: 38%; transform: translateY(-50%); z-index: 4; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #14385c; background: rgba(7,26,46,.92); color: #fff; font-size: 22px; cursor: pointer; padding: 0 0 3px; }
.vid-arrow:hover { border-color: #12b5f2; color: #12b5f2; } .vid-arrow.prev { left: -14px; } .vid-arrow.next { right: -14px; }
.mem-ann .item small { display: block; }
.posts { max-height: 460px; overflow-y: auto; padding-right: 4px; }
.post-form textarea { min-height: 56px; }
.mem-sec .mem-card .gate { padding: 14px 10px; }
@media (max-width: 900px) { .vid-card { flex-basis: 78%; } .vid-arrow { display: none; } }

/* signed-in people never see the sign-up hero / log-in prompts, even before the script runs */
html.signed-in #gate-hero, html.signed-in #signed-out-wish, html.signed-in #signed-out-chat { display: none !important; }
html.signed-in #member-hero { display: block !important; }
html.signed-in #wish-list, html.signed-in #chat { display: block !important; }

/* ---------- Community board: open/close header ---------- */
/* The clickable header: topic + summary on the left, Open/Close on the right. */
.comm-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.comm-head .prompt { display: block; margin-bottom: 4px; }
.comm-summary { display: block; font-size: 12px; color: #9db2c8; }
.comm-open { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #12b5f2; border: 1px solid #14385c; border-radius: 999px; padding: 6px 12px; }
.comm-head:hover .comm-open, .comm-head:focus-visible .comm-open { border-color: #12b5f2; }
.comm-head:focus-visible { outline: 2px solid #12b5f2; outline-offset: 4px; border-radius: 6px; }
.comm-open i { transition: transform .2s ease; }          /* the arrow flips when the board is open */
.comm-head.open .comm-open i { transform: rotate(180deg); }
.comm-body { margin-top: 16px; padding-top: 16px; border-top: 1px solid #14385c; }
/* "Show more" under the conversations, and "View all replies" inside a post. */
.comm-show-more { display: block; width: 100%; margin-top: 4px; padding: 10px; background: #081a2f; border: 1px dashed #14385c; border-radius: 8px; color: #12b5f2; font-size: 12px; font-weight: 800; cursor: pointer; }
.comm-show-more:hover { border-color: #12b5f2; }
.comm-more-replies { background: none; border: 0; padding: 0 0 8px; color: #12b5f2; font-size: 11px; font-weight: 700; cursor: pointer; }
.post.is-hidden { display: none; }                         /* older replies hidden until "View all" is pressed */
@media (prefers-reduced-motion: reduce) { .comm-open i { transition: none; } }
/* "Open" link on announcements that have a link filled in (Supabase -> announcements -> link). */
.mem-ann a { color: #12b5f2; font-size: 12px; font-weight: 700; text-decoration: none; display: inline-block; margin-top: 6px; }
