/* Zero to Creator — main theme styles */

.ztc-container { max-width: var(--ztc-max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .ztc-container { padding: 0 32px; } }

.font-display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

.ztc-gradient-text {
  background: var(--ztc-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ztc-gradient-bg { background: var(--ztc-grad); }

.ztc-muted  { color: var(--ztc-muted); }
.ztc-surface{ background-color: var(--ztc-surface); }

/* Grain overlay */
.ztc-grain::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,107,53,0.4); }
html.ztc-light ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); }

/* ============================ NAVBAR ============================ */
.ztc-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.ztc-navbar.is-scrolled {
  background: color-mix(in srgb, var(--ztc-bg) 80%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ztc-border);
}
.ztc-nav-inner {
  max-width: var(--ztc-max); margin: 0 auto;
  height: 64px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 640px) { .ztc-nav-inner { padding: 0 32px; } }

.ztc-icon-btn {
  background: transparent; border: 0; color: inherit;
  padding: 8px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.ztc-icon-btn:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); }
html.ztc-light .ztc-icon-btn:hover { background: rgba(0,0,0,0.05); }

.ztc-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em;
}
@media (min-width: 640px) { .ztc-logo { font-size: 1.5rem; } }

/* ============================ HERO ============================ */
.ztc-hero {
  position: relative; overflow: hidden;
  padding: 128px 0 80px;
  text-align: center;
}
@media (min-width: 640px) { .ztc-hero { padding: 160px 0 112px; } }

.ztc-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(255, 60, 120, 0.18), transparent 70%),
    radial-gradient(40% 40% at 80% 60%, rgba(124, 58, 237, 0.18), transparent 70%),
    radial-gradient(40% 40% at 20% 70%, rgba(249, 196, 26, 0.10), transparent 70%);
  filter: blur(10px); z-index: 0;
}
html.ztc-light .ztc-hero-glow {
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(255, 60, 120, 0.10), transparent 70%),
    radial-gradient(40% 40% at 80% 60%, rgba(124, 58, 237, 0.08), transparent 70%),
    radial-gradient(40% 40% at 20% 70%, rgba(249, 196, 26, 0.10), transparent 70%);
}

.ztc-hero-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; padding: 0 24px; }
.ztc-eyebrow {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--ztc-muted);
}
.ztc-hero h1 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.02;
  margin: 24px 0 0; letter-spacing: -0.02em;
}
.ztc-hero p {
  margin: 28px auto 0; max-width: 640px; color: var(--ztc-muted);
  font-size: 1.05rem; line-height: 1.65;
}
.ztc-hero-cta { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.ztc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: var(--ztc-radius-pill);
  font-weight: 500; font-size: 0.9rem; cursor: pointer; border: 0;
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.ztc-btn-primary { background: #fff; color: #0a0a0b; }
.ztc-btn-primary:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }
.ztc-btn-ghost {
  background: transparent; color: var(--ztc-text);
  border: 1px solid var(--ztc-border);
}
.ztc-btn-ghost:hover { background: rgba(255,255,255,0.05); }
html.ztc-light .ztc-btn-primary { background: #0a0a0b; color: #fff; }
html.ztc-light .ztc-btn-ghost:hover { background: rgba(0,0,0,0.05); }

/* Entrance animation */
@keyframes ztc-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ztc-fade-up { animation: ztc-fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.ztc-d1 { animation-delay: 0.15s; }
.ztc-d2 { animation-delay: 0.30s; }
.ztc-d3 { animation-delay: 0.45s; }

/* ============================ BLOG GRID ============================ */
.ztc-section { max-width: var(--ztc-max); margin: 0 auto; padding: 48px 20px; }
@media (min-width: 640px) { .ztc-section { padding: 64px 32px; } }

.ztc-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px; gap: 16px; flex-wrap: wrap;
}
.ztc-section-head .ztc-eyebrow { font-size: 0.7rem; letter-spacing: 0.22em; }
.ztc-section-title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin: 8px 0 0; line-height: 1.1;
}

.ztc-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 540px) { .ztc-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 768px) { .ztc-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.ztc-grid + .ztc-grid { margin-top: 20px; }

/* All cards are regular — no featured special sizing */

.ztc-card {
  position: relative; background-color: var(--ztc-card);
  border: 1px solid var(--ztc-border); border-radius: 22px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.3s ease, box-shadow 0.35s ease, border-color 0.3s ease;
}
.ztc-card:hover {
  background-color: var(--ztc-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(255, 60, 120, 0.25),
              0 8px 24px -12px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 107, 53, 0.35);
}

.ztc-card-media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 10; background: #1a1a1f;
}
.ztc-card-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center center;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ztc-card:hover .ztc-card-media img { transform: scale(1.04); }
.ztc-card-media::after { display: none; }

