/* style-r6-profile.css - the Instagram-style person page (Kuma 2026-11-05): gear LEFT, X RIGHT, 5 pictures strip, feed with comments. Delete this file + its <link> + js/08d to go back. */
.profile-gear { position: sticky; top: 8px; align-self: flex-start; z-index: 5; width: 40px; height: 40px; margin-bottom: -40px; padding: 0; border: 0; border-radius: 50%; background: rgba(60, 60, 64, .92); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.profile-gear .ico { width: 21px; height: 21px; } .profile-gear.hidden { display: none; }
#profile-page { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
#profile-page .bio, #profile-bio-line { text-align: center; color: #D1D1D6; overflow-wrap: anywhere; } #profile-bio-line:empty { display: none; }
#profile-action { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; } #profile-action button { flex: 1 1 120px; max-width: 220px; }
.pp-vis { width: 100%; text-align: left; border-radius: 14px; padding: 10px 14px; font-size: 14px; line-height: 1.3; display: flex; flex-direction: column; gap: 2px; background: #1C1C1E; border: 1px solid #38383C; color: #fff; }
.pp-vis.open { background: #10301D; border-color: #1E7A42; } .pp-vis small { color: #8E8E93; font-size: 11.5px; }
#profile-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
#profile-strip:empty { display: none; }
.pp-th { position: relative; aspect-ratio: 1; padding: 0; border: 1px solid #2C2C2E; border-radius: 12px; overflow: hidden; background: #1C1C1E; color: #8E8E93; display: flex; align-items: center; justify-content: center; }
.pp-th img { width: 100%; height: 100%; object-fit: cover; display: block; } .pp-th.empty span { font-size: 24px; } .pp-th.empty.auto small { font-size: 8.5px; line-height: 1.1; padding: 0 3px; text-align: center; display: block; }
.pp-th.empty.auto { flex-direction: column; gap: 2px; }
.pp-tag { position: absolute; left: 3px; bottom: 3px; font-size: 9px; padding: 1px 5px; border-radius: 8px; background: rgba(0, 0, 0, .65); color: #fff; } .pp-edit { position: absolute; right: 3px; top: 3px; font-size: 12px; background: rgba(0, 0, 0, .6); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
#profile-feed { display: flex; flex-direction: column; gap: 14px; }
.pp-locked { text-align: center; padding: 30px 14px; border: 1px dashed #38383C; border-radius: 16px; font-size: 30px; display: flex; flex-direction: column; gap: 6px; } .pp-locked b { font-size: 16px; } .pp-locked span { font-size: 13px; color: #8E8E93; }
#profile-settings { display: flex; flex-direction: column; gap: 10px; } #profile-settings.hidden { display: none; }
#profile-settings::before { content: "Settings"; font-size: 18px; font-weight: 800; text-align: center; margin: 2px 0 4px; }
#profile-page.hidden { display: none; }

/* selfie reward */
.selfie-btn { width: 100%; min-height: 48px; border-radius: 16px; font-weight: 700; margin: 4px 0 8px; background: linear-gradient(180deg, #FFC86B, #F59E0B); color: #2b1800; border: 0; box-shadow: 0 3px 10px rgba(245,158,11,.35); }
.selfie-btn.pending { background: #2C2C2E; color: #FFB547; box-shadow: none; } .selfie-btn.approved { background: #10301D; color: #4ADE80; box-shadow: none; }
.selfie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 8px 0; }
.selfie-card { background: #1C1C1E; border: 1px solid #2C2C2E; border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 6px; } .selfie-card img { width: 100%; max-height: 340px; object-fit: cover; border-radius: 10px; }

/* the pop-up sheet (take a photo / choose, pay, etc.) must sit ABOVE the profile page (Kuma 2026-11-07: it opened underneath) */
#bar-sheet { z-index: 30; }

/* Guess Who hints */
.gw-hints { text-align: left; margin-top: 10px; } .gw-hint-list { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 6px; }
.gw-hint-list li { background: #1C1C1E; border: 1px solid #2C2C2E; border-radius: 12px; padding: 8px 12px; font-size: 15px; overflow-wrap: anywhere; } .gw-hint-list li span { color: #FFB547; font-weight: 800; font-size: 12px; margin-right: 6px; }
.gw-hint-list li.new { border-color: #FFB547; animation: hintPop .4s ease-out; } @keyframes hintPop { from { transform: scale(.94); opacity: 0; } }

.pf-prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 10px 6px; } .pf-prices label { font-size: 11px; color: #A1A1A6; display: flex; flex-direction: column; gap: 2px; } .pf-prices input { width: 100%; min-width: 0; padding: 6px 4px; font-size: 14px; text-align: center; }

/* avatar colour swatches (Settings) */
#av-color-row { margin: 2px 0 6px; } .av-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.av-sw { width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 50%; border: 2px solid #121212; box-shadow: 0 0 0 1px rgba(255,255,255,.2); } .av-sw.on { box-shadow: 0 0 0 3px #fff; }

/* ONE "Save everything" button on the Settings page (top and bottom); the old per-section Save buttons are hidden */
#btn-bs-profile, #btn-bs-save, #btn-bs-hours, #btn-bs-pp-save, #cc-save, #sf-save { display: none !important; }
.bs-savebar { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; } .bs-savebar.bottom { margin: 16px 0 6px; } .bs-savebar button { min-height: 50px; }
.bs-save-msg { text-align: center; min-height: 18px; }

/* special chats: a bar GROUP's chat (its colour) and a PLACE's chat (the bar's colour) look different from a normal chat */
#chat-list li.group-chat, #chat-list li.place-chat { border-left: 5px solid var(--gc); background: color-mix(in srgb, var(--gc) 16%, #1C1C1E); border-radius: 14px; }
#chat-list li.group-chat .chat-row-title::after, #chat-list li.place-chat .chat-row-title::after { content: " \00B7 group"; color: var(--gc); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
#chat-list li.place-chat .chat-row-title::after { content: " \00B7 place"; }
.grp-codes { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-direction: column; gap: 6px; } .grp-code { display: flex; align-items: center; gap: 8px; background: #1C1C1E; border-radius: 12px; padding: 8px 10px; }
.grp-code i { width: 14px; height: 14px; border-radius: 50%; flex: none; } .grp-code b { flex: 0 1 auto; } .grp-code small { flex: 1; color: #8E8E93; font-size: 12px; }
