/* ===================================================
   MINECRAFTPE.IO (APPYN THEME) DESIGN SYSTEM
   Faithful replication of the authentic Appyn APK portal
=================================================== */

/* 1. NAVBAR HEADER */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--color-primary);
  padding: 0.75rem 0;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 700;
  background-color: transparent;
  box-shadow: none;
}

[data-theme="light"] .nav-brand img {
  filter: brightness(0);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Segmented Language Switcher (EN / VI) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 3px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: transparent;
  user-select: none;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 199, 149, 0.45);
}

.flag-svg {
  width: 16px;
  height: 11px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.theme-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ===================================================
   2. HERO SUBHEADER WITH ANIMATED PANNING BACKGROUND
=================================================== */
#subheader {
  position: relative;
  overflow: hidden;
  background-color: #151b24;
  color: #ffffff;
  text-align: center;
  padding: 48px 20px 42px;
  border-bottom: 2px solid var(--color-primary);
}

#subheader .imgbg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

#subheader .imgbg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 27, 36, 0.5) 0%, rgba(21, 27, 36, 0.78) 100%);
  pointer-events: none;
}

#subheader .imgbg img {
  position: absolute;
  top: -15%;
  left: -20%;
  width: 150% !important;
  min-width: 150% !important;
  max-width: none !important;
  height: 130% !important;
  min-height: 130% !important;
  object-fit: cover;
  object-position: center 75%;
  opacity: 0.75;
  animation: subheaderPan 26s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes subheaderPan {
  0% { transform: scale(1.02) translate3d(0, 0, 0); }
  50% { transform: scale(1.08) translate3d(6%, -2%, 0); }
  100% { transform: scale(1.02) translate3d(0, 0, 0); }
}

@media (max-width: 600px) {
  #subheader .imgbg img {
    left: -50%;
    width: 200% !important;
    min-width: 200% !important;
    max-width: none !important;
    animation: subheaderPanMobile 20s ease-in-out infinite alternate;
  }
  @keyframes subheaderPanMobile {
    0% { transform: scale(1.02) translate3d(0, 0, 0); }
    50% { transform: scale(1.06) translate3d(12%, 0, 0); }
    100% { transform: scale(1.02) translate3d(0, 0, 0); }
  }
}

#subheader .subcontainer {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

#subheader h1 {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

#subheader h2 {
  font-size: 0.98rem;
  font-weight: 400;
  color: #e2e8f0;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 1.75rem;
  opacity: 0.92;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* White Oval Search Box */
.searchBox {
  max-width: 580px;
  margin: 0 auto 1.5rem;
}

.searchBox form {
  background: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  padding: 4px 6px 4px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
}

.searchBox form:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 199, 149, 0.4);
}

.sb_search {
  flex-grow: 1;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: #1e293b;
  outline: none;
  padding: 8px 0;
}

.sb_submit {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.sb_submit:hover {
  background-color: var(--color-primary-hover);
  transform: scale(1.05);
}

/* Social Buttons */
.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin-top: 1.25rem;
}

.social li a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0.35; /* Mờ ban đầu theo yêu cầu */
  transition: all var(--transition-fast);
}

.social li a:hover {
  opacity: 1; /* Rê chuột vào mới hiện rõ bình thường */
  transform: translateY(-2px);
}