.ztc-card-cat {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  background: #fff; color: #0a0a0b;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 8px 16px;
  border-radius: var(--ztc-radius-pill);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.ztc-card-body {
  padding: 22px 22px 20px;
  display: flex; flex-direction: column;
  flex: 1;
}
@media (min-width: 640px) { .ztc-card-body { padding: 26px 26px 22px; } }

.ztc-meta {
  display: flex; gap: 24px; font-size: 0.82rem;
  color: var(--ztc-muted); margin-bottom: 14px;
}
.ztc-meta-item { display: inline-flex; align-items: center; gap: 8px; }
.ztc-meta-item svg { opacity: 0.85; }

.ztc-card-title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  margin: 0; letter-spacing: -0.01em;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.22;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ztc-card-title a {
  color: var(--ztc-text);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 0.4s ease;
}
.ztc-card:hover .ztc-card-title a { background-size: 100% 1px; }

.ztc-card-excerpt {
  margin: 12px 0 0; color: var(--ztc-muted);
  font-size: 0.95rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.ztc-card-foot {
  margin-top: 22px; padding-top: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; font-size: 0.85rem;
}
.ztc-card-foot .ztc-author {
  color: var(--ztc-muted); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ztc-card-foot .ztc-read {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ztc-text); font-weight: 600;
  transition: gap 0.25s ease, color 0.25s ease;
}
.ztc-card-foot .ztc-read svg { transition: transform 0.3s ease; }
.ztc-card:hover .ztc-card-foot .ztc-read { gap: 10px; }
.ztc-card:hover .ztc-card-foot .ztc-read svg { transform: translate(2px, -2px); }
.ztc-card-foot .ztc-read:hover { color: #ff6b35; }

/* ============================ SIDEBAR DRAWER ============================ */
.ztc-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 40;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.ztc-backdrop.is-open { opacity: 1; pointer-events: auto; }

.ztc-drawer {
  position: fixed; top: 0; left: 0; height: 100%; width: 88%; max-width: 420px;
  background: var(--ztc-surface); border-right: 1px solid var(--ztc-border);
  z-index: 50; transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex; flex-direction: column;
}
.ztc-drawer.is-open { transform: translateX(0); }
.ztc-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px; border-bottom: 1px solid var(--ztc-border);
}
.ztc-drawer-body { padding: 20px 24px 32px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; }
.ztc-drawer-yt {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: var(--ztc-radius-pill);
  font-size: 0.95rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #ff0033 0%, #ff3478 100%);
  border: 0;
  box-shadow: 0 10px 24px -10px rgba(255, 0, 51, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ztc-drawer-yt:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(255, 0, 51, 0.75);
  color: #fff;
}
.ztc-drawer-yt svg { fill: #fff !important; }
html.ztc-light .ztc-drawer-yt { background: linear-gradient(135deg, #ff0033 0%, #ff3478 100%); }
html.ztc-light .ztc-drawer-yt:hover { background: linear-gradient(135deg, #ff0033 0%, #ff3478 100%); }

.ztc-drawer-section { margin-top: 28px; }
.ztc-drawer-body > .ztc-drawer-section:first-of-type { margin-top: 4px; }
.ztc-drawer-section h4 {
  font-size: 0.7rem; letter-spacing: 0.2em; color: var(--ztc-muted);
  font-weight: 600; margin: 0 0 16px; text-transform: uppercase;
}
.ztc-drawer-section ul { list-style: none; padding: 0; margin: 0; }
.ztc-drawer-section li { margin-bottom: 12px; }
.ztc-drawer-section a {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem;
  transition: opacity 0.2s ease;
}
.ztc-drawer-section a:hover { background: var(--ztc-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.ztc-drawer-foot { margin-top: auto; padding-top: 28px; display: flex; align-items: center; justify-content: flex-end; }
.ztc-drawer-follow .ztc-social { margin-top: 4px; }
.ztc-social { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ztc-social a, .ztc-social-icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ztc-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ztc-border);
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
html.ztc-light .ztc-social-icon { background: rgba(0,0,0,0.03); }
.ztc-social a:hover, .ztc-social-icon:hover {
  transform: translateY(-3px);
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 18px -8px rgba(0,0,0,0.4);
}
.ztc-social-youtube:hover   { background: #ff0033; }
.ztc-social-instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.ztc-social-facebook:hover  { background: #1877f2; }
.ztc-social-twitter:hover   { background: #000;     border-color: #fff !important; }
.ztc-social-linkedin:hover  { background: #0a66c2; }
.ztc-social-telegram:hover  { background: #229ED9; }
.ztc-social-github:hover    { background: #24292f;  border-color: #fff !important; }

.ztc-theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--ztc-radius-pill);
  background: var(--ztc-surface); border: 1px solid var(--ztc-border);
  cursor: pointer; color: inherit;
}
.ztc-theme-toggle .ztc-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.1); display: inline-block; }
html.ztc-light .ztc-theme-toggle .ztc-sep { background: rgba(0,0,0,0.1); }

/* ============================ SEARCH OVERLAY ============================ */
.ztc-search-overlay {
  position: fixed; inset: 0; z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.ztc-search-overlay.is-open { opacity: 1; pointer-events: auto; }
.ztc-search-overlay::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ztc-search-panel {
  position: relative; max-width: 640px; margin: 96px auto 0; padding: 0 20px;
}
.ztc-search-box {
  background: var(--ztc-surface); border: 1px solid var(--ztc-border);
  border-radius: var(--ztc-radius); overflow: hidden;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.5);
}
.ztc-search-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--ztc-border);
}
.ztc-search-input-row input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--ztc-text); font-size: 1rem; font-family: inherit;
}
.ztc-search-input-row input::placeholder { color: var(--ztc-muted); }

/* ============================ SINGLE POST ============================ */
.ztc-single {
  padding-top: 72px; padding-bottom: 64px;
}
@media (min-width: 640px) { .ztc-single { padding-top: 88px; } }
.ztc-single-head { max-width: 768px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .ztc-single-head { padding: 0 32px; } }

/* Back + category row — always on one line */
.ztc-single-nav {
  display: flex; align-items: center; gap: 12px; flex-wrap: nowrap;
  margin-bottom: 24px;
}

.ztc-back-link {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 0.875rem; color: var(--ztc-muted);
  text-decoration: none;
}
.ztc-back-link:hover { color: var(--ztc-text); }

.ztc-single-cat {
  display: inline-flex; align-items: center; padding: 5px 14px;
  background: transparent; color: var(--ztc-text);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; border-radius: var(--ztc-radius-pill);
  border: 1.5px solid rgba(255,255,255,0.22);
  text-decoration: none; white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.ztc-single-cat:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.4);
}
html.ztc-light .ztc-single-cat {
  border-color: rgba(0,0,0,0.2); color: #111;
}
html.ztc-light .ztc-single-cat:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.4);
}

.ztc-single-title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1.1;
  margin: 16px 0 0; letter-spacing: -0.02em;
}

.ztc-single-meta {
  margin-top: 24px; display: flex; flex-wrap: wrap; gap: 20px;
  font-size: 0.875rem; color: var(--ztc-muted);
}

.ztc-single-actions { margin-top: 32px; display: flex; gap: 12px; }
.ztc-pill-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--ztc-radius-pill);
  border: 1px solid var(--ztc-border); background: transparent;
  color: inherit; font-size: 0.875rem; cursor: pointer; font-family: inherit;
}
.ztc-pill-btn:hover { background: rgba(255,255,255,0.05); }
html.ztc-light .ztc-pill-btn:hover { background: rgba(0,0,0,0.04); }

.ztc-single-media {
  max-width: 960px; margin: 40px auto 0; padding: 0 20px;
}
@media (min-width: 640px) { .ztc-single-media { padding: 0 32px; } }
.ztc-single-media .ztc-media-wrap {
  border-radius: var(--ztc-radius); overflow: hidden; border: 1px solid var(--ztc-border);
}
.ztc-single-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.ztc-single-content {
  max-width: 768px; margin: 48px auto 0; padding: 0 20px;
  font-size: 1.0625rem; line-height: 1.75;
}
@media (min-width: 640px) { .ztc-single-content { padding: 0 32px; } }
.ztc-single-content h2 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 1.875rem); margin: 40px 0 16px; line-height: 1.2;
}
.ztc-single-content h3 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 1.375rem; margin: 32px 0 12px;
}
.ztc-single-content p  { margin: 0 0 1.25em; }
.ztc-single-content ul, .ztc-single-content ol { padding-left: 1.5em; margin: 0 0 1.25em; }
.ztc-single-content li { margin-bottom: 8px; }
.ztc-single-content blockquote {
  margin: 24px 0; padding: 24px; border-left: 3px solid #ff3478;
  background: var(--ztc-surface); border-radius: 0 var(--ztc-radius-sm) var(--ztc-radius-sm) 0;
  font-style: italic; color: var(--ztc-muted);
}
.ztc-single-content a { color: #ff6b35; text-decoration: underline; text-underline-offset: 3px; }
.ztc-single-content img { border-radius: var(--ztc-radius-sm); margin: 24px 0; }
.ztc-single-content code {
  background: var(--ztc-surface); padding: 2px 6px; border-radius: 4px;
  font-size: 0.875em; border: 1px solid var(--ztc-border);
}
.ztc-single-content pre {
  background: var(--ztc-surface); padding: 16px; border-radius: var(--ztc-radius-sm);
  overflow-x: auto; border: 1px solid var(--ztc-border);
}

/* ============================ FOOTER ============================ */
.ztc-footer {
  position: relative; border-top: 1px solid var(--ztc-border); margin-top: 64px;
}
.ztc-footer-inner { max-width: var(--ztc-max); margin: 0 auto; padding: 32px 20px; }
@media (min-width: 640px) { .ztc-footer-inner { padding: 36px 32px; } }

/* Compact merged 3-column layout */
.ztc-footer-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 768px) {
  .ztc-footer-compact {
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 32px;
    align-items: center;
  }
}
.ztc-footer-col { min-width: 0; }
.ztc-footer-logo { font-size: 1.25rem; line-height: 1; }
.ztc-footer-desc {
  color: var(--ztc-muted); line-height: 1.5; margin: 10px 0 14px;
  font-size: 0.875rem; max-width: 420px;
}
.ztc-footer-socials .ztc-social { gap: 10px; }
.ztc-footer-socials .ztc-social a,
.ztc-footer-socials .ztc-social-icon { width: 34px; height: 34px; }

