﻿
:root{
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #1c1e22;
  --text: #e6edf3;
  --muted: #536471;
  --accent: #1d9bf0;
  --accent-press: #1a8cd8;
  --danger: #f4212e;
  --radius: 16px;
  --ring: 0 0 0 3px rgba(29,155,240,.15);
}

@media (prefers-color-scheme: dark){
  :root{
    --bg: #0a0f14;
    --surface: #0f1419;
    --surface-2: #0b1015;
    --border: #1c1e22;
    --text: #e6edf3;
    --muted: #8b98a5;
    --accent: #1d9bf0;
    --accent-press: #198ad5;
  }
}


html, body {overflow-x: hidden;}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}
*{ box-sizing:border-box }
:root{
  --bg-1: #0b0d10;      /* base */
  --bg-2: #0f1116;      /* foncé centre */
  --ink:  #07080a;      /* plus sombre bords */
  --glow-purple: #6a5cff22; /* reflets violets (faible) */
  --glow-cyan:   #1ec8ff1c; /* reflets cyan (faible) */
  --vignette: .35;          /* force du vignette */
}

body {
    margin: 0;
    background: #000; 
    background-attachment: fixed;
    background-blend-mode: normal;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    color: #fff;
}

html {
  overflow-y: auto;           
  scrollbar-gutter: stable;   
}

@supports (overflow: overlay) {
  html { overflow: overlay; } 
}

* { scrollbar-width: thin; }                 
::-webkit-scrollbar { width: 5px; }         
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 8px; }

.timeline-wrap {
    position: relative;
    top: -56px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100dvh;
    height: 100%;
    padding: 0 0px 0px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}


.composer {
    position: relative;
    isolation: isolate;
    width: 100%;
    background-image: none;
    background-size: auto;
    z-index: 1000;
    border-top: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 14px;
}

