/* Posts and the Create sheet. Built from the existing reel, sheet and card styles; only the new pieces live here. */

/* A thought: the words are the picture */
.post-text .post-thought{position:absolute;inset:0;display:grid;place-items:center;padding:90px 92px 150px 28px;background:radial-gradient(ellipse at 20% 10%,#3b3424 0%,#1d1b16 55%,#121110 100%)}
.post-text .post-thought::before{content:"“";position:absolute;top:70px;left:22px;font-size:7rem;line-height:1;color:var(--blue);opacity:.55;font-family:Georgia,serif}
.post-thought p{margin:0;max-width:30ch;color:#fff;font-size:clamp(1.25rem,5.2vw,1.85rem);font-weight:700;line-height:1.3;letter-spacing:-.02em;white-space:pre-line;overflow-wrap:anywhere}
.post-slide .reel-tap{z-index:1}
.post-slide .post-info{display:grid;gap:4px;color:#fff;z-index:2}
.post-info a{color:inherit;text-decoration:none}
.post-info h2{margin:4px 0}
.post-info .bio{margin:2px 0 4px}
.post-profile-link{justify-self:start;padding:6px 12px;border-radius:20px;background:#0006;color:var(--blue)!important;font-size:.8rem;font-weight:600}
.post-status{display:inline-block;padding:5px 10px;border-radius:20px;background:#f4c945;color:#241f0f;font-size:.65rem;font-weight:700}
.post-status.rejected,.post-status.removed{background:#e5484d;color:#fff}
.post-photo .slide-media{object-fit:cover}

/* Create sheet: one door, everything behind it */
.create-sheet{animation:create-rise .22s cubic-bezier(.2,.8,.2,1)}
.create-sheet::backdrop{background:#000b;animation:create-dim .2s ease}
.create-options{gap:10px}
.create-item{text-decoration:none;min-height:64px;transition:transform .12s,border-color .12s}
.create-item:active{transform:scale(.98)}
.create-item:not(.soon){border-color:var(--blue)}
.create-item strong{display:block}.create-item small{color:var(--muted)}
.create-item .connect-icon{width:44px;height:44px;border-radius:14px;font-size:1.3rem}
.create-post{background:linear-gradient(135deg,#ffd84d,#ffb020)!important}
.create-item.soon{opacity:.62}
.soon-chip{margin-left:auto;padding:3px 8px;border-radius:12px;background:var(--surface);color:var(--muted);font-size:.68rem;font-weight:600}
@keyframes create-rise{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
@keyframes create-dim{from{opacity:0}}
@media(prefers-reduced-motion:reduce){.create-sheet,.create-sheet::backdrop{animation:none}}

/* Single post page */
.post-single-page .main{padding:0}
.post-single-page .main>.legal-footer{display:none}
/* Between the fixed header (62px phone / 80px desktop) and the bottom nav (66px phone) */
.post-single.reels-feed{position:relative;max-height:none;max-width:520px;overflow:hidden;margin:70px auto 0;height:calc(100dvh - 70px - 74px - env(safe-area-inset-bottom));border-radius:18px}
.post-single .post-slide{height:100%}
@media(min-width:701px){.post-single.reels-feed{margin-top:92px;height:calc(100dvh - 108px);border-radius:14px}}

/* My posts / Saved grid, following and followers */
.community-page{max-width:720px;margin:0 auto;padding:24px 16px 110px}
.community-page h1{margin:0 0 6px}
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:16px 0}
.post-tile{position:relative;aspect-ratio:3/4;overflow:hidden;border-radius:10px;background:var(--surface2);color:var(--text);text-decoration:none}
.post-tile img,.post-tile video{width:100%;height:100%;object-fit:cover;display:block}
.post-tile p{margin:0;padding:12px;font-size:.85rem;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
.post-tile.post-text{background:radial-gradient(ellipse at 20% 10%,#3b3424,#1d1b16);color:#fff}
.post-tile .post-status{position:absolute;top:6px;left:6px}
.tile-badge{position:absolute;top:6px;right:8px;color:#fff;text-shadow:0 1px 4px #0008}
.tile-likes{position:absolute;bottom:6px;left:8px;color:#fff;font-size:.75rem;font-weight:600;text-shadow:0 1px 4px #0009}
.community-tabs{display:flex;gap:8px;margin:12px 0}
.community-tabs a{padding:8px 14px;border-radius:20px;background:var(--surface2);color:var(--text);text-decoration:none;font-size:.85rem;font-weight:600}
.community-tabs a.selected{background:var(--blue);color:#241f0f}
.people-list{list-style:none;margin:16px 0;padding:0;display:grid;gap:8px}
.people-list a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:16px;background:var(--surface);border:1px solid var(--line);color:var(--text);text-decoration:none}
.people-list img{width:48px;height:48px;border-radius:50%;object-fit:cover}
.people-list small{display:block;color:var(--muted)}
.empty-note{padding:32px 16px;text-align:center;color:var(--muted)}
.empty-note .button{margin-top:14px}

.post-report-form{display:grid;gap:12px}
.danger-option strong{color:#e5484d}

/* Inbox unread dot (bottom bar and sidebar) */
.has-unread-dot{position:relative}
.unread-dot{position:absolute;top:2px;left:calc(50% + 6px);min-width:16px;height:16px;padding:0 4px;border-radius:9px;background:#e5484d;color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center;box-shadow:0 0 0 2px var(--bg)}
.sidebar .unread-dot{position:static;margin-left:auto;order:2}
.unread-dot[hidden]{display:none}

/* "Turn on notifications?" after login */
.notify-sheet{text-align:center}
.notify-bell{font-size:2.4rem;line-height:1;margin:4px 0 8px;animation:notify-ring 1.2s ease 0.3s 2}
.notify-sheet h2{margin:0 0 6px}
.notify-actions{display:grid;gap:6px;margin-top:14px}
.ios-steps{margin:12px auto 4px;padding:0 0 0 22px;max-width:300px;text-align:left;display:grid;gap:8px;line-height:1.4}
.ios-steps li::marker{font-weight:700;color:var(--accent,#e0ad1b)}
@keyframes notify-ring{0%,100%{transform:rotate(0)}20%{transform:rotate(-16deg)}40%{transform:rotate(14deg)}60%{transform:rotate(-8deg)}80%{transform:rotate(5deg)}}
@media(prefers-reduced-motion:reduce){.notify-bell{animation:none}}

/* Connection requests */
.request-list{list-style:none;margin:16px 0;padding:0;display:grid;gap:10px}
.request-card{padding:14px;border-radius:18px;background:var(--surface);border:1px solid var(--line)}
.request-card.sent{display:flex;align-items:center;gap:10px}
.request-card.sent .request-who{flex:1}
.request-who{display:flex;align-items:center;gap:12px;color:var(--text);text-decoration:none}
.request-who img{width:52px;height:52px;border-radius:50%;object-fit:cover;flex:none}
.request-who small{display:block;color:var(--muted)}
.request-note{margin:10px 0 0;padding:10px 12px;border-radius:14px;background:var(--surface2);font-size:.95rem}
.request-expiry{margin:8px 0 0;color:var(--muted);font-size:.78rem}.request-shares{margin:8px 0 0;font-size:.82rem;font-weight:600}
.updates-tools{display:flex;gap:18px;align-items:center}.updates-tools form{margin:0}.updates-clear{color:var(--text);font-weight:600}
.notification-row{display:flex;align-items:center;border-bottom:1px solid var(--line)}.notification-row.unread{background:var(--surface)}
.notification-row .notification{flex:1;min-width:0;border-bottom:0;background:none}.notification-row form{margin:0}
.notification-delete{display:grid;place-items:center;width:44px;height:44px;margin-right:4px;border:0;border-radius:50%;background:none;color:var(--muted);font-size:1.4rem;line-height:1}
.notification-delete:hover{background:var(--surface2);color:var(--text)}
.request-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.request-actions form,.request-actions .button{margin:0;width:100%}
.requests-sent-title{margin-top:24px;font-size:1.05rem}
.requests-banner{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:12px 14px;border-radius:16px;background:#f4c94526;color:var(--text);text-decoration:none;font-weight:600}
.requests-banner .count{margin-left:auto;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#e5484d;color:#fff;font-size:12px;line-height:22px;text-align:center}

/* Blur faces (Create → review) */
.blur-bar{position:absolute;left:68px;right:12px;top:calc(18px + env(safe-area-inset-top));display:flex;align-items:center;gap:8px;z-index:4;pointer-events:none}
.blur-bar>*{pointer-events:auto}
.blur-bar button{border:0;border-radius:18px;padding:8px 14px;font:inherit;font-size:13px;font-weight:600;background:#000a;color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.blur-bar .blur-start{background:#f4c945;color:#241f0f}
.blur-hint{flex:1;color:#fff;font-size:12px;text-shadow:0 1px 4px #000a}
.blur-layer{position:absolute;inset:0;z-index:3;cursor:crosshair}
.blur-region{position:absolute;border:2px dashed #f4c945;border-radius:50%;background:transparent;cursor:pointer;padding:0}
.blur-region.on{border:2px solid #fff8;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#ffffff14}

/* Shown only when the browser blocked a message sound; one tap turns sounds on for this visit. */
.sound-pill{position:fixed;top:calc(12px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:60;border:0;border-radius:999px;padding:10px 18px;background:#f4c945;color:#1a1408;font:600 15px/1.2 inherit;box-shadow:0 8px 24px rgba(0,0,0,.25);cursor:pointer;max-width:calc(100vw - 32px);animation:sound-pill-in .25s ease-out}
@keyframes sound-pill-in{from{opacity:0;transform:translate(-50%,-8px)}}
/* "It's a match" pop-up: their photo above the heart when we know it. */
.match-photo{display:block;width:96px;height:96px;margin:4px auto 0;border-radius:50%;object-fit:cover;border:3px solid #f4c945}
.match-photo+.match-heart{font-size:2.4rem;margin-top:-18px;color:#e0ad1b}

/* Photos show whole, never cropped or zoomed: the photo fits inside the card, over a soft blurred copy of itself
   that fills the spare space. (Videos still fill the card; phone videos are already the card's shape.) */
.reel-slide img.slide-media{object-fit:contain;background:transparent}
.reel-slide .slide-backdrop{position:absolute;inset:0;z-index:-3;width:100%;height:100%;object-fit:cover;filter:blur(28px) brightness(.55) saturate(1.15);transform:scale(1.15);pointer-events:none}
