/* AppStore Pro V5 — base.css
   Minimal CSS for things that Tailwind CDN cannot handle directly.
   All layout/component styles use Tailwind utility classes in the templates.
*/

/* ── CSS Custom Properties (color theming) ──────────────────────────────── */
:root {
  --asp-primary:       #FF6A00;
  --asp-primary-light: #FF8C38;
  --asp-primary-bg:    #FFF4EC;
  --asp-primary-rgb:   255, 106, 0;
}

/* ── Scroll Progress Bar ────────────────────────────────────────────────── */
#aspv5-scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--asp-primary), var(--asp-primary-light));
  z-index: 1100;
  transition: width 0.1s linear;
  border-radius: 0 3px 3px 0;
  pointer-events: none;
}

/* ── Body base ──────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { overflow-x: hidden; }

/* ── Particle canvas (decorative) ──────────────────────────────────────── */
#aspv5-particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ── Custom primary color via CSS var ───────────────────────────────────── */
.text-primary  { color: var(--asp-primary) !important; }
.bg-primary    { background-color: var(--asp-primary) !important; }
.border-primary{ border-color: var(--asp-primary) !important; }
.ring-primary  { --tw-ring-color: var(--asp-primary) !important; }

/* ── App icon placeholder ───────────────────────────────────────────────── */
.app-icon-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--asp-primary), var(--asp-primary-light));
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  border-radius: inherit;
}

/* ── Horizontal scroll (screenshots, featured slider) ───────────────────── */
.aspv5-hscroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.aspv5-hscroll::-webkit-scrollbar { display: none; }
.aspv5-hscroll > * { scroll-snap-align: start; flex-shrink: 0; }

/* ── App card hover lift ────────────────────────────────────────────────── */
.aspv5-card-lift {
  transition: transform 0.22s cubic-bezier(.4,0,.2,1), box-shadow 0.22s cubic-bezier(.4,0,.2,1);
}
.aspv5-card-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(var(--asp-primary-rgb), 0.2);
}

/* ── Badge styles ───────────────────────────────────────────────────────── */
.badge-mod {
  background: var(--asp-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}
.badge-hot {
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 100px;
}

/* ── Star rating ────────────────────────────────────────────────────────── */
.star { color: #facc15; }
.star-empty { color: #d1d5db; }

/* ── Layout switcher active state ───────────────────────────────────────── */
.aspv5-layout-btn {
  transition: background-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
}
.aspv5-layout-btn:hover {
  background-color: rgba(var(--asp-primary-rgb), 0.12);
  color: var(--asp-primary);
}
.aspv5-layout-btn.active {
  background-color: var(--asp-primary);
  color: #fff;
  box-shadow: 0 3px 10px rgba(var(--asp-primary-rgb), 0.45);
  transform: scale(1.05);
}

/* ── Slide-in menu overlay ──────────────────────────────────────────────── */
#aspv5-slide-menu {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
#aspv5-slide-menu.open {
  transform: translateX(0);
}

/* ── Backdrop poster card image zoom ────────────────────────────────────── */
.aspv5-backdrop-card img {
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.aspv5-backdrop-card:hover img {
  transform: scale(1.07);
}

/* ── Screenshot carousel dots ──────────────────────────────────────────── */
.sa-sc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #d1d5db;
  transition: background 0.2s, width 0.2s;
  border: none;
  cursor: pointer;
}
.sa-sc-dot.active {
  background: var(--asp-primary);
  width: 18px;
  border-radius: 3px;
}

/* ── Reveal animation ───────────────────────────────────────────────────── */
.aspv5-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.aspv5-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Header search dropdown ─────────────────────────────────────────────── */
.aspv5-search-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.aspv5-search-dropdown.open {
  max-height: 80px;
}

/* ── APK Extractor card ─────────────────────────────────────────────────── */
.apk-extractor-wrap { font-family: inherit; }

/* ── Ad slots ────────────────────────────────────────────────────────────── */
.aspv5-ad-slot {
  width: 100%;
  overflow: hidden;
  text-align: center;
}
.aspv5-ad-slot > * {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ── Pagination ─────────────────────────────────────────────────────────── */
.aspv5-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.aspv5-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  margin: 0;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.12s;
  text-decoration: none !important;
}
.aspv5-pagination .page-numbers:hover {
  background: var(--asp-primary);
  color: #fff;
  border-color: var(--asp-primary);
  box-shadow: 0 4px 12px rgba(var(--asp-primary-rgb), 0.35);
  transform: translateY(-1px);
}
.aspv5-pagination .page-numbers.current {
  background: var(--asp-primary);
  color: #fff;
  border-color: var(--asp-primary);
  box-shadow: 0 4px 12px rgba(var(--asp-primary-rgb), 0.35);
}
.aspv5-pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
  cursor: default;
  color: #9ca3af;
  transform: none !important;
  box-shadow: none !important;
}
.dark .aspv5-pagination .page-numbers {
  background: #1f2937;
  border-color: #374151;
  color: #d1d5db;
}
.dark .aspv5-pagination .page-numbers.current,
.dark .aspv5-pagination .page-numbers:hover {
  background: var(--asp-primary);
  border-color: var(--asp-primary);
  color: #fff;
}
.dark .aspv5-pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
  color: #6b7280;
}