.ztc-footer-links { justify-self: start; }
@media (min-width: 768px) { .ztc-footer-links { justify-self: center; } }

.ztc-footer-copy { justify-self: start; }
@media (min-width: 768px) { .ztc-footer-copy { justify-self: end; text-align: right; } }
.ztc-footer-copy p {
  margin: 0; font-size: 0.75rem; color: var(--ztc-muted); line-height: 1.5;
}
.ztc-footer-copy p + p { margin-top: 4px; }
.ztc-footer-tagline { opacity: 0.85; }

.ztc-footer-widgets { grid-column: 1 / -1; margin-top: 8px; }


/* ============================ SCROLL TO TOP ============================ */
.ztc-scroll-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 30;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ztc-surface); border: 1px solid var(--ztc-border);
  display: grid; place-items: center; cursor: pointer; color: inherit;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}
.ztc-scroll-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ztc-scroll-top:hover { transform: scale(1.1); }

/* ============================ PAGINATION ============================ */
.ztc-pagination {
  margin: 48px auto 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.ztc-pagination .page-numbers,
.ztc-pagination a, .ztc-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 14px;
  border: 1px solid var(--ztc-border); border-radius: var(--ztc-radius-pill);
  font-size: 0.875rem; color: var(--ztc-text); background: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.ztc-pagination .page-numbers.current,
.ztc-pagination .current { background: var(--ztc-grad); color: #fff; border-color: transparent; font-weight: 600; }
.ztc-pagination a:hover { background: rgba(255,255,255,0.05); border-color: rgba(255, 107, 53, 0.4); }
html.ztc-light .ztc-pagination a:hover { background: rgba(0,0,0,0.04); }

/* ============================ COMMENTS ============================ */
.ztc-comments {
  max-width: 768px; margin: 64px auto 0; padding: 0 20px;
}
@media (min-width: 640px) { .ztc-comments { padding: 0 32px; } }
.ztc-comments h2 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 1.5rem; margin: 0 0 24px;
}
.ztc-comments .commentlist, .ztc-comments ol.comment-list { list-style: none; padding: 0; }
.ztc-comments .comment-body {
  padding: 20px; border: 1px solid var(--ztc-border); border-radius: var(--ztc-radius);
  background: var(--ztc-surface); margin-bottom: 16px;
}
.ztc-comments .comment-author { font-weight: 600; }
.ztc-comments .comment-meta { font-size: 0.8rem; color: var(--ztc-muted); margin-top: 4px; }
.ztc-comments textarea, .ztc-comments input[type="text"],
.ztc-comments input[type="email"], .ztc-comments input[type="url"] {
  width: 100%; padding: 12px 16px;
  background: var(--ztc-surface); border: 1px solid var(--ztc-border);
  border-radius: var(--ztc-radius-sm); color: var(--ztc-text); font-family: inherit; font-size: 0.95rem;
  margin-top: 6px;
}
.ztc-comments label { display: block; margin-bottom: 16px; font-size: 0.875rem; color: var(--ztc-muted); }
.ztc-comments .submit, .ztc-comments [type="submit"] {
  background: var(--ztc-grad); color: #fff; border: 0;
  padding: 12px 28px; border-radius: var(--ztc-radius-pill);
  font-weight: 600; cursor: pointer; font-family: inherit;
}

/* ============================ 404 / NO RESULTS ============================ */
.ztc-empty { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 96px 24px 64px; }
.ztc-empty h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 5vw, 3rem); margin: 0; }
.ztc-empty p { color: var(--ztc-muted); margin-top: 16px; }
.ztc-empty .ztc-btn { margin-top: 32px; }

