/* HypeOn — shared motion layer. Loaded by every page. */

/* 1. Page changes are instant, like a classic forum (R10 style): no fade, no slide, no entrance animation. */
@view-transition { navigation: none; }
.tz-vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
html { background: var(--bg); }

/* One top bar for every page: same width and the same menu row, whatever the page's own content width is. */
html body header.top > .wrap, html body header.top > nav.nav > .wrap { max-width: 1240px; }
header.top > nav.nav { border-top: 1px solid rgba(var(--hfx, 255,255,255), .08); }
header.top > nav.nav > .wrap { display: flex; gap: 4px; overflow-x: auto; padding-block: 0; scrollbar-width: none; flex-wrap: nowrap; align-items: stretch; }
header.top > nav.nav > .wrap::-webkit-scrollbar { display: none; }
header.top > nav.nav a { padding: 10px 12px; color: var(--header-muted); font-size: 14px; font-weight: 500; line-height: 1.5; white-space: nowrap; border-bottom: 2px solid transparent; text-decoration: none; }
header.top > nav.nav a:hover { color: var(--header-ink); }
header.top > nav.nav a.on { color: var(--header-ink); border-bottom-color: var(--accent); }
html body header.top > .wrap { min-height: 66px; box-sizing: border-box; }
header.top > .wrap > .search { min-height: 42px; box-sizing: border-box; }
header.top > .wrap > .me, header.top > .wrap > .actions { gap: 8px; }
html body header.top > .wrap { row-gap: 10px; }
header.top > .wrap > .logo { height: 34px; }


/* 2. Staggered entrance of content blocks */
/* Content appears at once on every page; only switching sections inside the admin panel keeps a light fade. */
.tz-reveal { animation: none; }
[data-panel].tz-reveal { animation: tz-fade .15s ease; }
@keyframes tz-rise { from { opacity: 0; transform: translateY(10px); } }

/* 3. Press + ripple feedback on every control */
:where(.btn, .act, .submit, .alt button, .pager button, .tabs button, .filter button, .tools button, .opt, .tz-press) {
  position: relative; overflow: hidden;
  transition: transform .14s ease, filter .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
:where(.btn, .act, .submit, .alt button, .pager button, .filter button, .tools button, .tz-press):active { transform: scale(.96); }
.tz-ripple { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .22; transform: scale(0); animation: tz-ripple .55s ease-out forwards; }
@keyframes tz-ripple { to { transform: scale(1); opacity: 0; } }

/* 4. Hover motion */
:where(.row, .items li, .fb) { transition: background-color .2s ease; }
:where(.lcard, .rel a, .card, .post, .section, .panel) { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
:where(.lcard, .rel a):hover { transform: translateY(-2px); box-shadow: 0 6px 18px -8px rgba(10,40,48,.35); }
:where(.nav a, .crumbs a, .title a, .meta a, a.t) { transition: color .18s ease, border-color .18s ease; }
.logo svg { transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.logo:hover svg { transform: rotate(-8deg) scale(1.08); }

/* 5. Component animations */
.act.like[aria-pressed="true"] svg { animation: tz-pop .38s cubic-bezier(.3,1.8,.5,1); }
.act.like[aria-pressed="true"] svg path { fill: currentColor; }
@keyframes tz-pop { 40% { transform: scale(1.45); } }
.toast:not([hidden]) { animation: tz-toast .3s cubic-bezier(.2,.8,.2,1); }
@keyframes tz-toast { from { opacity: 0; transform: translate(-50%, 14px); } }
.modal:not([hidden]) { animation: tz-fade .2s ease; }
.modal:not([hidden]) .box { animation: tz-zoom .28s cubic-bezier(.2,.8,.2,1); }
@keyframes tz-fade { from { opacity: 0; } }
@keyframes tz-zoom { from { opacity: 0; transform: translateY(8px) scale(.97); } }
/* Tabs and notices switch instantly (no fade). */
@keyframes tz-tab { from { opacity: 0; transform: translateY(6px); } }
.tabs button { transition: color .2s ease, background-color .2s ease, border-color .25s ease, box-shadow .2s ease; }

.tz-shake { animation: tz-shake .4s ease; }
@keyframes tz-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.meter i { transition: background-color .3s ease; }
.rules li { transition: color .2s ease; }
.fb[hidden] { display: none !important; }
.fb:not([hidden]) { animation: tz-tab .25s ease; }

/* "Animasyonları azalt" setting (per browser) */
html.tz-calm *, html.tz-calm *::before, html.tz-calm *::after,
html.tz-calm::view-transition-old(root), html.tz-calm::view-transition-new(root) {
  animation: none !important; transition: none !important;
}

/* Reduced motion: keep everything instant */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation: none !important; transition: none !important;
  }
}

/* Shared: "see all" link at the bottom of the bell dropdown */
.dropall { display: block; padding: 11px 14px; text-align: center; font-weight: 600; font-size: 13px; color: var(--accent); background: var(--surface); transition: background-color .2s ease; }
.dropall:hover { background: var(--surface-2); }

/* Minimum 24px tap size for small inline controls (quality scan) */
.chip button{min-width:24px!important;min-height:24px!important;display:inline-grid;place-items:center}
.seg button,.section-h button,#sugg button,.resetf,.linkbtn,#switchBtn{min-height:24px}
#tzOut{min-height:28px}
@media (max-width:520px){header .meav[data-gate-hide]{display:none}}

/* Contrast fixes (WCAG AA): avatar initials stay white; dark theme lightens brand-coloured text and darkens text on light fills */
span.av{color:#fff!important}
.t-hot{--hot:#C4321D}
@media (prefers-color-scheme: dark){
  :root:not([data-tz-theme="light"]) .btn-amber,:root:not([data-tz-theme="light"]) .badge.vit,:root:not([data-tz-theme="light"]) .btn-green,:root:not([data-tz-theme="light"]) .cnt.bump,:root:not([data-tz-theme="light"]) #unreadBadge,:root:not([data-tz-theme="light"]) .code button{color:#1E1A17!important}
  :root:not([data-tz-theme="light"]) .ad-text a b,:root:not([data-tz-theme="light"]) .ad-grid .g a b{color:color-mix(in srgb,var(--c) 45%,#fff)!important}
  :root:not([data-tz-theme="light"]) .cat[style*="--cc"]{color:color-mix(in srgb,var(--cc) 45%,#fff)!important}
  :root:not([data-tz-theme="light"]) .t-hot{color:#FF6B57!important}
}
:root[data-tz-theme="dark"] .btn-amber,:root[data-tz-theme="dark"] .badge.vit,:root[data-tz-theme="dark"] .btn-green,:root[data-tz-theme="dark"] .cnt.bump,:root[data-tz-theme="dark"] #unreadBadge,:root[data-tz-theme="dark"] .code button{color:#1E1A17!important}
:root[data-tz-theme="dark"] .ad-text a b,:root[data-tz-theme="dark"] .ad-grid .g a b{color:color-mix(in srgb,var(--c) 45%,#fff)!important}
:root[data-tz-theme="dark"] .cat[style*="--cc"]{color:color-mix(in srgb,var(--cc) 45%,#fff)!important}
:root[data-tz-theme="dark"] .t-hot{color:#FF6B57!important}
