/* Largephotos — interactive component styles.
   Design tokens are declared by the theme (:root). Fallbacks included so the
   plugin still looks right if activated without the theme. */
:root {
	--lp-bg: #fcfcfa; --lp-ink: #101012; --lp-sec: #71716b; --lp-muted: #a0a09a;
	--lp-line: rgba(16,16,18,0.07); --lp-line-2: rgba(16,16,18,0.12);
	--lp-panel: #f4f4f1; --lp-chip: #f0f0ec;
	--lp-accent: #0047ff; --lp-accent-2: #0047e0; --lp-accent-tint: rgba(0,71,224,0.06);
	--lp-green: #0a8a4a; --lp-warn: #c2410c; --lp-danger: #b91c1c;
	--lp-r-pill: 999px; --lp-r-card: 20px; --lp-r-input: 13px;
	--lp-font: 'Hanken Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	--lp-mono: 'JetBrains Mono', ui-monospace, monospace;
}

.lp-eyebrow { font-family: var(--lp-mono); text-transform: uppercase; letter-spacing: 2px; font-size: 11px; color: var(--lp-accent-2); font-weight: 500; }

/* ---- Buttons ---- */
.lp-btn { font-family: var(--lp-font); font-weight: 700; font-size: 14.5px; border-radius: var(--lp-r-pill); padding: 11px 22px; border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .15s, color .15s, transform .1s, box-shadow .15s; }
.lp-btn:active { transform: translateY(1px); }
.lp-btn-dark { background: var(--lp-ink); color: var(--lp-bg); }
.lp-btn-dark:hover { background: var(--lp-accent); color: #fff; }
.lp-btn-accent { background: var(--lp-accent); color: #fff; }
.lp-btn-accent:hover { background: var(--lp-accent-2); }
.lp-btn-ghost { background: transparent; color: var(--lp-ink); border-color: var(--lp-line-2); }
.lp-btn-ghost:hover { background: var(--lp-panel); }
.lp-btn:disabled { opacity: .45; cursor: not-allowed; }
.lp-block { width: 100%; }

/* ---- Fields ---- */
.lp-field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 7px; }
.lp-field label { font-size: 13px; font-weight: 600; color: var(--lp-sec); }
.lp-field small { color: var(--lp-muted); font-size: 12px; }
.lp-input { font-family: var(--lp-font); font-size: 15px; color: var(--lp-ink); background: #fff; border: 1px solid var(--lp-line-2); border-radius: var(--lp-r-input); padding: 12px 14px; width: 100%; }
.lp-input:focus { outline: none; border-color: var(--lp-accent); box-shadow: 0 0 0 3px var(--lp-accent-tint); }
textarea.lp-input { resize: vertical; }

/* ---- Feed ---- */
.lp-feed-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.lp-feed-controls { margin: 8px 0 24px; }
.lp-searchbar { display: flex; align-items: center; max-width: 620px; margin: 0 auto 20px; background: #fff; border: 1px solid var(--lp-line-2); border-radius: var(--lp-r-pill); padding: 4px 6px 4px 20px; box-shadow: 0 12px 40px rgba(16,16,18,0.06); }
.lp-search-ico { color: var(--lp-muted); font-size: 18px; margin-right: 10px; }
.lp-feed-search { flex: 1; border: none; background: transparent; font-size: 16px; padding: 12px 0; font-family: var(--lp-font); }
.lp-feed-search:focus { outline: none; }
.lp-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.lp-chip { font-family: var(--lp-font); font-weight: 600; font-size: 13.5px; color: var(--lp-sec); background: var(--lp-chip); border: 1px solid transparent; border-radius: var(--lp-r-pill); padding: 8px 16px; cursor: pointer; transition: all .15s; }
.lp-chip:hover { color: var(--lp-ink); }
.lp-chip.is-active { background: var(--lp-ink); color: var(--lp-bg); }

.lp-masonry { columns: 3; column-gap: 18px; }
@media (max-width: 900px) { .lp-masonry { columns: 2; } }
@media (max-width: 560px) { .lp-masonry { columns: 1; } }
.lp-card { display: block; position: relative; break-inside: avoid; margin-bottom: 18px; border-radius: var(--lp-r-card); overflow: hidden; background: var(--lp-panel); box-shadow: 0 1px 2px var(--lp-line); transition: transform .18s, box-shadow .18s; }
.lp-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(16,16,18,0.12); }
.lp-card-img { width: 100%; display: block; }
.lp-card-play { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(16,16,18,0.6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; backdrop-filter: blur(6px); }
.lp-card-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 26px 14px 12px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,0.55), transparent); opacity: 0; transition: opacity .18s; }
.lp-card:hover .lp-card-foot { opacity: 1; }
.lp-card-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.lp-card-name { font-size: 13px; font-weight: 600; flex: 1; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.lp-card-dl { font-family: var(--lp-mono); font-size: 11.5px; }
.lp-feed-more { text-align: center; padding: 20px 0 60px; }

/* ---- Upload wizard ---- */
.lp-upload { max-width: 720px; margin: 0 auto; padding: 20px; }
.lp-upload-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -1.5px; margin: 6px 0 8px; }
.lp-upload-head p { color: var(--lp-sec); margin: 0 0 22px; }
.lp-steps { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0 0 26px; }
.lp-steps li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--lp-muted); flex: 1; }
.lp-steps li span { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--lp-chip); font-size: 13px; }
.lp-steps li.is-active { color: var(--lp-ink); }
.lp-steps li.is-active span { background: var(--lp-ink); color: #fff; }
.lp-steps li.is-done span { background: var(--lp-green); color: #fff; }
.lp-dropzone { display: block; border: 2px dashed var(--lp-line-2); border-radius: var(--lp-r-card); padding: 48px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.lp-dropzone.is-over { border-color: var(--lp-accent); background: var(--lp-accent-tint); }
.lp-dropzone-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--lp-ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; margin: 0 auto 14px; }
.lp-dropzone-inner strong { display: block; font-size: 17px; margin-bottom: 4px; }
.lp-dropzone-inner span { color: var(--lp-muted); font-size: 13.5px; }
.lp-or { text-align: center; color: var(--lp-muted); font-size: 13px; margin: 18px 0; text-transform: uppercase; letter-spacing: 1px; font-family: var(--lp-mono); }
.lp-embed-row { display: flex; gap: 8px; }
.lp-embed-row .lp-input { flex: 1; }
.lp-preview { margin-top: 20px; }
.lp-prev-media { width: 100%; border-radius: var(--lp-r-card); display: block; }
.lp-prev-embed { padding: 16px; background: var(--lp-panel); border-radius: var(--lp-r-input); font-family: var(--lp-mono); font-size: 13px; word-break: break-all; }
.lp-checkbox { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--lp-panel); border-radius: var(--lp-r-input); font-size: 14px; line-height: 1.5; cursor: pointer; margin-top: 16px; }
.lp-checkbox input { margin-top: 3px; width: 18px; height: 18px; }
.lp-note { color: var(--lp-muted); font-size: 13px; margin-top: 14px; }
.lp-review-card { display: flex; flex-direction: column; gap: 14px; }
.lp-review-meta { display: flex; flex-direction: column; gap: 4px; }
.lp-review-meta strong { font-size: 18px; }
.lp-review-meta span { color: var(--lp-sec); font-size: 13.5px; }
.lp-upload-foot { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--lp-line); }
.lp-flex-spacer { flex: 1; }
.lp-upload-error { margin-top: 16px; padding: 12px 16px; background: rgba(185,28,28,.08); color: var(--lp-danger); border-radius: var(--lp-r-input); font-size: 14px; }
.lp-success { text-align: center; padding: 40px 0; }
.lp-success-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--lp-green); color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.lp-success h2 { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.lp-success-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }

