/* OkDak Search — style Google (landing, SERP, autocomplétion) */

/* ── Landing minimal ── */
.page-search-landing.page-search-google {
  background: var(--apple-bg, #202124);
}

.page-search-google .search-landing-header {
  justify-content: flex-end;
  padding: 0.85rem 1.25rem;
  min-height: 3.5rem;
}

.page-search-google .search-landing-header__brand-link {
  display: none;
}

.page-search-google .search-landing-header__nav {
  font-size: 0.8125rem;
  gap: 1rem;
}

.page-search-google .search-landing-main {
  justify-content: center;
  padding: 0 1.25rem 4rem;
  margin-top: -2rem;
}

.page-search-google .search-landing-tagline,
.page-search-google .search-landing-seo {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-search-google .search-landing-brand {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 1.75rem;
  font-weight: 500;
}

.page-search-google .search-landing-form .search-input {
  border-radius: 24px;
  padding: 0.9rem 1.25rem 0.9rem 2.75rem;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.07);
}

.page-search-google .search-landing-form .search-container {
  position: relative;
}

.page-search-google .search-landing-form .search-container::before {
  content: "🔍";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.55;
  pointer-events: none;
  z-index: 2;
}

.page-search-google .search-landing-actions {
  margin-top: 1.65rem;
}

.page-search-google .search-landing-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  color: #e8eaed;
}

.page-search-google .search-landing-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.page-search-google .search-landing-btn--primary {
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
}

.page-search-google .search-landing-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
  max-width: 36rem;
}

.page-search-google .search-landing-chips__label {
  width: 100%;
  font-size: 0.75rem;
  color: #9aa0a6;
  margin: 0 0 0.25rem;
}

.page-search-google .search-landing-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e8eaed;
  font-size: 0.8125rem;
  cursor: pointer;
}

.page-search-google .search-landing-chip:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-search-google .search-landing-chip--trend::before {
  content: "↗ ";
  opacity: 0.7;
}

.page-search-google .search-landing-footer {
  margin-top: auto;
  background: rgba(0, 0, 0, 0.2);
  border-top: none;
  padding: 0.85rem 1.5rem 1.5rem;
}

.page-search-google .search-landing-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  font-size: 0.875rem;
  color: #9aa0a6;
}

.page-search-google .search-landing-footer__row a {
  color: inherit;
  text-decoration: none;
  margin-right: 1rem;
}

.page-search-google .search-landing-footer__row a:hover {
  text-decoration: underline;
}

body.light-theme.page-search-google {
  background: #fff;
}

body.light-theme.page-search-google .search-landing-form .search-input {
  background: #fff;
  border-color: #dfe1e5;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.15);
}

body.light-theme.page-search-google .search-landing-btn {
  background: #f8f9fa;
  color: #3c4043;
}

body.light-theme.page-search-google .search-landing-chip {
  background: #f1f3f4;
  color: #3c4043;
  border-color: #dfe1e5;
}

body.light-theme.page-search-google .search-landing-footer {
  background: #f2f2f2;
}

/* ── SERP Google ── */
body.page-search-google.page-search {
  background: var(--apple-bg, #202124);
}

.page-search-google .okdak-search-sticky {
  position: sticky;
  top: 0;
  z-index: 1004;
  background: rgba(32, 33, 36, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.page-search-google .okdak-search-header {
  position: static;
  background: transparent;
  border-bottom: none;
  padding-bottom: 0;
}

.page-search-google .index-search-tools {
  padding: 0 1.25rem 0 8.5rem;
  margin: 0;
  border-bottom: none;
  gap: 0;
}

.page-search-google .index-search-tools__tab {
  padding: 0.65rem 1rem;
  margin-bottom: 0;
  font-size: 0.8125rem;
  color: #9aa0a6;
  border-bottom: 3px solid transparent;
}

.page-search-google .index-search-tools__tab.is-active {
  color: #8ab4f8;
  border-bottom-color: #8ab4f8;
}

.page-search-google .index-search-page {
  max-width: 652px;
  margin-left: 8.5rem;
  padding: 0.5rem 1.25rem 2rem 0;
}

.page-search-google .index-search-page__stats {
  color: #9aa0a6;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.page-search-google .index-serp-item__title {
  color: #8ab4f8;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
}

.page-search-google .index-serp-item__url {
  color: #bdc1c6;
  font-size: 0.875rem;
}

.page-search-google .index-serp-item__desc {
  color: #bdc1c6;
  font-size: 0.875rem;
  line-height: 1.58;
}

.page-search-google .index-search-page__correction {
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: #e8eaed;
}

.page-search-google .index-search-page__correction a {
  color: #8ab4f8;
  font-weight: 600;
}

.page-search-google .okdak-serp-knowledge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  padding: 1rem 0 1.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-search-google .okdak-serp-knowledge__title {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 400;
  color: #e8eaed;
}

.page-search-google .okdak-serp-knowledge__sub {
  margin: 0 0 0.5rem;
  color: #9aa0a6;
  font-size: 0.875rem;
}

.page-search-google .okdak-serp-knowledge__desc {
  margin: 0 0 0.75rem;
  color: #bdc1c6;
  font-size: 0.875rem;
  line-height: 1.5;
}

.page-search-google .okdak-serp-knowledge__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background: #8ab4f8;
  color: #202124;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.page-search-google .okdak-serp-knowledge__thumb {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.page-search-google .okdak-serp-knowledge__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-search-google .index-search-page__pager button {
  border-radius: 4px;
  border: none;
  background: transparent;
  color: #8ab4f8;
  min-width: auto;
  padding: 0.35rem 0.65rem;
}

.page-search-google .index-search-page__pager button.is-current {
  background: transparent;
  color: #e8eaed;
  font-weight: 700;
  text-decoration: underline;
}

.page-search-google .index-site-search {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-search-google .index-site-search__item {
  gap: 0.75rem;
}

.page-search-google .index-site-search__item-title {
  font-weight: 500;
  color: #e8eaed;
}

.page-search-google .index-site-search__item-url {
  color: #9aa0a6;
  font-size: 0.8125rem;
}

body.light-theme.page-search-google.page-search {
  background: #fff;
}

body.light-theme.page-search-google .okdak-search-sticky {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: #ebebeb;
}

body.light-theme.page-search-google .index-serp-item__title {
  color: #1a0dab;
}

body.light-theme.page-search-google .index-serp-item__url {
  color: #006621;
}

body.light-theme.page-search-google .index-serp-item__desc {
  color: #4d5156;
}

body.light-theme.page-search-google .index-search-tools__tab.is-active {
  color: #1a73e8;
  border-bottom-color: #1a73e8;
}

body.light-theme.page-search-google .okdak-serp-knowledge__title {
  color: #202124;
}

@media (max-width: 720px) {
  .page-search-google .index-search-page {
    margin-left: 0;
    padding: 0.5rem 1rem 2rem;
  }

  .page-search-google .index-search-tools {
    padding-left: 1rem;
    overflow-x: auto;
  }

  .page-search-google .okdak-serp-knowledge {
    grid-template-columns: 1fr;
  }

  .page-search-google .okdak-serp-knowledge__thumb {
    width: 100%;
    height: 160px;
  }
}
