/*
 * dashboard.css — styles for the member dashboard (profile.html only).
 * Uses the same colors as style.css. Layout: 3 columns on desktop (profile | main | side),
 * 1 column under 980px (see the @media at the bottom). Class names match profile.html.
 */
/* Member dashboard */
/* Without this, classes like .full (display:block) override the hidden attribute, which made "Unlink Patreon" show when not linked. */
[hidden] { display: none !important; }
.dash { max-width: 1150px; margin: 40px auto; padding: 0 20px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.dash-head h1 { font-size: 30px; font-weight: 900; letter-spacing: 1px; }
.dash-ghost-btn { background: transparent; border: 1px solid #14385c; color: #fff; padding: 10px 16px; border-radius: 4px; font-size: 12px; font-weight: 700; cursor: pointer; }
.dash-ghost-btn:hover { border-color: #12b5f2; color: #12b5f2; }

/* Three columns on desktop: profile | main | side. Becomes one column under 980px (bottom of file). */
.dash-grid { display: grid; grid-template-columns: 300px 1fr 340px; gap: 20px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 20px; }

/* The glassy box used for every dashboard section. */
.dash-card { background: linear-gradient(180deg, #0d2744 0%, #0a2038 100%); border: 1px solid #14385c; border-radius: 10px; padding: 22px; text-align: left; }
.dash-card h3 { font-size: 15px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.muted { color: #9db2c8; font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.pill { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: #0d2a47; border: 1px solid #14385c; color: #9db2c8; }
.pill-live { color: #12b5f2; border-color: #12b5f2; }
.full { display: block; width: 100%; text-align: center; text-decoration: none; }

.profile-card { text-align: center; }
.profile-card h2 { font-size: 22px; margin-top: 14px; }
.profile-card .muted { margin: 4px 0 18px; word-break: break-all; }
/* Big round avatar on the profile card. */
.avatar-xl { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 46px; color: #071a2e; background: #12b5f2; box-shadow: 0 0 0 4px #0a2038, 0 0 0 6px #12b5f2; overflow: hidden; }
/* Uploaded photo fills the circle (without this it showed at full size and spilled out). */
.avatar-xl img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dash-checking { text-align: center; color: #9db2c8; padding: 80px 20px; font-size: 14px; }
.stat-list { list-style: none; text-align: left; margin-bottom: 18px; }
.stat-list li { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid #14385c; font-size: 12px; color: #9db2c8; }
.stat-list strong { color: #fff; }

.edit-panel { text-align: left; margin-top: 18px; }
.edit-panel[hidden] { display: none; }
.edit-panel label { display: block; font-size: 12px; color: #9db2c8; margin-bottom: 6px; font-weight: 700; }
/* Grid of avatar choices in the edit panel (4 per row). */
.avatar-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.avatar-opt { aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #071a2e; cursor: pointer; }
.avatar-opt:focus-visible, .avatar-opt.selected { border-color: #fff; outline: none; }
.dash-rule { border: none; border-top: 1px solid #14385c; margin: 20px 0; }

.item-list { display: flex; flex-direction: column; gap: 10px; }
/* One announcement / exclusive-content entry. */
.item { background: #081a2f; border: 1px solid #14385c; border-radius: 8px; padding: 14px; }
.item small { color: #9db2c8; font-size: 11px; }
.item h4 { font-size: 13px; margin: 4px 0; }
.item p { font-size: 12px; color: #a9bcd0; line-height: 1.5; }
.item a { color: #12b5f2; font-size: 12px; font-weight: 700; text-decoration: none; display: inline-block; margin-top: 6px; }

.empty { text-align: center; padding: 10px 0 4px; color: #9db2c8; font-size: 13px; }
.empty i { font-size: 30px; color: #14385c; margin-bottom: 10px; }
.empty p { margin-bottom: 12px; }

.link-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.link-list a { background: #081a2f; border: 1px solid #14385c; border-radius: 8px; padding: 12px; color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.link-list a:hover { border-color: #12b5f2; }
.link-list i { color: #12b5f2; }

@media (max-width: 980px) { .dash-grid { grid-template-columns: 1fr; } }

/* "Back to the Puppetverse" link above the dashboard title (profile.html). */
.dash-back { display: inline-flex; align-items: center; gap: 6px; color: #12b5f2; font-size: 13px; font-weight: 700; text-decoration: none; margin-bottom: 14px; }
.dash-back:hover { text-decoration: underline; }
/* Small note under the username box: the rules, or when it can be changed next. */
.username-hint { color: #9db2c8; font-size: 11px; line-height: 1.5; margin: -4px 0 12px; text-align: left; }
/* "New" badge on Patreon posts the member hasn't seen yet (filled by loadPatreonPosts in dashboard.js). */
.new-badge { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 1px 7px; border-radius: 10px; background: #12b5f2; color: #00131f; font-size: 10px; font-weight: 800; }
/* "LIVE" date label on announcements that have is_live ticked in Supabase. */
.item small.live { color: #ff4d6d; font-weight: 700; }