.social .facebook { background-color: #3b5998; }
.social .twitter { background-color: #1da1f2; }
.social .instagram { background-color: #c13584; }
.social .youtube { background-color: #cc0000; }
.social .pinterest { background-color: #cb2027; }
.social .telegram { background-color: #0088cc; }

/* ===================================================
   3. SECTIONS & HEADINGS
=================================================== */
.section-wrap {
  padding: 1.75rem 0 2.5rem;
}

.title-clean {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.title-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.title-section {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.title-section::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

/* ===================================================
   4. TOP RATED APPS (APPYN SLIDER WITH FLANKING ARROWS)
=================================================== */
.top-rated-slider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  width: 100%;
}

.slider-nav-arrow {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  border-radius: 4px;
}

.slider-nav-arrow:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.top-rated-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  min-width: 0;
}

@media (max-width: 900px) {
  .top-rated-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .top-rated-grid {
    grid-template-columns: 1fr;
  }
  .slider-nav-arrow {
    display: none;
  }
}

.top-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-bottom: 2px solid var(--color-primary);
  border-radius: 14px; /* Bo tròn mượt mà chuẩn mẫu hình Appyn */
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 68px;
  transition: all var(--transition-fast);
  text-decoration: none;
  min-width: 0;
  outline: none;
}

.top-card:hover {
  transform: translateY(-2px);
  background-color: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  border-bottom-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.top-card:focus,
.top-card:focus-visible {
  outline: none;
  border-color: var(--border-color-hover);
  border-bottom-color: var(--color-primary);
}

.top-card-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.top-card-info {
  flex-grow: 1;
  min-width: 0;
}

.top-card-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.top-card-version {
  font-size: 0.72rem;
  color: #64748b;
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

.stars-row {
  color: #f59e0b;
  font-size: 0.72rem;
  letter-spacing: 1px;
}

/* ===================================================
   5. LATEST APPS (STRICT 6-COLUMN APPYN GRID)
=================================================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  min-height: 480px;
}

@media (max-width: 1024px) {
  .apps-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .apps-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
}

.app-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-bottom: 2px solid var(--color-primary);
  border-radius: 8px;
  padding: 8px 8px 10px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  min-width: 0;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  border-color: var(--border-color-hover);
}

.app-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background-color: #1a222e;
  display: block;
}

.app-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

/* The Center Hover Circle with '+' Icon */
.app-card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(21, 27, 36, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  border-radius: 6px;
  transition: opacity 0.25s ease;
}

.hover-plus-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 15px rgba(0, 199, 149, 0.5);
  transform: scale(0.6);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-card:hover .app-card-overlay {
  opacity: 1;
}

.app-card:hover .hover-plus-btn {
  transform: scale(1);
}

.app-card:hover .app-card-img {
  transform: scale(1.05);
}

.app-card-body {
  padding: 8px 2px 2px;
  text-align: center;
  min-width: 0;
}

.app-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
  display: block;
  text-decoration: none;
}

.app-card:hover .app-card-title {
  color: var(--color-primary);
}

.app-card-version {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ===================================================
   6. PAGINATION
=================================================== */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.page-num {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.page-num:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.page-num.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 199, 149, 0.4);
}

/* ===================================================
   7. BLOG SECTION (EXACT 2-COLUMN GRID LIKE IMAGE 1)
=================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-bottom: 2px solid var(--color-primary);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.blog-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.blog-thumb {
  width: 90px;
  height: 90px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #1e2634;
}

.blog-info {
  flex-grow: 1;
  min-width: 0;
}

.blog-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card:hover .blog-title {
  color: var(--color-primary);
}

.blog-date {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.blog-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-view-more {
  display: inline-block;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 0.65rem 2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 1.75rem auto 0;
  box-shadow: 0 4px 15px rgba(0, 199, 149, 0.4);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.btn-view-more:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
}

/* ===================================================
   8. DETAIL PAGE (IMAGE 2 & IMAGE 3)
=================================================== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 1.5rem;
  padding-bottom: 3.5rem;
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

.detail-main-col {
  min-width: 0;
}

/* 1. App Info Header Card (Image 1) */
.detail-app-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .detail-app-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.detail-left-col {
  width: 135px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-icon-wrap {
  position: relative;
  width: 135px;
  height: 135px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.detail-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.detail-icon-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  padding: 3px 0;
  font-family: var(--font-mono);
}

.btn-quick-download {
  margin-top: 12px;
  width: 100%;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all var(--transition-fast);
  box-shadow: 0 3px 10px rgba(0, 199, 149, 0.35);
}

.btn-quick-download:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.rating-votes-wrap {
  margin-top: 10px;
  text-align: center;
  width: 100%;
}

.stars-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.85rem;
}

.stars-gold {
  color: #f59e0b;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.score-num {
  font-weight: 700;
  color: var(--text-main);
}

.score-denom {
  color: #64748b;
  font-size: 0.75rem;
}

.votes-num {
  color: #64748b;
  font-size: 0.75rem;
  margin-top: 3px;
}

.report-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #64748b;
  font-size: 0.75rem;
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.15s;
}

.report-link:hover {
  color: #ef4444;
}

.detail-right-col {
  flex-grow: 1;
  min-width: 0;
}

.app-breadcrumb {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 6px;
}

.app-breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
}

.app-breadcrumb a:hover {
  color: var(--color-primary);
}

.app-title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.app-version-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 10px;
}

.app-cat-badge {
  display: inline-block;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.app-excerpt {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.app-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
  max-width: 440px;
}

.spec-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.social-share-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #1a222e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.share-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
  background-color: #222c3c;
}

/* 2. Detail Section Cards (Description, Download, Related) */
.detail-section-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.section-accent-title {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.section-accent-line {
  width: 32px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  margin-bottom: 16px;
}

.description-body {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.description-body p {
  margin-bottom: 1rem;
}

.desc-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.25rem 0 0.5rem;
}

.green-link {
  color: var(--color-primary);
  text-decoration: none;
}

.green-link:hover {
  text-decoration: underline;
}

.highlight-date {
  color: #e67e22;
  font-weight: 700;
}

.desc-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  margin: 1.25rem 0;
}

.desc-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.features-list {
  padding-left: 1.25rem;
  line-height: 1.8;
  margin-top: 0.5rem;
}

/* Authentic Appyn / WordPress Rich Article Content in Version Download Page */
.version-article-content {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.version-article-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.75rem 0 0.85rem;
  line-height: 1.4;
  border-left: 3.5px solid var(--color-primary);
  padding-left: 12px;
}

.version-article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.35rem 0 0.65rem;
}

.version-article-content p {
  margin-bottom: 1.1rem;
}

.version-article-content ul, .version-article-content ol {
  margin: 0.85rem 0 1.25rem 1.6rem;
  color: var(--text-muted);
}

.version-article-content li {
  margin-bottom: 0.45rem;
}

.version-article-content figure.wp-caption {
  margin: 1.75rem auto;
  text-align: center;
  max-width: 100%;
}

.version-article-content figure.wp-caption img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.version-article-content figcaption.wp-caption-text {
  font-size: 0.84rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 8px;
  text-align: center;
}

.version-article-content blockquote {
  border-left: 4px solid var(--color-primary);
  background: var(--bg-surface);
  padding: 14px 20px;
  border-radius: 0 6px 6px 0;
  margin: 1.6rem 0;
  font-size: 0.92rem;
  color: var(--text-main);
  font-style: italic;
}

/* Download Button Matching Image 3 */
.btn-download-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 199, 149, 0.35);
}