/* ============================ MAIN BODY OFFSET ============================ */
.ztc-main { padding-top: 0; }

/* WP block adjustments */
.wp-block-quote, blockquote {
  border-left: 3px solid #ff3478; padding-left: 20px; margin: 24px 0;
  color: var(--ztc-muted); font-style: italic;
}
.wp-block-image figcaption { font-size: 0.85em; color: var(--ztc-muted); text-align: center; }

/* ============================ COLOURFUL POST BUTTONS ============================ */
/* Applies to the default Gutenberg "Button" block + classic <button>/.button in post content */
.ztc-single-content .wp-block-button { margin: 28px 0; }
.ztc-single-content .wp-block-buttons { gap: 12px; margin: 28px 0; display: flex; flex-wrap: wrap; }

.ztc-single-content .wp-block-button__link,
.ztc-single-content a.button,
.ztc-single-content button:not(.ztc-icon-btn):not(.ztc-pill-btn):not([type="submit"].submit) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  border-radius: var(--ztc-radius-pill);
  border: 0; cursor: pointer; text-decoration: none !important;
  color: #fff !important;
  background: var(--ztc-grad);
  background-size: 200% 100%;
  background-position: 0% 50%;
  box-shadow: 0 10px 24px -10px rgba(255, 60, 120, 0.55);
  transition: background-position 0.45s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.ztc-single-content .wp-block-button__link:hover,
