/*
 * PianoSecrets Members — pieces that appear inside normal theme pages
 * (locked box on protected pages, download buttons, audio, video, view-as banner).
 * The members area itself uses assets/members.css (the approved "Studio" design);
 * these styles reuse its colors so everything matches.
 */
:root {
	--psm-s-ink:       var(--wp--preset--color--ink, #15171C);
	--psm-s-gold:      var(--wp--preset--color--gold, #FEB703);
	--psm-s-gold-soft: var(--wp--preset--color--gold-soft, #FFF7E3);
	--psm-s-surface:   var(--wp--preset--color--surface, #F6F7F9);
	--psm-s-border:    var(--wp--preset--color--border, #E6E8EE);
	--psm-s-muted:     var(--wp--preset--color--text-muted, #4B5160);
	--psm-s-white:     var(--wp--preset--color--white, #FFFFFF);
}

/* Buttons used on theme pages */
.psm-site-btn, a.psm-site-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 22px; margin: 4px 8px 4px 0;
	border-radius: 999px; border: 0; background: var(--psm-s-gold); color: var(--psm-s-ink) !important;
	font: inherit; font-size: 16px; font-weight: 700; text-decoration: none !important; cursor: pointer;
}
.psm-site-btn--outline, a.psm-site-btn--outline { background: transparent; border: 1.5px solid var(--psm-s-ink); font-weight: 600; }
.psm-site-btn:hover { filter: brightness(0.96); }

/* Locked box on protected theme pages */
.psm-lockbox { text-align: center; background: var(--psm-s-surface); border: 1px solid var(--psm-s-border); border-radius: 18px; padding: 32px 24px; margin: 24px 0; font-size: 17px; line-height: 1.5; }
.psm-lockbox .psm-lock-icon { width: 36px; height: 36px; color: var(--psm-s-ink); }
.psm-lockbox__title { margin: 10px 0 6px; }
.psm-lockbox__text { color: var(--psm-s-muted); margin: 0 0 18px; }
.psm-lockbox--after-teaser { margin-top: 0; }
.psm-teaser { position: relative; max-height: 22em; overflow: hidden; }
.psm-teaser::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6em; background: linear-gradient(rgba(255,255,255,0), #fff); }
.psm-inline-locked { display: flex; gap: 10px; align-items: center; background: var(--psm-s-surface); border: 1px dashed var(--psm-s-border); border-radius: 12px; padding: 12px 16px; margin: 16px 0; font-size: 16px; }
.psm-inline-locked .psm-lock-icon { width: 22px; height: 22px; flex: none; }

/* Downloads, audio and video shortcodes */
.psm-download { display: flex; align-items: center; gap: 12px; border: 1px solid var(--psm-s-border); border-radius: 14px; padding: 14px 18px; margin: 12px 0; text-decoration: none !important; background: var(--psm-s-white); color: var(--psm-s-ink) !important; font-size: 16px; }
.psm-download:hover { border-color: var(--psm-s-ink); }
.psm-download__icon { flex: none; padding: 5px 9px; border-radius: 6px; background: var(--psm-s-ink); color: var(--psm-s-white); font-size: 13px; font-weight: 700; }
.psm-download__label { font-weight: 600; flex: 1; }
.psm-download__meta { color: var(--psm-s-muted); font-size: 14px; }
.psm-audio { margin: 16px 0; }
.psm-audio figcaption { font-weight: 600; margin-bottom: 6px; }
.psm-audio audio { width: 100%; }
.psm-video { position: relative; padding-top: 56.25%; margin: 16px 0; border-radius: 14px; overflow: hidden; background: #000; }
.psm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Admin "view as member" banner */
.psm-viewas-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999; background: var(--psm-s-ink); color: #fff; text-align: center; padding: 12px 16px; font-size: 16px; }
.psm-viewas-banner a { color: var(--psm-s-gold); font-weight: 700; }

/* ---- Small additions to the members area design ---- */
.psm-body { margin: 0; background: var(--psm-s-surface); }
/* Genre chips on the dashboard are links to filtered song lists. */
.psm a.psm-chip { display: inline-block; text-decoration: none; color: var(--psm-s-ink); }
.psm a.psm-chip[aria-current] { background: var(--psm-s-gold); border-color: var(--psm-s-gold); }
/* Membership statuses the mockup didn't show. */
.psm-status--warn  { background: #FDECEC; color: #8A1C1C; }
.psm-status--ended { background: var(--psm-s-surface); color: var(--psm-s-muted); }
/* "Current password" on the profile form only appears once the email is changed (when JS is on). */
.psm-js [data-psm-email-confirm][hidden] { display: none; }