/* ── Single app sticky bar ──────────────────────────────────────────────── */
.sa-sticky {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.28s ease;
}
.sa-sticky.visible {
  transform: translateY(0);
}

/* ── Single page visual shell ──────────────────────────────────────────── */
.sa-single-shell {
  position: relative;
}
.sa-single-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 100%);
  height: 420px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 10%, rgba(var(--asp-primary-rgb), 0.12), transparent 62%);
  z-index: 0;
}
.sa-single-shell > * {
  position: relative;
  z-index: 1;
}

.sa-stat-chip {
  border: 1px solid rgba(var(--asp-primary-rgb), 0.15);
  background: linear-gradient(180deg, rgba(var(--asp-primary-rgb), 0.1), rgba(var(--asp-primary-rgb), 0.04));
}
.dark .sa-stat-chip {
  border-color: rgba(var(--asp-primary-rgb), 0.35);
  background: linear-gradient(180deg, rgba(var(--asp-primary-rgb), 0.18), rgba(var(--asp-primary-rgb), 0.08));
}

/* ── Content (WordPress editor) ─────────────────────────────────────────── */
.entry-content h2, .entry-content h3 { font-weight: 700; margin: 1.25em 0 0.5em; }
.entry-content p  { margin-bottom: 1em; line-height: 1.75; }
.entry-content ul { list-style: disc; padding-left: 1.5em; margin-bottom: 1em; }
.entry-content ol { list-style: decimal; padding-left: 1.5em; margin-bottom: 1em; }
.entry-content a  { color: var(--asp-primary); text-decoration: underline; }

/* ── Collapsed content ──────────────────────────────────────────────────── */
#sa-entry-content.collapsed {
  max-height: 200px;
  overflow: hidden;
  position: relative;
}
#sa-entry-content.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, white);
}
.dark #sa-entry-content.collapsed::after {
  background: linear-gradient(to bottom, transparent, #111827);
}

/* ── Header active nav link ─────────────────────────────────────────────── */
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.site-header nav a.current-menu-item,
.site-header nav a[aria-current="page"] {
  color: var(--asp-primary) !important;
  background: rgba(var(--asp-primary-rgb), 0.08) !important;
}

/* ── Nav menu items from wp_nav_menu ────────────────────────────────────── */
.site-header nav .menu-item a {
  display: block;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  color: #4b5563;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.dark .site-header nav .menu-item a { color: #d1d5db; }
.site-header nav .menu-item a:hover {
  background: #f3f4f6;
  color: var(--asp-primary);
}
.dark .site-header nav .menu-item a:hover {
  background: #1f2937;
}
.site-header nav .current-menu-item > a,
.site-header nav .current_page_item > a {
  color: var(--asp-primary) !important;
  background: rgba(var(--asp-primary-rgb), 0.08) !important;
}

/* ── Header custom links ────────────────────────────────────────────────── */
.aspv5-header-custom-nav .menu-item a {
  padding: 5px 10px !important;
  border: 1px solid rgba(var(--asp-primary-rgb), 0.2);
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
.aspv5-header-custom-nav .menu-item a:hover {
  background: rgba(var(--asp-primary-rgb), 0.1) !important;
}

/* ── Slide menu nav items ───────────────────────────────────────────────── */
#aspv5-slide-menu .menu-item a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 12px;
  color: #374151;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  margin-bottom: 2px;
}
.dark #aspv5-slide-menu .menu-item a { color: #d1d5db; }
#aspv5-slide-menu .menu-item a:hover {
  background: #f3f4f6;
  color: var(--asp-primary);
}
.dark #aspv5-slide-menu .menu-item a:hover {
  background: #1f2937;
}
#aspv5-slide-menu .current-menu-item > a,
#aspv5-slide-menu .current_page_item > a {
  color: var(--asp-primary) !important;
  background: rgba(var(--asp-primary-rgb), 0.1) !important;
}
#aspv5-slide-menu .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── Color dot active indicator ─────────────────────────────────────────── */
.aspv5-color-dot.active {
  border-color: #fff !important;
  box-shadow: 0 0 0 2.5px var(--asp-primary), 0 2px 8px rgba(0,0,0,.25);
  transform: scale(1.18);
}