/* ---- Auth ---- */
.lp-auth { max-width: 940px; margin: 0 auto; padding: 30px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
@media (max-width: 780px) { .lp-auth { grid-template-columns: 1fr; } .lp-auth-aside { display: none; } }
.lp-auth-card { background: #fff; border: 1px solid var(--lp-line); border-radius: var(--lp-r-card); padding: 30px; box-shadow: 0 12px 40px rgba(16,16,18,0.05); }
.lp-auth-tabs { display: flex; gap: 6px; background: var(--lp-chip); padding: 5px; border-radius: var(--lp-r-pill); margin-bottom: 24px; }
.lp-auth-tabs button { flex: 1; border: none; background: transparent; font-family: var(--lp-font); font-weight: 700; font-size: 14px; padding: 10px; border-radius: var(--lp-r-pill); cursor: pointer; color: var(--lp-sec); }
.lp-auth-tabs button.is-active { background: #fff; color: var(--lp-ink); box-shadow: 0 2px 8px rgba(16,16,18,.06); }
.lp-account-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.lp-account-choice label { border: 1px solid var(--lp-line-2); border-radius: var(--lp-r-input); padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.lp-account-choice label.is-active { border-color: var(--lp-accent); background: var(--lp-accent-tint); }
.lp-account-choice input { display: none; }
.lp-account-choice strong { font-size: 14px; }
.lp-account-choice span { font-size: 12px; color: var(--lp-sec); }
.lp-auth-forgot { display: block; text-align: center; margin-top: 14px; font-size: 13px; color: var(--lp-sec); }
.lp-auth-msg { margin-top: 14px; padding: 10px 14px; border-radius: var(--lp-r-input); font-size: 13.5px; }
.lp-auth-msg.err { background: rgba(185,28,28,.08); color: var(--lp-danger); }
.lp-auth-msg.ok { background: rgba(10,138,74,.1); color: var(--lp-green); }
.lp-auth-terms { text-align: center; color: var(--lp-muted); font-size: 12px; margin-top: 16px; }
.lp-auth-aside { border-radius: var(--lp-r-card); background: var(--lp-ink); color: #fff; padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; }
.lp-auth-aside blockquote { font-size: 22px; font-weight: 700; letter-spacing: -.5px; line-height: 1.3; margin: 0 0 14px; }
.lp-auth-aside cite { color: var(--lp-muted); font-style: normal; font-size: 13.5px; }

/* ---- Dashboard ---- */
.lp-dash { max-width: 1100px; margin: 0 auto; padding: 20px; }
.lp-dash-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.lp-dash-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -1px; margin: 4px 0 0; }
.lp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.lp-kpi { background: #fff; border: 1px solid var(--lp-line); border-radius: var(--lp-r-card); padding: 20px; }
.lp-kpi-n { display: block; font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.lp-kpi-l { font-family: var(--lp-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--lp-muted); }
.lp-kpi-tip { background: var(--lp-accent-tint); border-color: rgba(0,71,224,.2); }
.lp-dash-note { background: var(--lp-panel); border-radius: var(--lp-r-input); padding: 12px 16px; font-size: 14px; margin-bottom: 20px; }
.lp-dash-subhead { font-size: 18px; font-weight: 700; margin: 10px 0 16px; }
.lp-dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.lp-dash-item { border: 1px solid var(--lp-line); border-radius: var(--lp-r-card); overflow: hidden; background: #fff; }
.lp-dash-thumb { position: relative; display: block; aspect-ratio: 4/3; background: var(--lp-panel); }
.lp-dash-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lp-badge-vid { position: absolute; top: 8px; right: 8px; background: rgba(16,16,18,.65); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; z-index: 2; }
.lp-dash-meta { padding: 12px; display: flex; flex-direction: column; gap: 5px; }
.lp-dash-meta strong { font-size: 14px; }
.lp-status { font-family: var(--lp-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; padding: 3px 8px; border-radius: var(--lp-r-pill); align-self: flex-start; }
.lp-status-publish { background: rgba(10,138,74,.12); color: var(--lp-green); }
.lp-status-pending { background: rgba(194,65,12,.12); color: var(--lp-warn); }
.lp-dash-stats { font-size: 12px; color: var(--lp-muted); font-family: var(--lp-mono); }
.lp-dash-del { align-self: flex-start; background: none; border: none; color: var(--lp-danger); font-size: 12px; cursor: pointer; padding: 0; margin-top: 2px; }

/* ---- Settings ---- */
.lp-settings { max-width: 720px; margin: 0 auto; padding: 20px; }
.lp-settings h1 { font-size: 30px; font-weight: 800; letter-spacing: -1px; margin-bottom: 22px; }
.lp-settings-block { background: #fff; border: 1px solid var(--lp-line); border-radius: var(--lp-r-card); padding: 24px; margin-bottom: 18px; }
.lp-settings-block h2 { font-size: 17px; font-weight: 700; margin: 0 0 16px; }
.lp-inline-msg { margin-left: 10px; color: var(--lp-green); font-size: 13px; }
.lp-badge-ok { color: var(--lp-green); font-weight: 600; }
.lp-danger a { color: var(--lp-danger); border-color: rgba(185,28,28,.3); }

/* ---- Notifications ---- */
.lp-notes { max-width: 680px; margin: 0 auto; padding: 20px; }
.lp-notes-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.lp-notes-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.lp-notes-list { list-style: none; padding: 0; margin: 0; }
.lp-note { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--lp-r-input); position: relative; }
.lp-note.is-unread { background: var(--lp-accent-tint); }
.lp-note-dot { position: absolute; left: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--lp-accent); }
.lp-note-av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.lp-note-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.lp-note-body time { font-size: 12px; color: var(--lp-muted); }
.lp-note-thumb img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }

/* ---- Photographers ---- */
.lp-photographers { max-width: 1240px; margin: 0 auto; padding: 20px; }
.lp-section-head { text-align: center; margin-bottom: 30px; }
.lp-section-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -1.5px; margin: 6px 0 8px; }
.lp-section-head p { color: var(--lp-sec); }
.lp-photographer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.lp-photographer-card { border: 1px solid var(--lp-line); border-radius: var(--lp-r-card); overflow: hidden; background: #fff; }
.lp-photographer-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; height: 110px; }
.lp-photographer-strip img { width: 100%; height: 100%; object-fit: cover; }
.lp-photographer-body { padding: 0 18px 18px; text-align: center; margin-top: -26px; }
.lp-photographer-body .lp-avatar { width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; }
.lp-photographer-name { display: block; font-weight: 700; font-size: 16px; margin: 8px 0; }
.lp-photographer-stats { display: flex; justify-content: center; gap: 14px; font-size: 12px; color: var(--lp-sec); margin-bottom: 12px; }
.lp-photographer-stats strong { display: block; color: var(--lp-ink); font-size: 15px; }

/* ---- Gates / empty ---- */
.lp-gate, .lp-empty { text-align: center; max-width: 520px; margin: 40px auto; padding: 40px 20px; }
.lp-gate h1 { font-size: 26px; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; }
.lp-gate p { color: var(--lp-sec); margin-bottom: 20px; }
.lp-gate-actions { display: flex; gap: 10px; justify-content: center; }

/* ---- Toast + spinner ---- */
.lp-toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--lp-ink); color: #fff; padding: 12px 20px; border-radius: var(--lp-r-pill); font-size: 14px; font-weight: 600; opacity: 0; transition: opacity .25s, transform .25s; z-index: 9999; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.lp-toast.show { opacity: 1; transform: translate(-50%, 0); }
.lp-toast.error { background: var(--lp-danger); }
.lp-spinner { width: 26px; height: 26px; border: 3px solid var(--lp-line-2); border-top-color: var(--lp-accent); border-radius: 50%; margin: 10px auto; animation: lp-spin .7s linear infinite; }
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* ---- Video ---- */
.lp-video, .lp-video-embed iframe { width: 100%; border-radius: var(--lp-r-card); display: block; aspect-ratio: 16/9; border: 0; }
.lp-video-embed { position: relative; }
