/* ========================================
   APK Download Site Template
   Inspired by u7777-pk.com design
   ======================================== */

/* --- CSS Variables --- */
:root {
  /* Colors - Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --bg-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-cta: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8888a0;
  --text-inverse: #ffffff;
  --border-color: #e8e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);

  /* Accent Colors */
  --accent-primary: #6c5ce7;
  --accent-secondary: #a29bfe;
  --accent-green: #00b894;
  --accent-gold: #fdcb6e;
  --accent-red: #e17055;
  --accent-blue: #0984e3;

  /* Sizing */
  --header-height: 64px;
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 50px;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.35s ease;
}

/* --- Dark Theme --- */
[data-theme="dark"] {
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a35;
  --bg-card: #16213e;
  --text-primary: #e8e8f0;
  --text-secondary: #a8a8c0;
  --text-muted: #6868a0;
  --border-color: #2a2a50;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-hover: 0 8px 25px rgba(0,0,0,0.5);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-hero);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
}

.logo-flag {
  font-size: 20px;
  margin-left: 2px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.nav-link.download-btn {
  background: var(--accent-primary);
  color: white;
  font-weight: 600;
}

.nav-link.download-btn:hover {
  background: #5a4bd4;
  transform: translateY(-1px);
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  box-shadow: var(--shadow-sm);
}

.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
  display: inline;
}

.theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-primary);
  padding: 4px;
}

/* --- Hero Section --- */
.hero {
  background: var(--bg-hero);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5%, 5%); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  color: white;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-description {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: white;
  color: var(--accent-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
}

.btn-download {
  background: var(--accent-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(108,92,231,0.4);
}

.btn-download:hover {
  background: #5a4bd4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108,92,231,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* --- Section Styles --- */
.section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .emoji {
  font-size: 28px;
}

.view-all {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}

.view-all:hover {
  gap: 8px;
}

/* --- App Card --- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-secondary);
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.app-icon img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.app-info {
  flex: 1;
  min-width: 0;
}

.app-name {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stars {
  color: var(--accent-gold);
  font-size: var(--font-size-sm);
  letter-spacing: 1px;
}

.rating-score {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.app-description {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.app-size {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.app-badge {
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0,184,148,0.1);
  color: var(--accent-green);
}

.app-download-btn {
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-primary);
  color: white;
  transition: all var(--transition-fast);
}

.app-download-btn:hover {
  background: #5a4bd4;
  transform: scale(1.05);
}

/* Top Rated Cards - Horizontal scroll */
.app-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.app-scroll::-webkit-scrollbar {
  display: none;
}

.app-scroll .app-card {
  min-width: 300px;
  max-width: 340px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Featured badge on top rated cards */
.app-card.featured::before {
  content: 'TOP RATED';
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--accent-gold), #e17055);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--bg-cta);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  max-width: 700px;
  margin: 12px auto 0;
  line-height: 1.6;
}

/* --- Detail Page --- */
.detail-hero {
  background: var(--bg-hero);
  padding: 40px 0;
  color: white;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 24px;
}

.detail-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
}

.detail-info h1 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: 8px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.8);
}

.detail-body {
  padding: 40px 0;
}

.detail-content {
  max-width: 800px;
}