.ztc-single-content a.button:hover,
.ztc-single-content button:not(.ztc-icon-btn):not(.ztc-pill-btn):not([type="submit"].submit):hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(255, 60, 120, 0.7);
  color: #fff !important;
}

/* Outline variant (when post selects the "outline" button style in Gutenberg) */
.ztc-single-content .is-style-outline > .wp-block-button__link,
.ztc-btn-style-outline .ztc-single-content .wp-block-button__link {
  background: transparent !important;
  color: var(--ztc-text) !important;
  border: 2px solid transparent !important;
  background-image: linear-gradient(var(--ztc-card), var(--ztc-card)), var(--ztc-grad) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  box-shadow: none;
}
.ztc-single-content .is-style-outline > .wp-block-button__link:hover,
.ztc-btn-style-outline .ztc-single-content .wp-block-button__link:hover {
  background-image: var(--ztc-grad), var(--ztc-grad) !important;
  color: #fff !important;
}

/* Solid pink variant via Customizer */
.ztc-btn-style-solid .ztc-single-content .wp-block-button__link,
.ztc-btn-style-solid .ztc-single-content a.button {
  background: #ff3478 !important;
  box-shadow: 0 10px 24px -10px rgba(255, 52, 120, 0.65);
}

/* ============================ FOOTER PAGES ROW ============================ */
.ztc-footer-pages {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
}
.ztc-footer-pages a {
  color: var(--ztc-muted); font-size: 0.875rem;
  position: relative; padding: 4px 0;
  transition: color 0.2s ease;
}
.ztc-footer-pages a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--ztc-grad); transition: right 0.3s ease;
}
.ztc-footer-pages a:hover { color: var(--ztc-text); }
.ztc-footer-pages a:hover::after { right: 0; }