.btn-download-pill:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
}

.install-guide-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
}

.guide-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.guide-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guide-steps a {
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.guide-steps a:hover {
  text-decoration: underline;
  color: var(--color-primary-hover);
}

/* 3. Related Apps Grid (Image 3) - Fixed layout to prevent overflow */
.related-apps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .related-apps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .related-apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.related-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.15s;
}

.related-app-item:hover {
  transform: translateY(-2px);
}

.related-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  background-color: var(--bg-surface);
}

.related-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.related-thumb-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(3px);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  padding: 3px 2px;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-item-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  text-align: center;
}

.related-item-version {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin: 2px 0;
  text-align: center;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 4. Sidebar: MOST VIEWED APPS (Image 1) */
.detail-sidebar {
  min-width: 0;
  width: 100%;
}

.sidebar-sticky {
  position: sticky;
  top: 5rem;
}

.sidebar-static {
  position: static;
}

.sidebar-heading-clean {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.most-viewed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.most-viewed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.15s;
}

.most-viewed-item:hover {
  background-color: var(--bg-card-hover);
}

/* ===================================================
   9. WORDPRESS / BLOG ENTRY CONTENT TYPOGRAPHY
=================================================== */
.entry-content {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
}

.entry-content h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 2rem 0 1rem;
  line-height: 1.35;
  border-left: 4px solid var(--color-primary);
  padding-left: 12px;
}

.entry-content h2 {
  font-size: 1.45rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 1.75rem 0 0.85rem;
  line-height: 1.4;
  border-left: 3px solid var(--color-primary);
  padding-left: 10px;
}

.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.5rem 0 0.75rem;
  line-height: 1.4;
}

.entry-content h4 {
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--text-main);
  margin: 1.25rem 0 0.5rem;
}

.entry-content h5 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 1rem 0 0.4rem;
}

.entry-content h6 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  margin: 0.85rem 0 0.35rem;
  text-transform: uppercase;
}

.entry-content strong,
.entry-content b {
  font-weight: 700;
  color: var(--text-main);
}

.entry-content p {
  margin-bottom: 1.25rem;
}

.entry-content strong,
.entry-content b {
  font-weight: 700;
  color: #ffffff;
}

.entry-content em,
.entry-content i {
  font-style: italic;
}

