/* V5 — language switcher, reading progress, page transitions */

/* Hide every scrollbar site-wide; keep wheel/trackpad scrolling */
html,
body {
  overflow-x: hidden !important;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lang-flag:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.lang-flag.is-active {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 9999;
  background: linear-gradient(90deg, #7dd3fc, #a78bfa);
  transition: width 0.05s linear;
}

.page-transition {
  animation: v5FadeIn 0.35s ease both;
}

@keyframes v5FadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-share,
.blog-pager,
.blog-related,
.blog-cta-box {
  margin-top: 2rem;
}

.blog-share .share-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.blog-share .share-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  font-size: 0.85rem;
}

.blog-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.blog-pager a {
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  max-width: 48%;
}

.blog-cta-box {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 1.5rem;
}

.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.i18n-placeholder {
  outline: 1px dashed rgba(255, 200, 80, 0.35);
  outline-offset: 2px;
}