/* ── App card grid enhancements ─────────────────────────────────────────── */
.aspv5-app-card a {
  position: relative;
}
.aspv5-app-card a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(135deg, rgba(var(--asp-primary-rgb), 0.04), transparent);
  transition: opacity 0.22s;
  pointer-events: none;
}
.aspv5-app-card a:hover::after {
  opacity: 1;
}

/* ── Banner card width in scroll row ────────────────────────────────────── */
.aspv5-hscroll .aspv5-app-banner {
  width: 160px;
}
@media (min-width: 640px) {
  .aspv5-hscroll .aspv5-app-banner {
    width: 180px;
  }
}

/* ── Banner layout stylish cards ───────────────────────────────────────── */
.aspv5-app-banner > a {
  border: 1px solid rgba(var(--asp-primary-rgb), 0.25);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}
.aspv5-app-banner > a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(var(--asp-primary-rgb), 0.22), transparent 40%);
  pointer-events: none;
  mix-blend-mode: screen;
}
.aspv5-app-banner > a::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  pointer-events: none;
}

/* ── Widget card area styling ───────────────────────────────────────────── */
.aspv5-home-widgets .widget {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.dark .aspv5-home-widgets .widget {
  background: #1f2937;
  border-color: #374151;
}

/* ── Trending badge pulse ────────────────────────────────────────────────── */
@keyframes aspv5-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.badge-trending {
  background: #8b5cf6;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 100px;
  animation: aspv5-pulse 2s infinite;
}

/* ── Featured app large card ─────────────────────────────────────────────── */
.aspv5-featured-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #1f2937;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.aspv5-featured-card img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.aspv5-featured-card:hover img.hero-bg {
  transform: scale(1.04);
}
.aspv5-featured-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
}
.aspv5-featured-card .card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
}

/* ── Section title accent bar ────────────────────────────────────────────── */
.aspv5-section-title-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.aspv5-section-title-bar::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: var(--asp-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Search widget input ─────────────────────────────────────────────────── */
.aspv5-search-widget form {
  display: flex;
  gap: 0;
}
.aspv5-search-widget input[type=search] {
  flex: 1;
  border: 1.5px solid #e5e7eb;
  border-right: none;
  border-radius: 12px 0 0 12px;
  padding: 9px 14px;
  font-size: 0.875rem;
  outline: none;
  background: #f9fafb;
  color: #111827;
  transition: border-color 0.2s;
}
.dark .aspv5-search-widget input[type=search] {
  background: #111827;
  color: #f9fafb;
  border-color: #374151;
}
.aspv5-search-widget input[type=search]:focus {
  border-color: var(--asp-primary);
}
.aspv5-search-widget button[type=submit] {
  padding: 0 16px;
  background: var(--asp-primary);
  color: #fff;
  border: none;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  transition: opacity 0.18s;
}
.aspv5-search-widget button[type=submit]:hover { opacity: 0.88; }

/* ── Stats widget ────────────────────────────────────────────────────────── */
.aspv5-stats-widget .stat-item {
  text-align: center;
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(var(--asp-primary-rgb), 0.06);
}
.aspv5-stats-widget .stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--asp-primary);
  line-height: 1.2;
}
.aspv5-stats-widget .stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  margin-top: 2px;
}
.dark .aspv5-stats-widget .stat-label { color: #9ca3af; }
.layout-list{    display: grid;     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));}
.navigation {
  margin-top: 2.5rem;
}

.navigation .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.navigation .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.navigation .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #222;
  text-decoration: none;
}

.navigation .page-numbers.current,
.navigation .page-numbers:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}

.navigation .dots {
  border: 0;
}

.navigation .next svg {
  width: 16px;
  height: 16px;
}
nav li{list-style:none;text-transform:capitalize;}