.detail-content h2 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.detail-content p {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.detail-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.detail-content ul li {
  list-style: disc;
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.detail-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.detail-download-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.detail-download-box .btn-download {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: var(--font-size-lg);
}

.detail-specs {
  margin-top: 20px;
}

.detail-spec {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--font-size-sm);
}

.detail-spec:last-child {
  border-bottom: none;
}

.detail-spec-label {
  color: var(--text-muted);
}

.detail-spec-value {
  color: var(--text-primary);
  font-weight: 600;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

/* --- Static Pages (About, Privacy, etc.) --- */
.static-page {
  padding: 60px 0;
}

.static-page h1 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.static-page h2 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.static-page p {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 800px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: var(--font-size-2xl);
  }

  .hero-description {
    font-size: var(--font-size-base);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: var(--font-size-xl);
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-scroll .app-card {
    min-width: 260px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .cta-section h2 {
    font-size: var(--font-size-2xl);
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-header {
    flex-direction: column;
    text-align: center;
  }

  .detail-meta {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: var(--font-size-xl);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* --- Loading skeleton --- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-color) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Scroll to top button --- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 100;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #5a4bd4;
  transform: translateY(-2px);
}


/* ========================================
   Blog & Article Styles
   ======================================== */

.page-hero {
  background: var(--bg-hero);
  padding: 80px 0 40px;
  text-align: center;
  color: var(--text-inverse);
}
.page-hero h1 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  padding: 20px 0;
}
.blog-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.blog-card-category {
  display: inline-block;
  background: var(--accent-primary);
  color: #fff;
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--text-primary);
}
.blog-card-excerpt {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* Article page */
.article-page {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
}
.article-header {
  max-width: 800px;
  margin: 0 auto 40px;
}
.article-back {
  display: inline-block;
  color: var(--accent-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 16px;
  text-decoration: none;
}
.article-back:hover {
  text-decoration: underline;
}
.article-category {
  display: inline-block;
  background: var(--accent-primary);
  color: #fff;
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.article-header h1 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.article-meta {
  display: flex;
  gap: 20px;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  flex-wrap: wrap;
}
.article-body {
  max-width: 800px;
  margin: 0 auto;
}
.article-body h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--text-primary);
}
.article-body h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text-primary);
}
.article-body p {
  font-size: var(--font-size-base);
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.article-body ul, .article-body ol {
  margin: 12px 0 20px 24px;
  color: var(--text-secondary);
}
.article-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.article-body strong {
  color: var(--text-primary);
}
.article-cta {
  background: var(--bg-hero);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-top: 40px;
  color: var(--text-inverse);
}
.article-cta h3 {
  color: #fff !important;
  margin-top: 0;
}
.article-cta p {
  color: rgba(255,255,255,0.9) !important;
}
.article-cta .btn {
  display: inline-block;
  margin-top: 16px;
}

/* Static content pages */
.static-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}
.static-content h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: 28px 0 14px;
  color: var(--text-primary);
}
.static-content h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text-primary);
}
.static-content p {
  font-size: var(--font-size-base);
  line-height: 1.8;
  margin-bottom: 14px;
  color: var(--text-secondary);
}
.static-content ul, .static-content ol {
  margin: 12px 0 20px 24px;
  color: var(--text-secondary);
}
.static-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.static-content strong {
  color: var(--text-primary);
}
.static-content a {
  color: var(--accent-primary);
}
.static-content a:hover {
  text-decoration: underline;
}

/* Contact methods grid */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.contact-method {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}
.contact-method h3 {
  margin-top: 0 !important;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    font-size: var(--font-size-2xl);
  }
  .article-header h1 {
    font-size: var(--font-size-2xl);
  }
  .article-meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* ============================================
   LISTING PAGES - Apps, Games, Download
   ============================================ */

/* Action Row */
.action-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px 0;
}

/* Section Header Row */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-header-row h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

/* Horizontal App Card (Listing) */
.app-grid-listing {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-card-h {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  text-decoration: none;
  color: inherit;
}
.app-card-h:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.app-card-h-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.app-card-h-body {
  flex: 1;
  min-width: 0;
}

.app-card-h-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: 4px;
}
.app-ver {
  font-weight: 400;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.app-card-h-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card-h-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.stars-sm {
  color: var(--accent-gold);
  font-weight: 600;
}

/* Badges */
.badge-top, .badge-hot, .badge-new {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-top {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}
.badge-hot {
  background: linear-gradient(135deg, #e17055, #d63031);
  color: #fff;
}
.badge-new {
  background: linear-gradient(135deg, #00b894, #00a381);
  color: #fff;
}

/* Chip Row */
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.chip-row .chip {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.chip-row .chip:hover,
.chip-row .chip.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

/* Download Card */
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  font-size: var(--font-size-xl);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 8px;
}
.step-card p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.feature-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Play button style */
.btn-play {
  background: linear-gradient(135deg, #00b894, #00a381);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

/* Blog button style */
.btn-blog {
  background: linear-gradient(135deg, #74B9FF, #0984E3);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-blog:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(9, 132, 227, 0.4);
}

/* Responsive - Listing Pages */
@media (max-width: 768px) {
  .app-card-h {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
  }
  .app-card-h-icon {
    margin: 0 auto;
  }
  .app-card-h-meta {
    justify-content: center;
  }
  .badge-top, .badge-hot, .badge-new {
    position: static;
    margin-top: 8px;
    display: inline-block;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .download-card {
    padding: 24px 16px;
  }
  .chip-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .chip-row .chip {
    white-space: nowrap;
  }
}
