/* diaspora.ro Mobile Pro — final visual contract
 * Reuses the homepage mobile language/header language without runtime injection.
 */
.top-bar .tb-hamburger {
  width: 44px;
  height: 44px;
  min-width: 44px;
  max-width: 44px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .10);
}
.top-bar .tb-hamburger span {
  width: 21px;
  height: 2px;
  background: #334155;
  border-radius: 999px;
}
.top-bar .tb-logo {
  font-size: 37px;
  line-height: .96;
  letter-spacing: -.045em;
}
/* Limba este mutata de runtime in meniul hamburger; nu ocupa headerul. */
.top-bar > #dpr-global-language {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
}
.top-bar .tb-left { flex: 1 1 auto; min-width: 0; gap: 8px; }
.top-bar .tb-logo {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-bar .tb-actions { flex: 0 0 auto; margin-left: 0; }

/* Shortcuts: maximum contrast, no decorative plate behind the icon. */
.sc-item.sc-new { height: 104px; }
.sc-item.sc-new .sc-icon-new {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.sc-item.sc-new .sc-icon-new svg {
  width: 29px;
  height: 29px;
  stroke-width: 2.35;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.28));
}
.sc-item.sc-new .sc-label-new {
  display: block;
  overflow: visible;
  max-width: 100%;
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0,0,0,.58);
}
.sc-icon::before { display: none; }



@media (max-width: 640px) {
  .top-bar .tb-logo { font-size: clamp(20px, 6.2vw, 28px); }
  .top-bar { gap: 6px; }
  .top-bar .tb-actions { gap: 4px; }
  /* Refresh duplică gestul nativ al browserului și aglomerează headerul. */
  .top-bar #btn-refresh { display: none; }
  .sc-item.sc-new { width: 136px; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-item.sc-new { animation: none; }
}


/* ═══════════════════════════════════════════════════════════════════
   MOBILE PRO — DOCUMENT FLOW CONTRACT (2026-09-29)
   One page scroller. Header is ordinary content, never sticky/fixed.
   Bottom navigation remains the only persistent viewport control.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
  }

  .mobile-pro-page {
    min-height: 100vh;
  }

  #dt-body,
  #dt-center {
    display: contents;
  }

  .top-bar,
  .top-bar.mobile-pro-header-hidden {
    position: relative;
    inset: auto;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 20;
    width: 100%;
    min-height: calc(var(--safe-top, 0px) + 58px);
    height: auto;
    box-sizing: border-box;
    padding: calc(var(--safe-top, 0px) + 10px) 14px 10px;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }

  .hub-scroll {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior: auto;
    scroll-behavior: auto;
    box-sizing: border-box;
    padding: 0 0 calc(78px + var(--safe-bot, 0px));
  }

  .feed-tabs-bar {
    position: relative;
    top: auto;
    z-index: 1;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
  }

  .hub-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
  }

  #twin-bar {
    display: none;
    visibility: hidden;
    pointer-events: none;
  }

  /* Refresh is a pull gesture, not a crowded header action. */
  .top-bar #btn-refresh {
    display: none;
  }
}
/* MP-MENU-FOOTER-ACTIONS-01 */
/* Menu language control: one full-width, stable control inside the drawer. */
.menu-language-slot {
  margin: 10px 12px 8px;
  padding: 12px;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  background: #f8fafc;
}
.menu-language-slot .menu-language-label {
  margin-bottom: 8px;
  color: #64748b;
  font: 700 11px/1.2 var(--dpr-type-font-family);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.menu-language-slot #dpr-global-language {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}
.menu-language-slot #dpr-global-language::before,
.menu-language-slot #dpr-global-language::after {
  content: none;
}
.menu-language-slot #dpr-global-language .dpr-language-trigger {
  position: relative;
  inset: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  height: 44px;
  min-width: 0;
  min-height: 44px;
  max-width: none;
  max-height: 44px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #1c1e21;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
  font: 700 13px/1.2 var(--dpr-type-font-family);
}
.menu-language-slot #dpr-global-language .dpr-language-trigger::after {
  content: "⌄";
  margin-left: auto;
  color: #64748b;
  font: 800 18px/1 var(--dpr-type-font-family);
  transform: translateY(-2px);
}
.menu-language-slot #dpr-global-language .dpr-language-trigger__code {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: #eef2ff;
  color: #4338ca;
  font: 800 10px/1 var(--dpr-type-font-family);
  letter-spacing: .08em;
  box-shadow: none;
}
.menu-language-slot #dpr-global-language .dpr-language-trigger:focus-visible {
  outline: 3px solid rgba(22, 163, 74, .28);
  outline-offset: 2px;
}
/* Menu hierarchy: consistent readable type and a real touch-sized accordion arrow. */
.menu-panel,
.menu-panel button {
  font-family: var(--dpr-type-font-family);
}
.menu-acc-title {
  min-height: 48px;
  padding: 10px 16px 8px;
}
.menu-acc-title .menu-section-title {
  color: #475569;
  font: 800 14px/1.2 var(--dpr-type-font-family);
  letter-spacing: .06em;
}
.menu-acc-title svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  stroke: #475569;
  stroke-width: 2.75;
}
.menu-user-name { font: var(--dpr-type-name); }
.menu-user-sub { font: 500 13px/1.35 var(--dpr-type-font-family); }
.menu-item { min-height: 48px; }
.menu-item-text { font: 600 14.5px/1.35 var(--dpr-type-font-family); }
.menu-card-name { font: 800 14px/1.25 var(--dpr-type-font-family); }
/* Footer selection: green perfect ring around the selected icon, never the old blue/purple pill. */
.hub-nav-tab { font: var(--dpr-type-profile-secondary); }
.hub-nav-tab.active { color: #15803d; }
.hub-nav-tab.active::after {
  top: 7px;
  left: 50%;
  width: 44px;
  height: 44px;
  border: 2px solid #16a34a;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, .08);
  transform: translateX(-50%);
  pointer-events: none;
}
/* Post action bar: icon-only controls keep each touch target stable at every phone width. */
.post-actions .post-act {
  gap: 0;
  padding: 9px 4px;
  font-size: 0;
}
.post-actions .post-act svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}


/* MP-VISUAL-CONTRACT-02 — canonical white Mobile Pro surfaces. */
/* One visual owner for the Mobile Pro light shell. The backdrop stays dimmed
   intentionally; the drawer, header, feed and footer remain pure white. */
html[data-mobile-pro-theme="light"] body,
html[data-mobile-pro-theme="light"] #dt-body,
html[data-mobile-pro-theme="light"] #dt-center,
html[data-mobile-pro-theme="light"] .hub-scroll,
html[data-mobile-pro-theme="light"] .hub-view,
html[data-mobile-pro-theme="light"] .top-bar,
html[data-mobile-pro-theme="light"] .hub-nav,
html[data-mobile-pro-theme="light"] .feed-tabs-bar,
html[data-mobile-pro-theme="light"] .feed-sort-bar,
html[data-mobile-pro-theme="light"] .composer-card,
html[data-mobile-pro-theme="light"] #feed-list,
html[data-mobile-pro-theme="light"] .post-card,
html[data-mobile-pro-theme="light"] .menu-panel,
html[data-mobile-pro-theme="light"] .menu-top {
  background-color: #ffffff;
}

@media (max-width: 899px) {
  html[data-mobile-pro-theme="light"] .top-bar,
  html[data-mobile-pro-theme="light"] .hub-nav {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