/* ============================ APK DOWNLOADER ============================ */
.ztc-apk-hero {
  position: relative; overflow: hidden;
  padding: 128px 20px 56px; text-align: center;
}
@media (min-width: 640px) { .ztc-apk-hero { padding: 160px 32px 72px; } }
.ztc-apk-hero-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(50% 50% at 50% 30%, rgba(124, 58, 237, 0.20), transparent 70%),
    radial-gradient(40% 40% at 80% 60%, rgba(255, 52, 120, 0.16), transparent 70%),
    radial-gradient(40% 40% at 20% 70%, rgba(249, 196, 26, 0.10), transparent 70%);
  filter: blur(8px);
}
html.ztc-light .ztc-apk-hero-glow {
  background:
    radial-gradient(50% 50% at 50% 30%, rgba(124, 58, 237, 0.10), transparent 70%),
    radial-gradient(40% 40% at 80% 60%, rgba(255, 52, 120, 0.08), transparent 70%),
    radial-gradient(40% 40% at 20% 70%, rgba(249, 196, 26, 0.10), transparent 70%);
}
.ztc-apk-hero-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.ztc-apk-hero h1 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem); margin: 16px 0 0; line-height: 1.05;
  letter-spacing: -0.02em;
}
.ztc-apk-hero-sub {
  margin: 20px auto 0; max-width: 600px; color: var(--ztc-muted);
  font-size: 1.02rem; line-height: 1.6;
}

.ztc-apk-section { padding-top: 16px; }

.ztc-apk-admin-banner {
  margin-bottom: 24px; padding: 12px 16px;
  border: 1px dashed rgba(249, 196, 26, 0.55);
  background: rgba(249, 196, 26, 0.08);
  color: var(--ztc-text);
  border-radius: var(--ztc-radius-sm);
  font-size: 0.9rem;
}

.ztc-apk-wrap { width: 100%; }
.ztc-apk-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .ztc-apk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ztc-apk-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.ztc-apk-card {
  position: relative;
  background: var(--ztc-card);
  border: 1px solid var(--ztc-border);
  border-radius: 22px;
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.3s ease, background-color 0.3s ease,
              box-shadow 0.35s ease;
}
.ztc-apk-card:hover {
  transform: translateY(-4px);
  background: var(--ztc-card-hover);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 20px 40px -22px rgba(124, 58, 237, 0.45),
              0 8px 24px -12px rgba(0,0,0,0.5);
}

.ztc-apk-card-head { display: flex; align-items: flex-start; gap: 16px; }
.ztc-apk-icon {
  flex: 0 0 64px; width: 64px; height: 64px;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(255,52,120,0.25));
  border: 1px solid var(--ztc-border);
  display: grid; place-items: center;
  color: var(--ztc-muted);
}
.ztc-apk-icon img.ztc-apk-icon-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ztc-apk-icon-fallback { display: grid; place-items: center; }

