/* v0.2.3 | 2025-11-09 05:55:00 UTC | confirmation preview: hide interactions (like/comment/share/view), stats, prompts, comments */

/* Floating action button */
.sh-post-fab{font-size:14px;position:fixed;right:20px;bottom:20px;z-index:1000;background:var(--sh-primary,#1d4ed8);color:#fff;border:none;padding:12px 16px;border-radius:9999px;font-weight:700;box-shadow:0 10px 20px rgba(0,0,0,0.25);cursor:pointer}
.sh-post-fab:hover{opacity:.95}
@media (max-width:640px){.sh-post-fab{left:50%;right:auto;transform:translateX(-50%);bottom:72px;padding:10px 14px}

}

/* Modal base */
#sh-post-modal,#sh-confirm-favorite,#sh-post-confirmation{position:fixed;inset:0;z-index:100000;display:none;align-items:center;justify-content:center;padding:0}
#sh-post-modal .sh-modal-overlay,#sh-confirm-favorite .sh-modal-overlay,#sh-post-confirmation .sh-modal-overlay{position:fixed;inset:0;background:rgba(89,98,106,0.43);backdrop-filter:blur(8px);display:block}
#sh-post-modal .sh-modal-content,#sh-confirm-favorite .sh-modal-content,#sh-post-confirmation .sh-modal-content{position:relative;max-width:760px;width:92%;max-height:96vh;overflow-y:auto;background:rgba(15,15,15,0.95);border:1px solid rgba(255,255,255,0.08);border-radius:18px;padding:0;box-shadow:0 12px 50px rgba(0,0,0,.45);transform:scale(.96);opacity:0;transition:transform .18s ease-out,opacity .18s ease-out}
#sh-post-modal .sh-modal-content.is-open,#sh-confirm-favorite .sh-modal-content.is-open,#sh-post-confirmation .sh-modal-content.is-open{transform:scale(1);opacity:1}
#sh-post-modal .sh-modal-header,#sh-confirm-favorite .sh-modal-header,#sh-post-confirmation .sh-modal-header{padding:0;border-bottom:1px solid rgba(255,255,255,0.08);display:flex;align-items:center;justify-content:space-between}
#sh-post-modal .sh-modal-header h3,#sh-confirm-favorite .sh-modal-header h3,#sh-post-confirmation .sh-modal-header h3{margin:0;color:#fff;font-size:22px;font-weight:700;display:flex;align-items:center;gap:10px;padding:18px 22px}
#sh-post-modal .sh-modal-close,#sh-confirm-favorite .sh-modal-close,#sh-post-confirmation .sh-modal-close{background:rgba(255,255,255,0.08);border:0;color:#fff;font-size:22px;cursor:pointer;width:44px;height:44px;display:flex;align-items:center;justify-content:center;margin-right:12px;border-radius:12px;transition:background .2s ease}
#sh-post-modal .sh-modal-close:hover,#sh-confirm-favorite .sh-modal-close:hover,#sh-post-confirmation .sh-modal-close:hover{background:rgba(255,255,255,0.14)}
#sh-post-modal .sh-modal-body,#sh-confirm-favorite .sh-modal-body,#sh-post-confirmation .sh-modal-body{padding:20px 22px}
#sh-post-modal .sh-modal-footer,#sh-confirm-favorite .sh-modal-footer,#sh-post-confirmation .sh-modal-footer{padding:16px 22px;border-top:1px solid rgba(255,255,255,0.08);display:flex;gap:12px;align-items:center;justify-content: center;flex-wrap: nowrap;}

/* Buttons */
#sh-post-confirmation .btn-secondary, #sh-post-modal .btn-secondary{background-color:#1a1e20;border-color:#1f2f3a;color:#dcdcdd;border-radius:8px}
#sh-post-modal .shp-btn{display:inline-flex;align-items:center;gap:10px;padding:14px 28px;border-radius:14px;color:#fff;cursor:pointer;font-weight:800;font-size:16px;line-height:1;border:none;text-decoration:none;justify-content:center;flex-wrap: nowrap;}
#sh-post-modal .shp-btn--success{background:linear-gradient(135deg,#4CAF50,#8BC34A);box-shadow:0 4px 15px rgba(0,0,0,0.3)}
#sh-post-modal .shp-btn--block{width:100%}

/* Form */
#sh-post-modal .sh-form-row{margin-bottom:12px}
#sh-post-modal .sh-form-row.is-hidden{max-height:0;opacity:0;overflow:hidden;margin:0;transition:all .18s ease}
#sh-post-modal #sh-post-title,#sh-post-modal #sh-post-desc,#sh-post-modal #sh-post-checkin,#sh-post-modal #sh-post-tags,#sh-post-modal #sh-post-visibility{font-size:14px;width:100%;background:rgba(255,255,255,0.06);color:#fff;border:1px solid rgba(255,255,255,0.12);border-radius:10px;padding:10px 12px}
#sh-post-modal #sh-post-desc{min-height:96px;resize:vertical}
#sh-post-modal .sh-visibility-badge{display:inline-block;margin-top:6px;color:rgba(255,255,255,0.7);font-size:12px}

/* Visibility indicator */
#sh-post-modal .sh-visibility-indicator{margin-top:0}
#sh-post-modal .sh-visibility-indicator .pill{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.12);border-radius:9999px;padding:6px 10px;color:rgba(255,255,255,0.9);font-size:12px;line-height:1}
#sh-post-modal .sh-visibility-indicator .pill i{width:16px;height:16px;color:rgba(255,255,255,0.9)}

/* Footer 50-50 columns */
#sh-post-modal .sh-footer-left,#sh-post-modal .sh-footer-right{flex:0 0 50%}
#sh-post-modal .sh-footer-left{display:flex;align-items:center}
#sh-post-modal .sh-footer-right{display:flex}

/* Confirmation preview minimal styles (scoped) */
#sh-post-confirmation #sh-post-preview-area{max-height:60vh;overflow:auto}
#sh-post-confirmation #sh-post-preview-area .sh-timeline-card{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);border-radius:12px;padding:12px;color:#e5e7eb}
#sh-post-confirmation #sh-post-preview-area .sh-card-title{font-weight:700;margin-bottom:8px;color:#fff}
#sh-post-confirmation #sh-post-preview-area .sh-card-description{color:#d1d5db;margin:8px 0}
#sh-post-confirmation #sh-post-preview-area .sh-card-image img{display:block;width:100%;height:auto;border-radius:10px}
#sh-post-confirmation #sh-post-preview-area .sh-card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
#sh-post-confirmation #sh-post-preview-area .sh-user-info .sh-user-name{color:#fff}
/* Hide interactive controls within preview to avoid accidental actions */
#sh-post-confirmation #sh-post-preview-area .sh-card-footer,
#sh-post-confirmation #sh-post-preview-area .sh-stats-bar,
#sh-post-confirmation #sh-post-preview-area .sh-footer-actions,
#sh-post-confirmation #sh-post-preview-area .sh-comment-prompt-bar,
#sh-post-confirmation #sh-post-preview-area .sh-comments-section {display:none !important}

/* Image holder */
#sh-post-modal .sh-image-box{position:relative;background:rgba(255,255,255,0.03);border:1px dashed rgba(255,255,255,0.18);border-radius:14px;padding:0;overflow:hidden;aspect-ratio:4/3;cursor:pointer}
@media (max-width:640px){#sh-post-modal .sh-image-box{aspect-ratio:4/3}
#sh-post-modal .sh-visibility-indicator .pill {
  gap: 5px;
  padding: 6px 8px;
  font-size: 10px;
}
#sh-post-modal .sh-modal-header h3,#sh-confirm-favorite .sh-modal-header h3,#sh-post-confirmation .sh-modal-header h3{margin:0;color:#fff;font-size:18px;font-weight:700;display:flex;align-items:center;gap:10px;padding:18px 22px}

}
#sh-post-modal .sh-image-preview{position:absolute;inset:10px;display:none;overflow:hidden;border-radius:12px}
#sh-post-modal .sh-image-preview img{width:100%;height:100%;object-fit:cover;display:block;border-radius:12px}
#sh-post-modal .sh-image-placeholder{position:absolute;inset:10px;display:flex;align-items:center;justify-content:center;text-align:center;color:rgba(255,255,255,0.8);border-radius:12px}
#sh-post-modal .sh-image-placeholder .inner{padding-top:12%;display:flex;flex-direction:column;align-items:center;gap:10px}
#sh-post-modal .sh-image-placeholder .inner i{width:28px;height:28px;color:#9ca3af}
#sh-post-modal .sh-image-placeholder .t1{font-weight:700;font-size:14px;color:rgba(255,255,255,0.9)}
#sh-post-modal .sh-image-placeholder .t2{font-size:12px;color:rgba(255,255,255,0.7);max-width:90%}
#sh-post-image-remove{position:absolute;top:8px;right:8px;background:rgba(0,0,0,0.65);color:#fff;border:0;border-radius:9999px;width:34px;height:34px;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.35)}
#sh-post-image-remove i{font-size:16px}
#sh-post-modal .sh-image-loading{position:absolute;inset:10px;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.35);border-radius:12px;gap:10px;visibility:hidden;opacity:0;transition:opacity .15s ease}
#sh-post-modal .sh-image-loading.is-active{visibility:visible;opacity:1}
#sh-post-modal .sh-image-loading .spinner{width:22px;height:22px;border:3px solid rgba(255,255,255,0.3);border-top-color:#00c8d4;border-radius:50%;animation:shspin 1s linear infinite}
#sh-post-modal .sh-image-loading .txt{color:#fff;font-size:13px}
@keyframes shspin{to{transform:rotate(360deg)}}

/* Preview area */
#sh-post-confirmation #sh-post-preview-area{background:rgba(0,0,0,0.25);border:1px solid rgba(255,255,255,0.08);border-radius:12px;padding:10px}
body.sh-modal-open{overflow:hidden}

/* Select2 dark theme (scoped) */
#sh-post-modal .select2-container{width:100%!important}
#sh-post-modal .select2-container--default .select2-selection--single{background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.12);border-radius:10px;height:40px;color:#fff}
#sh-post-modal .select2-container--default .select2-selection--single .select2-selection__rendered{font-size:14px;color:#fff;line-height:38px;padding-left:12px}
#sh-post-modal .select2-container--default .select2-selection--single .select2-selection__arrow{height:38px;right:8px}
#sh-post-modal .select2-container--default .select2-selection--multiple{background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.12);border-radius:10px;min-height:40px;display:flex;align-items:center}
#sh-post-modal .select2-container--default .select2-selection--multiple .select2-selection__rendered{font-size:14px;padding:6px}
#sh-post-modal .select2-container--default .select2-selection--multiple .select2-selection__choice{background:rgba(255,255,255,0.12);border:0;color:#fff;border-radius:8px;padding:4px 8px;font-size:12px}
#sh-post-modal .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#fff;margin-right:6px}
#sh-post-modal .select2-dropdown{background:rgba(15,15,15,0.98);border:1px solid rgba(255,255,255,0.12)}
#sh-post-modal .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{font-size:14px;background:rgba(0,200,212,0.2);color:#fff}
#sh-post-modal .select2-results__option{font-size:14px;color:#fff}
#sh-post-modal .select2-search--dropdown .select2-search__field{font-size:14px!important;background:rgba(255,255,255,0.06)!important;border:1px solid rgba(255,255,255,0.12)!important;color:#fff!important;caret-color:#fff!important;border-radius:8px!important}
#sh-post-modal .select2-results__message{color:rgba(255,255,255,0.9)!important;font-size:14px}
#sh-post-modal #sh-post-tags+.select2-container .select2-selection__choice{display:none!important}
#sh-post-modal #sh-post-tags+.select2-container .select2-selection__rendered{padding:6px 8px!important;gap:0!important}

/* Visible labels above fields */
#sh-post-modal label{display:block;color:rgba(255,255,255,0.85);font-weight:700;margin:6px 0 6px 2px;font-size:13px;letter-spacing:.2px}

/* Desktop: slightly wider modal, larger body padding */
@media (min-width: 1024px){
  #sh-post-modal .sh-modal-content{max-width:820px;max-height:96vh}
  #sh-post-modal .sh-modal-body{padding:24px 26px}
  #sh-post-modal label{font-size:14px}
}

/* Friend chips + tags line */
#sh-post-modal .sh-card-tags-line{color:rgba(255,255,255,0.65);font-size:13px;padding:0 5px 15px 15px}
#sh-post-modal #sh-post-tags-preview{margin-top:8px}
#sh-post-modal .sh-chips{display:flex;flex-wrap:wrap;gap:8px}
#sh-post-modal .sh-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:9999px;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.12);color:#fff;font-size:12px}
#sh-post-modal .sh-chip .sh-chip-x{background:transparent;border:0;color:#fff;opacity:.8;cursor:pointer;width:18px;height:18px;line-height:18px;border-radius:9999px}
#sh-post-modal .sh-chip .sh-chip-x:hover{background:rgba(255,255,255,0.12)}

/* Toast */
.shpm-toast{position:fixed;top:16px;right:16px;z-index:100001;background:rgba(30,30,30,0.95);color:#fff;border:1px solid rgba(255,255,255,0.12);border-radius:12px;padding:10px 14px;box-shadow:0 8px 30px rgba(0,0,0,.35);font-size:13px;max-width:320px}
