/* AppHub — inner pages (archives, single app, blog) */

.page-inner {
  padding-bottom: 3rem;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
}

html.dark .page-header h1 {
  color: #f1f5f9;
}

.page-header p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

html.dark .page-header p {
  color: #94a3b8;
}

.breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  color: #6b7280;
}

.breadcrumbs a {
  color: var(--emerald, #10b981);
}

.breadcrumbs .current {
  color: #374151;
}

html.dark .breadcrumbs .current {
  color: #cbd5e1;
}

/* Pagination */
.nav-links,
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.nav-links a,
.nav-links span,
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.65rem;
  background: rgb(255 255 255 / 0.7);
  border: 1px solid rgb(0 0 0 / 0.06);
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
}

html.dark .nav-links a,
html.dark .pagination a {
  background: rgb(30 41 59 / 0.5);
  border-color: rgb(255 255 255 / 0.08);
}

.nav-links .current,
.pagination .current {
  background: var(--emerald, #10b981);
  color: #fff;
  border-color: transparent;
}

/* Single app */
.app-single-hero {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.45));
  border: 2px solid rgb(255 255 255 / 0.6);
  margin-bottom: 1.5rem;
}

html.dark .app-single-hero {
  background: linear-gradient(135deg, rgb(30 41 59 / 0.6), rgb(30 41 59 / 0.3));
  border-color: rgb(255 255 255 / 0.08);
}

@media (min-width: 768px) {
  .app-single-hero {
    grid-template-columns: auto 1fr;
    align-items: start;
    padding: 2rem;
  }
}

.app-single-hero__icon img,
.app-single-hero__icon .app-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 1.25rem;
  object-fit: cover;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
}

@media (min-width: 768px) {
  .app-single-hero__icon img,
  .app-single-hero__icon .app-icon {
    width: 7.5rem;
    height: 7.5rem;
  }
}

.app-single-hero h1 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
}

.app-single-hero .app-developer {
  margin: 0 0 0.75rem;
  color: #6b7280;
  font-size: 0.95rem;
}

.app-single-hero .app-rating {
  margin: 0 0 1rem;
  color: #f59e0b;
  font-weight: 600;
}

.app-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.app-specs-grid dt {
  color: #6b7280;
  font-weight: 500;
}

.app-specs-grid dd {
  margin: 0;
  font-weight: 600;
}

.app-specs-grid code {
  font-size: 0.8rem;
  word-break: break-all;
}

.btn-download-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff !important;
  background: var(--emerald, #10b981);
  box-shadow: 0 8px 20px rgb(16 185 129 / 0.35);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgb(16 185 129 / 0.45);
  color: #fff !important;
}

.app-content-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .app-content-layout {
    grid-template-columns: 1fr 280px;
  }
}

.glass-panel {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.75), rgb(255 255 255 / 0.4));
  border: 2px solid rgb(255 255 255 / 0.55);
}

html.dark .glass-panel {
  background: linear-gradient(135deg, rgb(30 41 59 / 0.55), rgb(30 41 59 / 0.25));
  border-color: rgb(255 255 255 / 0.06);
}

.glass-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.content-body {
  line-height: 1.7;
  color: #374151;
}

html.dark .content-body {
  color: #cbd5e1;
}

.content-body img {
  border-radius: 0.75rem;
}

.sidebar-box {
  margin-bottom: 1.25rem;
}

.sidebar-box h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.sidebar-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-box li {
  margin-bottom: 0.35rem;
}

.sidebar-box a {
  color: var(--emerald, #10b981);
}

.notice-inline {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgb(245 158 11 / 0.15);
  color: #92400e;
  font-size: 0.9rem;
}

/* Blog */
.grid-blog {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .grid-blog {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-blog {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card-blog {
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.75), rgb(255 255 255 / 0.4));
  border: 2px solid rgb(255 255 255 / 0.55);
  transition: transform 0.25s, border-color 0.25s;
}

html.dark .post-card-blog {
  background: linear-gradient(135deg, rgb(30 41 59 / 0.55), rgb(30 41 59 / 0.25));
  border-color: rgb(255 255 255 / 0.06);
}

.post-card-blog:hover {
  transform: translateY(-3px);
  border-color: var(--emerald, #10b981);
}

.post-card-blog__thumb {
  height: 10rem;
  overflow: hidden;
}

.post-card-blog__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-blog__body {
  padding: 1rem 1.15rem 1.25rem;
}

.post-card-blog__body time {
  font-size: 0.75rem;
  color: #6b7280;
}

.post-card-blog__body h2 {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.single-post-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.single-post-wrap .glass-panel {
  margin-bottom: 1.5rem;
}

.single-post-wrap h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.post-meta-line {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1.25rem;
}

.ad-slot {
  margin: 1rem 0;
  text-align: center;
  min-height: 0;
}

.ad-slot:empty {
  display: none;
}

.empty-home {
  text-align: center;
  padding: 3rem 1.5rem !important;
}

.empty-home .btn-primary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.apkgo-logo__img {
  height: 2.5rem;
  width: auto;
  max-width: 160px;
}