.ztc-apk-head-text { flex: 1; min-width: 0; }
.ztc-apk-title {
  margin: 0 0 8px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ztc-apk-title a { color: var(--ztc-text); }
.ztc-apk-title a:hover {
  background: var(--ztc-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ztc-apk-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.ztc-apk-chip {
  display: inline-flex; align-items: center;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: var(--ztc-radius-pill);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--ztc-border);
  color: var(--ztc-muted);
  white-space: nowrap;
}
html.ztc-light .ztc-apk-chip { background: rgba(0,0,0,0.04); }
.ztc-apk-chip-version {
  background: var(--ztc-grad); color: #fff; border-color: transparent;
}

.ztc-apk-excerpt {
  margin: 0; color: var(--ztc-muted);
  font-size: 0.92rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.ztc-apk-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.ztc-apk-sub {
  font-size: 0.78rem; color: var(--ztc-muted);
  display: flex; gap: 12px; flex-wrap: wrap;
}
.ztc-apk-sub a { color: var(--ztc-muted); text-decoration: none; }
.ztc-apk-sub a:hover { color: var(--ztc-text); }

.ztc-apk-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.ztc-apk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px;
  font-family: inherit; font-size: 0.82rem; font-weight: 600;
  border-radius: var(--ztc-radius-pill);
  border: 1px solid var(--ztc-border);
  background: transparent; color: var(--ztc-text);
  cursor: pointer; text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.25s ease, color 0.2s ease;
}
.ztc-apk-btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(124, 58, 237, 0.55);
  transform: translateY(-1px);
}
html.ztc-light .ztc-apk-btn-ghost:hover { background: rgba(0,0,0,0.04); }
.ztc-apk-btn-primary {
  background: var(--ztc-grad); color: #fff !important; border-color: transparent;
  background-size: 200% 100%; background-position: 0% 50%;
  box-shadow: 0 10px 22px -12px rgba(255,60,120,0.55);
}
.ztc-apk-btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(255,60,120,0.7);
}
.ztc-apk-btn-lg {
  padding: 13px 24px; font-size: 0.95rem;
}
.ztc-apk-btn-disabled {
  opacity: 0.55; cursor: not-allowed;
  background: transparent; color: var(--ztc-muted);
}

.ztc-apk-empty {
  text-align: center; padding: 64px 20px;
  border: 1px dashed var(--ztc-border); border-radius: var(--ztc-radius);
  background: var(--ztc-surface);
}
.ztc-apk-empty h3 {
  font-family: 'Space Grotesk', sans-serif; margin: 0 0 8px;
  font-size: 1.4rem; font-weight: 700;
}
.ztc-apk-empty p { color: var(--ztc-muted); margin: 0; }

.ztc-apk-pagination { margin-top: 40px; }

/* ----- single APK details block (appended to the_content) ----- */
.ztc-apk-single {
  margin-top: 32px; padding-top: 32px;
  border-top: 1px solid var(--ztc-border);
}
.ztc-apk-single-head {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.ztc-apk-single-icon img {
  width: 80px; height: 80px; border-radius: 18px; object-fit: cover;
  border: 1px solid var(--ztc-border);
}
.ztc-apk-single-info { flex: 1; min-width: 220px; }
.ztc-apk-spec {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px 24px; margin: 16px 0 0;
}
.ztc-apk-spec div { display: flex; flex-direction: column; gap: 2px; }
.ztc-apk-spec dt {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ztc-muted); font-weight: 600;
}
.ztc-apk-spec dd {
  margin: 0; font-weight: 600; color: var(--ztc-text);
  font-size: 0.95rem;
}
.ztc-apk-single-cta { width: 100%; }
@media (min-width: 720px) { .ztc-apk-single-cta { width: auto; } }
.ztc-apk-h2 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 1.35rem; margin: 32px 0 12px;
}
.ztc-apk-changelog {
  margin: 0 0 16px; padding-left: 18px;
}
.ztc-apk-changelog li {
  margin-bottom: 8px; color: var(--ztc-text);
}
.ztc-apk-changelog li::marker { color: #ff3478; }
.ztc-apk-disclaimer {
  margin-top: 24px;
  font-size: 0.82rem; color: var(--ztc-muted);
  border-left: 3px solid rgba(255, 107, 53, 0.5);
  padding: 10px 14px;
  background: var(--ztc-surface);
  border-radius: 0 var(--ztc-radius-sm) var(--ztc-radius-sm) 0;
}
.ztc-apk-disclaimer-page { max-width: 880px; margin: 32px auto 0; }
