/*
Theme Name: APK Search
Theme URI: http://127.0.0.1:8092
Author: APK Search
Description: WordPress theme for the APK Search catalog. Official store and developer links only.
Version: 1.0.0
Text Domain: apk-search
*/

:root {
  --green: #12b76a;
  --green-dark: #0e9f5a;
  --ink: #101828;
  --muted: #667085;
  --line: #e6ebf2;
  --page: #f5f7fb;
  --blue: #2f6fed;
  --purple: #7c3aed;
  --amber: #f79009;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 20; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid #eef2f6;
  backdrop-filter: blur(10px);
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.logo .green, .green { color: var(--green); }
.logo svg { width: 32px; height: 32px; color: var(--green); }
.primary-nav { display: none; gap: 22px; margin-left: 12px; font-size: 14px; font-weight: 700; color: #475467; }
.primary-nav a.active { color: var(--green); text-decoration: underline; text-underline-offset: 8px; }
.nav-search { display: none; margin-left: auto; position: relative; }
.nav-search input, .hero-search input, .filters select, .report input, .report textarea {
  border: 0;
  background: #f2f4f7;
  border-radius: 999px;
  height: 40px;
  padding: 0 14px 0 36px;
  width: 180px;
}
.nav-search svg { position: absolute; left: 12px; top: 11px; width: 16px; height: 16px; color: #98a2b3; }
.login, .btn-green, .source-actions a.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  height: 40px;
  padding: 0 16px;
  font-weight: 800;
  font-size: 14px;
  border: 0;
}
.login { margin-left: auto; }
.menu { display: block; }
.menu summary {
  list-style: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f2f4f7;
  cursor: pointer;
  font-weight: 800;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute;
  right: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  width: 210px;
  box-shadow: 0 12px 30px rgba(16,24,40,.08);
}
.menu-panel a { display: block; padding: 8px 10px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.menu-panel a:hover { background: var(--page); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, #d9fbe8 0, transparent 28%),
    radial-gradient(circle at 82% 0, #d7f4ff 0, transparent 32%),
    linear-gradient(180deg, #f3fbf7 0%, #f7fbff 70%, #fff 100%);
  padding: 48px 0 56px;
}
.hero-copy { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -.04em; }
.hero .lede { color: var(--muted); margin: 12px auto 0; max-width: 560px; }
.hero-search { margin-top: 22px; text-align: left; position: relative; }
.hero-search-row, .filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 10px 40px rgba(16,24,40,.06);
}
.hero-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  padding: 0 8px 0 14px;
}
.hero-search input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
  font-size: 16px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.hero-search input:focus {
  outline: none;
  box-shadow: none;
}
.hero-search input:-webkit-autofill,
.hero-search input:-webkit-autofill:hover,
.hero-search input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-out;
}
.hero-search-row:focus-within {
  border-color: #b7ebc9;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, .16);
}
.hero-search .glass, .hero-search button svg, .source-actions svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.hero-search .glass { color: #98a2b3; }
.hero-search button { width: 100%; height: 48px; border-radius: 999px; }
.suggest {
  position: absolute;
  z-index: 5;
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 8px;
  text-align: left;
  box-shadow: 0 12px 30px rgba(16,24,40,.08);
  overflow: hidden;
}
.suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.suggest a:hover { background: var(--page); }
.suggest small { color: var(--muted); display: block; }
.popular {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #344054;
}
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; text-align: left; }
.features li { display: flex; gap: 8px; align-items: center; list-style: none; }
.features ul { display: contents; }
.dot {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; color: #fff; flex: none;
}
.dot span, .features strong { display: block; }
.features strong { font-size: 14px; }
.features em { font-style: normal; color: var(--muted); font-size: 12px; }
.bg-green { background: var(--green); }
.bg-blue { background: var(--blue); }
.bg-purple { background: var(--purple); }
.bg-amber { background: var(--amber); }

.phone {
  display: none;
  position: absolute;
  top: 36px;
  width: 200px;
  pointer-events: none;
}
.phone.left { left: 0; transform: rotate(-6deg); }
.phone.right { right: 0; transform: rotate(6deg); }
.phone-shell {
  border: 8px solid #1b2430;
  border-radius: 32px;
  background: linear-gradient(#7ec8ff, #d7fff0);
  min-height: 390px;
  box-shadow: 0 20px 40px rgba(16,24,40,.16);
}
.notch { width: 64px; height: 16px; background: #1b2430; border-radius: 999px; margin: 8px auto; }
.phone-time { color: #fff; padding: 8px 16px 0; }
.phone-time strong { font-size: 28px; display: block; }
.phone-grid, .phone-list { display: grid; gap: 10px; padding: 16px; }
.phone-grid { grid-template-columns: repeat(3, 1fr); }
.phone-list { padding-top: 28px; }
.phone-row { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.95); border-radius: 16px; padding: 6px; font-size: 12px; font-weight: 700; }

.section { padding: 28px 0 10px; }
.section-head, .panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.section h2, .panel h2, .page-title { margin: 0; letter-spacing: -.03em; }
.section h2 { font-size: 30px; }
.sub { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.sort-link, .text-link { color: var(--green); font-weight: 800; font-size: 14px; }

.result, .panel, .note, .page-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(16,24,40,.04);
}
.result { padding: 20px; margin-top: 18px; }
.result-top { display: flex; gap: 16px; }
.result h3 { margin: 0; font-size: 24px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e8f8ef;
  color: #067647;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
}
.meta, .fine, .source-note { color: var(--muted); font-size: 13px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 10px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.facts li { list-style: none; }
.sources { display: grid; gap: 12px; margin-top: 16px; }
.source {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.source-top { display: flex; justify-content: space-between; gap: 8px; }
.source-id { display: flex; gap: 8px; align-items: center; }
.num, .letter {
  width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: #eef2f6; font-size: 12px; font-weight: 800;
}
.letter { background: #fff; color: var(--green); box-shadow: 0 1px 2px rgba(16,24,40,.06); }
.pill { border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 800; }
.pill-0 { background: #e8f8ef; color: #067647; }
.pill-1 { background: #eef4ff; color: #175cd3; }
.pill-2 { background: #f4ebff; color: #6941c6; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.stat { background: #fff; border-radius: 12px; padding: 8px 10px; font-size: 12px; }
.stat span { display: block; color: #98a2b3; }
.source-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.source-actions a.download,
.source-actions a.details {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  padding: 0 16px;
}
.source-actions a.download.tone-1 { background: var(--blue); }
.source-actions a.download.tone-2 { background: var(--purple); }
.source-actions a.details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}

.home-grid { display: grid; gap: 16px; padding-bottom: 48px; }
.panel { padding: 20px; }
.app-grid, .cat-grid { display: grid; gap: 10px; margin-top: 14px; }
.app-grid { grid-template-columns: repeat(3, 1fr); }
.cat-grid { grid-template-columns: 1fr 1fr; }
.app-tile, .cat-tile, .app-row {
  border: 1px solid #eef2f6;
  border-radius: 16px;
  background: #fff;
}
.app-tile { display: grid; justify-items: center; gap: 8px; padding: 12px 8px; text-align: center; font-size: 12px; font-weight: 700; }
.app-tile:hover, .cat-tile:hover, .app-row:hover { border-color: var(--green); }
.cat-tile, .app-row { display: flex; gap: 12px; align-items: center; padding: 12px; }
.cat-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--page); font-size: 18px; }
.list-page { padding: 36px 0 56px; }
.list-grid { display: grid; gap: 12px; margin-top: 18px; }
.filters { margin-top: 16px; border-radius: 16px; box-shadow: none; display: grid; }
.filters label { font-size: 13px; font-weight: 800; }
.filters select, .filters button { height: 44px; border-radius: 12px; }
.filters select { width: 100%; padding: 0 10px; border: 1px solid var(--line); background: #f8fafc; }
.filters button { background: var(--ink); color: #fff; border: 0; font-weight: 800; }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 16px; font-size: 14px; }
.pager a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; }
.empty { border: 1px dashed #d0d5dd; }

.page-wrap { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 64px; }
.page-wrap h1 { font-size: 40px; letter-spacing: -.04em; }
.prose { color: #475467; }
.prose p { line-height: 1.7; }
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.two { display: grid; gap: 16px; margin-top: 20px; }
.note { padding: 18px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-top: 8px; }
.faq summary { cursor: pointer; font-weight: 800; }
.related { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.related a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.report { display: grid; gap: 8px; }
.report input, .report textarea { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--page); padding: 10px 12px; }
.report textarea { min-height: 110px; }
.report button { height: 44px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; }

.app-mark {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  color: #fff; font-weight: 800; flex: none; box-shadow: 0 1px 2px rgba(16,24,40,.08);
}
.app-mark.sm { width: 40px; height: 40px; border-radius: 14px; font-size: 14px; }
.app-mark.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }
.mark-whatsapp, .mark-spotify, .mark-default { background: #25d366; }
.mark-spotify { background: #1db954; }
.mark-default { background: var(--green); }
.mark-instagram { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }
.mark-youtube, .mark-netflix { background: #ff0033; }
.mark-telegram, .mark-signal { background: #2aabee; }
.mark-capcut, .mark-x { background: #111; }
.mark-discord { background: #5865f2; }
.mark-facebook { background: #1877f2; }
.mark-minecraft { background: #3c8f3a; }

.site-footer { margin-top: 24px; background: #fff; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 22px; padding: 36px 0; }
.site-footer h2 { margin: 0 0 8px; font-size: 14px; }
.site-footer p, .site-footer a { color: var(--muted); font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notice { background: #e8f8ef; color: #067647; border-radius: 12px; padding: 10px 12px; }

@media (min-width: 560px) {
  .source-actions { grid-template-columns: minmax(0, 1fr) auto; }
  .source-actions a.details { width: auto; min-width: 112px; }
}
@media (min-width: 720px) {
  .hero-search-row, .source-top { align-items: center; }
  .hero-search-row { flex-direction: row; border-radius: 999px; }
  .hero-search-field { flex: 1; }
  .hero-search button { width: auto; padding: 0 22px; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .sources { grid-template-columns: 1fr 1fr; }
  .app-grid { grid-template-columns: repeat(6, 1fr); }
  .cat-grid, .list-grid, .two, .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .filters { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
  .nav-search { display: block; }
  .login { margin-left: 0; }
}
@media (min-width: 1024px) {
  .primary-nav, .phone { display: flex; }
  .menu { display: none; }
  .home-grid { grid-template-columns: 1.05fr 1.35fr; }
  .hero { padding-left: 180px; padding-right: 180px; }
}