.composer-head{ display:flex; align-items:center; gap:10px;cursor: pointer!important;}
.composer-head strong {font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji"; font-weight: 600;font-size: 13px;}
.composer .avatar {
    width: 35px;
    height: 35px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #1d9bf0a8;
    box-shadow: 0px 0px 14px #1d9bf08f;
}
.composer .is-collapsed {background-color: red;}
.composer .textarea{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  width:100%; min-height:110px; resize:vertical;
  background: #000;
  border-bottom: 1px solid var(--border);
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 600;
}
.composer .textarea {
  max-height: 400px;
}
.composer .textarea:focus{ outline:none;}
.composer .actions{ display:flex; align-items:center; gap:12px;}


.images-toolbar { display:flex; align-items:center; margin-top: 10px;}
.icon-btn {
    padding: 9px 11px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    border: 2px solid #0f2235;
    background: transparent;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
}
.icon-btn:hover { background:#1f24273d;}

.composer-images {font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji"; font-size: 12px; font-weight: 600;color: var(--muted);margin-bottom: -10px;}


.btn {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s;
}

.btn-primary{ background: transparent; color: #fff; border: 2px solid var(--border); }
.btn-primary:hover{ background: #1f24273d; border-color: #0f2235;}
.btn-ghost{ background: transparent; color: #fff; border: 2px solid #0f2235;transition: all 0.2s;}
.btn-ghost:hover{background: #1f24273d; border-color: #0f2235;}
.input, .textarea, input[type="file"]{ width:100% }

.preview-grid{ margin-top:8px; display:grid; grid-template-columns:repeat(4,1fr); gap:8px }
.preview-grid img{ width:100%; height:100%; object-fit:cover; border-radius: 0px }


#loader {
    position: relative;
    isolation: isolate;
    text-align: center;
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
    margin-top: 10px !important;
    margin-bottom: 10px;
    border-radius: 0px;
    background: transparent;
}


/* Animation douce (réduite si préférence) */
@keyframes ldrPulse{
  0%,100%{ opacity:.35; transform: translateY(0); }
  50%    { opacity:1;    transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce){
  #loader::after{ animation: none; }
}

/* Utilitaires */
#loader.is-hidden{ display:none; }
#sentinel{ height: 16px }


.preview-thumb {
  width: 100%;
  border-radius: 0px;
  object-fit: cover;
  margin-top: 6px;
}
.preview-caption {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  margin-bottom: 10px;
  font-weight: 600;
}
.disabled { opacity: .6; cursor: not-allowed; }

#sentinel {
  height: 16px;
}

.editor-wrap { border:none; border-radius:10px; }
.rich-editor { min-height:110px; padding:10px; outline:none; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";font-weight: 600;font-size: 13px;background-color: transparent;border-radius: 10px;}
.rich-editor:empty::before { content: attr(data-placeholder); opacity:.6; pointer-events:none; }
.token { color:var(--accent); }              
.token.mention { font-weight:600; }
.token.hashtag { font-weight:600; }
.images-toolbar { display:flex; align-items:center; margin:10px 0 8px; }
.toolbar-spacer { flex:1; }

span#createStatus {
    display: none;
}
.modal-wrap input {font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";}
.modal-wrap input:focus {outline: none;}

.modal-header strong {font-size: 20px;font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";font-weight: 600;}

.modal-body p {font-size: 14px;font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";font-weight: 600;}

.aside-suggest {
    position: fixed;
    top: 55px;
    display: block;
    margin-left: -348px;
    width: 350px;
    max-height: calc(100vh - 55px);
    min-height: calc(100vh - 55px);
    overflow: auto;
    padding: 12px;
}
.aside-suggest{
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.aside-suggest::-webkit-scrollbar{
  width: 0 !important;
  height: 0 !important;
  display: none;
}

@media screen and (max-width: 1400px) {
  .aside-suggest, .right-rail {
    display: none!important;
  }
  .timeline-wrap {max-width: none!important;}
}

.as-section + .as-section {
  padding: 5px;
  margin-top: 20px;
}
.as-title {
    z-index: 1000;
    margin-bottom: 5px;
    display: inline-block;
    width: auto;
    padding: 5px 6px;
    border-radius: 8px;
    font-size: 14px;
    border: 2px solid #0f2235;
    color: var(--accent);
    font-weight: 600;
}

.as-user {
    border-radius: 10px;
    display: grid;
    grid-template-columns: 45px 1fr auto;
    align-items: center;
    padding: 4px 5px;
    position: relative;
    border: 1px solid transparent;
    margin-bottom: 5px;
    transition: transform 0.1s ease-out;
}
.as-user:hover{
  background: #1f2427;
  transform: translateX(5px);
}
.as-avatar { width: 40px; height: 40px; border-radius: 999px; overflow: hidden; display:block; }
.as-avatar img { width: 100%; height: 100%; object-fit: cover; display:block; }
.as-meta { min-width: 0; }
.as-name {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.as-handle { opacity: .7; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-btn {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    position: absolute;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-right: 10px;
    line-height: 1;
    border-radius: 10px;
    background: #1d9bf042;
    color: #fff;
    font-size: 12px;
    padding: 10px 10px;
    font-weight: 600;
    letter-spacing: .2px;
    border: 2px solid var(--accent);
    user-select: none;
    cursor: default;
}

.as-cat { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 8px; text-decoration: none; color: inherit; }
.as-cat:hover { background: rgba(255,255,255,0.04); }
.as-dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; opacity: .8; }
.as-text { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sk .skb { background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.13), rgba(255,255,255,0.08)); background-size: 300% 100%; animation: asShimmer 1.1s infinite; }
.as-user.sk { display: grid; grid-template-columns: 40px 1fr 74px; align-items: center; gap: 10px; padding: 8px 4px; }
.as-user .as-avatar.skb { width: 30px; height: 30px; border-radius: 999px; }
.as-user .as-btn.skb { width: 74px; height: 28px; border-radius: 10px; }
.as-line.skb { height: 10px; border-radius: 10px; }
.as-cat.sk { display:flex; align-items:center; gap:10px; padding:6px 4px; }
.as-bullet.skb { width: 8px; height: 8px; border-radius: 10px; }
@keyframes asShimmer { 0%{background-position:0% 0} 100%{background-position:100% 0} }






.as-themes {
  position: relative;
  background: transparent;
  padding: 6px;
  display: flex;
  flex-direction: column;
  margin-bottom: -20px;
  border-radius: 10px;
}


.as-theme {
  display: grid !important;
  grid-template-columns: 1fr auto;
  grid-auto-rows: auto;
  align-items: center;
  gap: 6px 8px;
  padding: 8px 6px;
  border-radius: 10px;
  margin-bottom: 5px;
}
.as-theme:hover{ background: #1f24273d }


.as-theme .thm-main{
  grid-column: 1 / 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: #e5e7eb;
}
.as-theme .thm-ico{
  width: 22px; height: 22px;
  display: grid; place-items: center;
  opacity: .95;
}
.as-theme .thm-txt{
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.as-theme .thm-toggle{
  grid-column: 2 / 3;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 0; background: #0f2235;
  color: #fff; border-radius: 10px; cursor: pointer;
}
.as-theme .thm-toggle:hover{  color: var(--post-accent); }
.as-theme .thm-toggle i{ transition: transform .15s ease; }
.as-theme[data-open="true"] .thm-toggle i{ transform: rotate(180deg); background-color: transparent; }

.as-theme[data-open="true"] {
  background-color: #1f24273d;
}


.as-theme .thm-sub {
    margin-top: -5px;
    grid-column: 1 / -1;
    display: none;
    padding: 6px 0 0 32px;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 5px;
}
.as-theme[data-open="true"] .thm-sub{ display: flex; }


.as-theme .thm-subitem {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 600;
  font-size: 13px;
  padding: 4px 5px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: var(--post-accent);
  border: 2px solid #0f2235;
  transition: all 0.2s;
}

.as-theme .thm-subitem:hover {
box-shadow: 0px 0px 14px #15508a;
border-color:#15508a;
}

.as-section[data-key="themes"]{ margin-bottom: 12px; }

.as-empty {font-size: 12px; color: var(--muted);font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";font-weight: 600;}

.as-user .as-name i.fa-check-circle,
.as-user .as-name i.fa-users,
.as-user .as-name i.fa-robot{
  margin-left:6px; font-size:12px; vertical-align:middle;
}
#repost-return-btn{font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";}

.lb-backdrop {
    background: radial-gradient(circle at 50% 40%, rgba(70, 60, 60, 0.55), rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.8) 100%)!important;
    backdrop-filter: blur(26px)!important;
}

img.lb-img {
    max-width: 800px;
    max-height: 800px;
    border-radius: 10px;
}

.as-user { cursor: pointer; }
.as-user .as-btn { cursor: pointer; }
.as-user .as-name { cursor: pointer; } 

.modal-input::placeholder {color:var(--muted)}
#tagInput::placeholder {color:var(--muted)}


.updates-banner__tag, .updates-banner__btn, .updates-banner__text {font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";}

.np-tab, .npmk {font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";}

.as-user:hover .as-btn {
  display: inline-flex;
}

.profile-head .avatar.is-community,
.composer .avatar.is-community {
  border-radius: 5px !important;
}

.preview .post-content {
    margin: -5px 0 6px 21px;
}

.as-user.is-community {
  --comm-green: #2ecc71;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}
.as-user.is-community:hover,
.as-user.is-community:focus-within {
  border: 1px solid;
  border-color: var(--comm-green);
  background: color-mix(in oklab, var(--comm-green) 10%, transparent);
}
@supports not (color-mix(in oklab, white, black)) {
  .as-user.is-community:hover,
  .as-user.is-community:focus-within {
    background: rgba(46, 204, 113, 0.10);
  }
}

.as-user.is-community:hover .as-btn,
.as-user.is-community:focus-within .as-btn {
  border-color: var(--comm-green);
  color: var(--comm-green);
}
.as-user.is-community .as-btn.is-following {
  border-color: var(--comm-green);
  color: var(--comm-green);
  background: #2ecc712b;
}

.as-user.is-community .as-avatar{
  border-radius: 3px !important;
}