@import url("/assets/index-D4Pa_HkY.css");

/* Rokid theme v9: bright, recognizable identity plus system-aware day/night modes. */
.brand img {
  content: url("/assets/brand-mark-v9-96.png");
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(105, 244, 102, 0.24), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.theme-tools {
  display: flex;
  justify-self: end;
  align-items: center;
}

.theme-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(105, 244, 102, 0.52);
  background: rgba(105, 244, 102, 0.11);
  color: var(--text);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f8f5;
  --surface: #ffffff;
  --surface-strong: #eaf5ee;
  --text: #13231a;
  --muted: #53635a;
  --subtle: #718078;
  --line: rgba(0, 126, 68, 0.19);
  --line-soft: rgba(21, 59, 37, 0.1);
  --green: #087a46;
  --green-strong: #05683a;
  --green-dark: #dff3e7;
  background: var(--bg);
}

html[data-theme="light"] body {
  background: radial-gradient(circle at 75% 0, rgba(54, 178, 102, 0.12), transparent 31rem), var(--bg);
  color: var(--text);
}

html[data-theme="light"] .site-header {
  background: rgba(249, 252, 250, 0.88);
}

html[data-theme="light"] .brand img {
  box-shadow: 0 0 0 1px rgba(0, 126, 68, 0.15), 0 8px 22px rgba(16, 58, 34, 0.12);
}

html[data-theme="light"] .search,
html[data-theme="light"] .theme-toggle {
  border-color: rgba(15, 69, 39, 0.14);
  background: rgba(255, 255, 255, 0.76);
}

html[data-theme="light"] .search:focus-within {
  border-color: rgba(0, 126, 68, 0.48);
  background: #ffffff;
}

html[data-theme="light"] .search input::placeholder {
  color: #78867e;
}

html[data-theme="light"] .search button,
html[data-theme="light"] .modal-close {
  background: rgba(10, 76, 42, 0.08);
}

html[data-theme="light"] .featured {
  border-color: rgba(0, 126, 68, 0.18);
  background: radial-gradient(circle at 76% 50%, rgba(78, 188, 112, 0.22), transparent 32rem), linear-gradient(104deg, #ffffff, #f5fbf7, #e9f6ed);
  box-shadow: 0 20px 55px rgba(26, 78, 46, 0.09);
}

html[data-theme="light"] .featured::before {
  background-image: linear-gradient(rgba(0, 126, 68, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 126, 68, 0.04) 1px, transparent 1px);
}

html[data-theme="light"] .featured h2,
html[data-theme="light"] footer strong {
  color: #334a3b;
}

html[data-theme="light"] .featured-control {
  border-color: rgba(0, 126, 68, 0.24);
  background: rgba(0, 126, 68, 0.07);
  color: #087545;
}

html[data-theme="light"] .primary-action {
  color: #ffffff;
}

html[data-theme="light"] .secondary-action,
html[data-theme="light"] .row-action {
  background: rgba(255, 255, 255, 0.78);
  color: var(--green);
}

html[data-theme="light"] .instruction-action {
  background: rgba(15, 69, 39, 0.06);
  color: var(--muted);
}

html[data-theme="light"] .secondary-action:hover,
html[data-theme="light"] .row-action:hover,
html[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 126, 68, 0.09);
}

html[data-theme="light"] .product-summary > img {
  background: #e8f4ec;
}

html[data-theme="light"] .modal-backdrop {
  background: rgba(24, 42, 31, 0.38);
}

html[data-theme="light"] .product-modal {
  border-color: rgba(0, 126, 68, 0.2);
  background: radial-gradient(circle at 20% 0, rgba(73, 178, 108, 0.14), transparent 22rem), #ffffff;
  box-shadow: 0 35px 100px rgba(22, 55, 35, 0.2);
}

html[data-theme="light"] .desktop-options a,
html[data-theme="light"] .apk-option {
  background: rgba(245, 250, 247, 0.92);
}

html[data-theme="light"] .desktop-options a:hover,
html[data-theme="light"] .apk-option:hover {
  background: rgba(0, 126, 68, 0.07);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto minmax(280px, 1fr) auto;
  }
}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .theme-tools {
    grid-column: 2;
    grid-row: 1;
  }

  .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .theme-toggle {
    min-width: 38px;
    width: 38px;
    padding: 0;
  }

  .theme-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle {
    transition: none;
  }
}