.entry-content u {
  text-decoration: underline;
}

.entry-content del,
.entry-content s {
  text-decoration: line-through;
  opacity: 0.75;
}

.entry-content .uppercase-text {
  text-transform: uppercase;
}

.entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
  transition: opacity var(--transition-fast);
}

.entry-content a:hover {
  color: var(--color-primary-hover);
  opacity: 0.9;
}

.entry-content blockquote {
  background: rgba(0, 199, 149, 0.08);
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #e2e8f0;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

/* WordPress Media / Figures with Captions */
.entry-content figure.wp-caption,
.entry-content .wp-caption {
  margin: 1.75rem auto;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px;
  box-sizing: border-box;
  text-align: center;
}

.entry-content figure.wp-caption img,
.entry-content .wp-caption img {
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.entry-content figcaption.wp-caption-text,
.entry-content .wp-caption-text {
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
  margin-top: 8px;
  padding: 4px 8px;
}

.entry-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.entry-content .alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
  max-width: 50%;
}

@media (max-width: 600px) {
  .entry-content .alignleft {
    float: none;
    margin: 1rem auto;
    max-width: 100%;
  }
}

.entry-content .alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
  max-width: 50%;
}

@media (max-width: 600px) {
  .entry-content .alignright {
    float: none;
    margin: 1rem auto;
    max-width: 100%;
  }
}

.entry-content .clear {
  clear: both;
}

.most-viewed-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.most-viewed-info {
  flex-grow: 1;
  min-width: 0;
}

.most-viewed-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
}

.most-viewed-version {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

/* Floating Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 199, 149, 0.5);
  transition: all var(--transition-fast);
  z-index: 99;
  border: none;
  text-decoration: none;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background-color: var(--color-primary-hover);
}

/* ===================================================
   9. CATALOG & ARCHIVE COMPONENTS
=================================================== */
.filter-pill {
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  user-select: none;
}

.filter-pill:hover {
  color: var(--text-main);
  border-color: var(--color-primary);
}

.filter-pill.active {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 4px 12px rgba(0, 199, 149, 0.35);
}

.blog-archive-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}


/* ===================================================
   10. SIGNATURE MINECRAFT FOOTER (Harmonized Modern Dark UI)
=================================================== */
.site-footer-custom {
  margin-top: 3.5rem;
  background: linear-gradient(180deg, #131b26 0%, #0d1219 100%);
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(0, 199, 149, 0.25);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .site-footer-custom {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  border-top: 1px solid rgba(0, 199, 149, 0.35);
  color: #475569;
}

.footer-custom-top {
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
  max-width: 950px;
  margin: 0 auto;
}

.footer-custom-intro {
  line-height: 1.85;
  font-size: 0.94rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

[data-theme="light"] .footer-custom-intro {
  color: #64748b;
}

.footer-custom-intro strong {
  color: #f8fafc;
  font-weight: 700;
}

[data-theme="light"] .footer-custom-intro strong {
  color: #0f172a;
}

.footer-custom-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-custom-nav a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
  display: inline-block;
}

[data-theme="light"] .footer-custom-nav a {
  color: #334155;
}

.footer-custom-nav a:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}

.footer-custom-nav .footer-sep {
  color: #334155;
  font-weight: 300;
  user-select: none;
}

[data-theme="light"] .footer-custom-nav .footer-sep {
  color: #cbd5e1;
}

.footer-custom-bottom {
  background: #090d13;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  letter-spacing: 0.3px;
}

[data-theme="light"] .footer-custom-bottom {
  background: #cbd5e1;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: #64748b;
}

/* Header trên điện thoại: logo + menu một hàng, nút ngôn ngữ & sáng/tối xuống hàng dưới (không tràn ngang) */
@media (max-width: 640px) {
  .navbar > .container {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }
  .nav-brand img {
    height: 28px;
  }
  .nav-links {
    gap: 0.15rem;
  }
  .nav-link {
    padding: 0.3rem 0.5rem;
    font-size: 0.88rem;
  }
  .nav-controls {
    width: 100%;
    justify-content: flex-end;
  }
}
@media (max-width: 380px) {
  .nav-brand img {
    height: 22px;
  }
  .nav-link {
    padding: 0.3rem 0.4rem;
    font-size: 0.82rem;
  }
}

/* Bộ lọc chuyên mục trang Bài Viết */
.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.blog-filter-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 0;
}
