/*
Theme Name: OCFancy Modern Gecko
Theme URI: https://ocfancy.com/
Description: Staging-first modern interface for OCFancy, built as a Gecko child theme so PeepSo workflows remain native.
Author: OCFancy
Template: peepso-theme-gecko
Version: 0.1.5
Text Domain: ocf-modern-gecko
*/

:root {
  --ocf-ink: #1d2433;
  --ocf-muted: #73798b;
  --ocf-line: #e7e7ed;
  --ocf-paper: #fff;
  --ocf-canvas: #f6f6f8;
  --ocf-coral: #ff6259;
  --ocf-violet: #7256e8;
  --ocf-shadow: 0 10px 32px rgba(32, 37, 52, .08);
  --ocf-radius: 18px;
}

html { background: var(--ocf-canvas); }
body.ocf-modern { margin: 0; padding-top: 0 !important; background: var(--ocf-canvas); color: var(--ocf-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.ocf-modern *, body.ocf-modern *::before, body.ocf-modern *::after { box-sizing: border-box; }
body.ocf-modern a { color: inherit; text-decoration: none; }
.ocf-skip { position: fixed; z-index: 9999; top: -60px; left: 12px; padding: 10px 14px; border-radius: 9px; background: var(--ocf-ink); color: #fff; }
.ocf-skip:focus { top: 12px; }
.ocf-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.ocf-topbar { position: sticky; z-index: 100; top: 0; height: 68px; display: grid; grid-template-columns: 240px minmax(360px, 900px) 320px; justify-content: center; align-items: center; gap: 28px; padding: 0 28px; border-bottom: 1px solid var(--ocf-line); background: rgba(255,255,255,.93); backdrop-filter: blur(18px); }
.admin-bar .ocf-topbar { top: 32px; }
.ocf-brand { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 850; letter-spacing: -.5px; }
.ocf-brand img { width: 30px; height: 42px; object-fit: contain; }
.ocf-brand b { color: var(--ocf-coral); }
.ocf-brand small { display: block; margin-top: 3px; color: #8c919f; font-size: 7px; letter-spacing: .12em; text-transform: uppercase; }
.ocf-search { height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid transparent; border-radius: 12px; background: #f3f3f6; color: #969aaa; }
.ocf-search:focus-within { border-color: #b9acef; background: #fff; box-shadow: 0 0 0 3px rgba(114,86,232,.08); }
.ocf-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ocf-ink); font: inherit; font-size: 13px; }
.ocf-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.ocf-icon, .ocf-avatar-link { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 11px; background: #f3f3f6; color: var(--ocf-ink); font: inherit; cursor: pointer; }
.ocf-avatar-link { background: linear-gradient(145deg,#29364f,#60749b); color: #fff; font-size: 11px; font-weight: 800; }
.ocf-layout { width: min(1540px, 100%); min-height: calc(100vh - 68px); display: grid; grid-template-columns: 240px minmax(0, 900px) 320px; gap: 24px; margin: 0 auto; padding: 24px 28px 64px; }
.ocf-sidebar { position: sticky; top: 92px; height: calc(100vh - 116px); display: flex; flex-direction: column; }
.admin-bar .ocf-sidebar { top: 124px; }
.ocf-nav { display: grid; gap: 5px; }
.ocf-nav a { min-height: 43px; display: flex; align-items: center; gap: 13px; padding: 0 13px; border-radius: 11px; color: #606779; font-size: 14px; font-weight: 650; }
.ocf-nav a:hover, .ocf-nav a[aria-current="page"] { background: var(--ocf-paper); color: var(--ocf-violet); box-shadow: 0 2px 12px rgba(36,41,59,.04); }
.ocf-nav i { width: 20px; text-align: center; font-style: normal; font-size: 18px; }
.ocf-create { margin-top: 24px; min-height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--ocf-ink); color: #fff; font-size: 13px; font-weight: 750; box-shadow: 0 8px 20px rgba(29,36,51,.11); }
.ocf-side-meta { margin-top: auto; padding: 18px 8px 0; color: #969baa; font-size: 10px; line-height: 1.8; }
.ocf-main { min-width: 0; }
.ocf-rightbar { display: grid; align-content: start; gap: 16px; }
.ocf-card { border: 1px solid var(--ocf-line); border-radius: var(--ocf-radius); background: var(--ocf-paper); box-shadow: var(--ocf-shadow); }
.ocf-prompt { position: relative; overflow: hidden; padding: 20px; border: 0; background: linear-gradient(150deg,#282640,#3e315c); color: #fff; }
.ocf-prompt::after { content: ""; position: absolute; width: 130px; height: 130px; top: -60px; right: -45px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.03),0 0 0 48px rgba(255,255,255,.02); }
.ocf-eyebrow { margin: 0 0 7px; color: var(--ocf-coral); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ocf-prompt .ocf-eyebrow { color: #e6b468; }
.ocf-prompt h2 { max-width: 230px; margin: 5px 0 8px; color: #fff !important; font: 20px/1.25 Georgia, serif; }
.ocf-prompt p:last-of-type { color: #c9c5d6; font-size: 11px; line-height: 1.55; }
.ocf-prompt a { min-height: 37px; display: grid; place-items: center; margin-top: 16px; border-radius: 10px; background: #f5f0e8; color: #25243a !important; font-size: 11px; font-weight: 800; opacity: 1 !important; }
.ocf-side-card { padding: 17px; }
.ocf-side-card h2 { margin: 0 0 12px; font-size: 13px; }
.ocf-quicklinks { display: grid; gap: 6px; }
.ocf-quicklinks a { display: flex; justify-content: space-between; padding: 9px 3px; border-top: 1px solid #f0f0f3; color: var(--ocf-muted); font-size: 11px; }
.ocf-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 20px; }
.ocf-heading h1 { margin: 0; font-size: clamp(24px,4vw,30px); line-height: 1.08; letter-spacing: -.8px; }
.ocf-heading p:last-child { margin: 6px 0 0; color: var(--ocf-muted); font-size: 12px; }
.ocf-feed-card { padding: 14px; }
.ocf-feed-card .ps-posts, .ocf-feed-card .ps-stream, .ocf-feed-card .ps-post { margin-left: 0; margin-right: 0; }
.ocf-content-card { padding: clamp(16px,3vw,28px); }
.ocf-content-card > :first-child { margin-top: 0; }
.ocf-peepso-page { min-width: 0; }
.ocf-peepso-page .ps-page, .ocf-peepso-page .ps-focus, .ocf-peepso-page .ps-post, .ocf-peepso-page .ps-widget { border-color: var(--ocf-line); border-radius: 16px; box-shadow: var(--ocf-shadow); }
.ocf-peepso-page .ps-focus__cover { border-radius: 16px 16px 0 0; overflow: hidden; }
.ocf-peepso-page .ps-btn { border-radius: 10px; }
.ocf-mobile-nav { display: none; }
.ocf-footer { padding: 22px 12px 90px; color: var(--ocf-muted); text-align: center; font-size: 10px; }

body.ocf-dark { --ocf-ink:#edf0f8; --ocf-muted:#9ca3b8; --ocf-line:#323747; --ocf-paper:#202432; --ocf-canvas:#151821; background:#151821; color:#edf0f8; }
.ocf-dark .ocf-topbar { background: rgba(25,28,38,.94); }
.ocf-dark .ocf-search, .ocf-dark .ocf-icon { background:#292e3d; }
.ocf-dark .ocf-search input { color:#edf0f8; }
.ocf-dark .ocf-brand img { filter: invert(1); }

@media (max-width: 1240px) {
  .ocf-topbar { grid-template-columns: 190px minmax(260px,760px) 90px; }
  .ocf-layout { grid-template-columns: 190px minmax(0,820px); max-width: 1080px; }
  .ocf-rightbar { display: none; }
}
@media (max-width: 782px) { .admin-bar .ocf-topbar { top: 46px; } }
@media (max-width: 760px) {
  .ocf-topbar { height: 60px; grid-template-columns: auto 1fr auto; gap: 10px; padding: 0 14px; }
  .ocf-brand span { display: none; }
  .ocf-search { min-width: 0; }
  .ocf-layout { display: block; min-height: calc(100vh - 60px); padding: 18px 12px 88px; }
  .ocf-sidebar { display: none; }
  .ocf-mobile-nav { position: fixed; z-index: 120; left: 0; right: 0; bottom: 0; height: 69px; display: flex; justify-content: space-around; align-items: center; padding-bottom: 7px; border-top: 1px solid var(--ocf-line); background: var(--ocf-paper); }
  .ocf-mobile-nav a { display: grid; place-items: center; gap: 2px; color: var(--ocf-muted); font-size: 8px; }
  .ocf-mobile-nav i { font-style: normal; font-size: 20px; }
  .ocf-mobile-nav a[aria-current="page"] { color: var(--ocf-violet); }
}


/* Explore and evergreen resources */
.ocf-resource-lead { max-width: 760px; margin: 0 0 26px; color: var(--ocf-muted); font-size: clamp(16px,2vw,20px); line-height: 1.65; }
.ocf-resource-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 24px 0; }
.ocf-resource-grid a { min-height: 138px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 20px; border: 1px solid var(--ocf-line); border-radius: 16px; background: linear-gradient(145deg,var(--ocf-paper),color-mix(in srgb,var(--ocf-violet) 5%,var(--ocf-paper))); transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.ocf-resource-grid a:hover { transform: translateY(-2px); border-color: color-mix(in srgb,var(--ocf-violet) 45%,var(--ocf-line)); box-shadow: var(--ocf-shadow); }
.ocf-resource-grid b { font-size: 17px; }
.ocf-resource-grid span { color: var(--ocf-muted); font-size: 12px; line-height: 1.55; }
.ocf-prompt-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 22px 0; padding: 0; list-style: none; }
.ocf-prompt-list li { padding: 13px 15px; border: 1px solid var(--ocf-line); border-radius: 12px; background: var(--ocf-paper); }
.ocf-steps { display: grid; gap: 12px; padding-left: 22px; }
.ocf-steps li { padding: 15px 18px; border-left: 3px solid var(--ocf-violet); background: color-mix(in srgb,var(--ocf-violet) 5%,var(--ocf-paper)); }
.ocf-steps b,.ocf-steps span { display: block; }
.ocf-steps span { margin-top: 4px; color: var(--ocf-muted); }
.ocf-sheet { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.ocf-sheet section { padding: 18px; border: 1px solid var(--ocf-line); border-radius: 15px; background: var(--ocf-paper); }
.ocf-sheet h2 { margin-top: 0; font-size: 17px; }
.ocf-tool { padding: clamp(22px,4vw,38px); margin-bottom: 28px; border-radius: 20px; background: linear-gradient(145deg,#282640,#473568); color: #fff; }
.ocf-tool h2 { margin: 4px 0 8px; color: #fff; font-size: clamp(24px,4vw,36px); }
.ocf-tool p { color: #d3cee1; }
.ocf-tool output { min-height: 70px; display: grid; place-items: center; margin: 22px 0 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.07); color: #fff; font: 700 clamp(22px,4vw,32px)/1.2 Georgia,serif; }
.ocf-tool button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 11px; background: #f5f0e8; color: #25243a; font-weight: 800; cursor: pointer; }
.ocf-resource-kicker { margin: 0; color: #e6b468 !important; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ocf-faq { display: grid; gap: 10px; }
.ocf-faq details { padding: 15px 17px; border: 1px solid var(--ocf-line); border-radius: 13px; background: var(--ocf-paper); }
.ocf-faq summary { cursor: pointer; font-weight: 750; }
.ocf-faq p { margin-bottom: 0; color: var(--ocf-muted); }
@media (max-width:760px) { .ocf-resource-grid,.ocf-prompt-list,.ocf-sheet { grid-template-columns: 1fr; } .ocf-resource-grid a { min-height: 110px; } }
