/**
 * @file        sg-public.css
 * @description Styles of the profile and privacy pages after the Stitch mockups: profile head with actions, follow band, private notice, trip head split, view as, edit profile, trip settings and privacy sections (P-02, P-03, P-05, T-13, T-15, T-16, C-05, C-06)
 *
 * @author      Thomas Dobler - SYNTHETIXMIND LTD
 * @company     SYNTHETIXMIND LTD, Paphos, Cyprus
 * @url         https://synthetixmind.com
 *
 * @uid         72dfa45c-2ca4-41b1-90e6-001634b3055d
 * @version     0.0.0.1
 * @created     2026-12-02
 * @updated     2026-12-02
 *
 * @copyright   (c) 2026 by SYNTHETIXMIND LTD
 * @license     Proprietary — All rights reserved
 */

/* P-02 head: identity grows, actions wrap below on phones and sit right from 900 px. */
.sg-public-identity { flex: 1 1 260px; min-width: 0; }
.sg-public-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sg-public-actions .sg-actions { margin: 0; }
.sg-public-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 480px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); gap: 12px; }
.sg-public-figures .sg-stat { padding: 0; border: 0; background: none; }
.sg-public-figures .sg-stat__value { font-family: var(--font-mono); }
@media (min-width: 900px) { .sg-public-actions { margin-left: auto; justify-content: flex-end; } }
.sg-public-following .sg-menu__body, .sg-public-actions .sg-menu__body { right: 0; left: auto; }
.sg-public-dates { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.sg-public-badge { vertical-align: middle; margin-left: 6px; font-family: var(--font-mono); }
/* Studio's centred head (sg-studio.css): the actions and figures centre too. */
.sg-studio-head--center .sg-public-actions { margin-left: 0; justify-content: center; }
.sg-studio-head--center .sg-public-figures { margin-left: auto; margin-right: auto; }

/* P-02 private notice. */
.sg-public-private { display: flex; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.sg-public-private p { margin: 0; }
.sg-public-private__icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--bg); }

/* C-06 follow prompt: icon, text, buttons; one row from 760 px. */
.sg-public-prompt { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.sg-public-prompt__icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface); }
.sg-public-prompt__text { flex: 1 1 220px; min-width: 0; }
.sg-public-prompt__text p { margin: 0; }
.sg-public-prompt .sg-actions { margin: 0; }

/* P-03 head: cover and text side by side from 1000 px. */
@media (min-width: 1000px) {
  .sg-public-triphead:has(> .sg-trip-head__cover) { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: start; }
  .sg-public-triphead > .sg-trip-head__cover { margin: 0; max-height: 420px; height: 100%; }
}

/* C-05 view as: label, the audiences side by side, then the group choice. */
.sg-public-viewas__form { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.sg-public-viewas__label { margin: 0; font-weight: 600; }
.sg-public-viewas__options, .sg-public-viewas__group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sg-banner--preview .sg-icon { width: 18px; height: 18px; vertical-align: -3px; }

/* P-05 lock icon above the head. */
.sg-public-secret { text-align: left; }

/* T-13, T-15, T-16 sections. */
.sg-public-form .sg-panel h2, .sg-public-panelhead h2 { margin-top: 0; }
.sg-public-link { display: grid; gap: 0 12px; }
@media (min-width: 600px) { .sg-public-link { grid-template-columns: 1fr 2fr; } }
.sg-public-back { margin: 0 0 8px; }
.sg-public-panelhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px; }
.sg-public-create { margin-top: 12px; }
.sg-public-create summary { list-style: none; cursor: pointer; }
.sg-public-create summary::-webkit-details-marker { display: none; }
.sg-public-create[open] summary { margin-bottom: 12px; }
.sg-public-create .sg-icon, .sg-public-following .sg-icon { width: 18px; height: 18px; vertical-align: -3px; }
.sg-public-danger { border-color: var(--accent); }
.sg-public-zone__name { min-width: 0; overflow-wrap: anywhere; }
.sg-public-zone__name .sg-icon { width: 18px; height: 18px; vertical-align: -3px; }
.sg-public-zoneform { margin-top: 16px; }
.sg-public-zoneform h3 { font-size: 1rem; margin: 0 0 8px; }
