/* Homepage-specific layer
   Shared system styles live in /assets/css/base.css */

.gg-hero {
  min-height: calc(100vh - var(--gg-header-h));
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
  padding: 110px 0 86px;
}

.gg-copy {
  max-width: 720px;
}

.gg-title {
  font-size: clamp(3rem, 5.5vw, 6rem);
  max-width: 10.5ch;
}

.gg-sub {
  max-width: 62ch;
  font-size: 1.08rem;
  margin: 0 0 28px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: center;
}

.hero-panel-card {
  width: 100%;
}

.hero-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.hero-highlight-box {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.038),
    rgba(255, 255, 255, 0.022)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.hero-highlight-box:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.hero-highlight-label {
  display: block;
  font-size: 0.82rem;
  color: var(--gg-muted);
  margin-bottom: 8px;
}

.hero-search {
  position: relative;
  width: 100%;
  max-width: 520px;
  align-self: flex-start;
}

.hero-search-input {
  width: 100%;
  height: 58px;
  padding: 0 128px 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(32, 220, 255, 0.78);
  background: rgba(6, 10, 24, 0.84);
  color: var(--gg-text);
  font: inherit;
  outline: none;
  box-shadow:
    0 0 0 1px rgba(32, 220, 255, 0.08) inset,
    0 0 24px rgba(32, 220, 255, 0.08);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.hero-search-input::placeholder {
  color: var(--gg-muted);
}

.hero-search-input:focus {
  border-color: rgba(32, 220, 255, 0.98);
  box-shadow:
    0 0 0 1px rgba(32, 220, 255, 0.14) inset,
    0 0 28px rgba(32, 220, 255, 0.14);
}

.hero-search-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  height: 46px;
  min-width: 96px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.178);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gg-accent-1), var(--gg-accent-2));
  color: #a4a9af;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(83, 224, 255, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.hero-search-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.hero-search-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 2px;
}

.hero-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.hero-search-results[hidden] {
  display: none;
}

.hero-search-empty {
  padding: 12px 14px;
  color: var(--gg-muted);
  font-size: 0.98rem;
}

.hero-search-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px;
  border-radius: 14px;
  color: var(--gg-text);
  text-decoration: none;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
  border: 1px solid transparent;
}

.hero-search-result:hover,
.hero-search-result:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.hero-search-result-title {
  font-weight: 800;
  line-height: 1.2;
}

.hero-search-result-meta {
  font-size: 0.86rem;
  color: var(--gg-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html[data-theme="light"] .hero-search-input {
  border-color: rgba(85, 140, 255, 0.18);
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 0 0 1px rgba(85, 140, 255, 0.05) inset,
    0 10px 28px rgba(52, 88, 160, 0.08);
}

html[data-theme="light"] .hero-search-input::placeholder {
  color: #7a87a6;
}

html[data-theme="light"] .hero-search-input:focus {
  border-color: rgba(85, 140, 255, 0.34);
  box-shadow:
    0 0 0 1px rgba(85, 140, 255, 0.06) inset,
    0 12px 30px rgba(52, 88, 160, 0.12);
}

html[data-theme="light"] .hero-search-btn {
  border-color: rgba(121, 125, 133, 0.24);
  color: #111827;
  box-shadow: 0 10px 24px rgba(85, 140, 255, 0.16);
}

.section-emphasis {
  padding-top: 8px;
}

.section-muted {
  position: relative;
}

.section-muted::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 34px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}

.featured-grid .tool-card {
  min-height: 228px;
}

.seo-card p {
  margin: 0;
}

.seo-card p + p {
  margin-top: 14px;
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gg-card-gap);
}

.blog-preview-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-preview-card p {
  margin-bottom: 18px;
}

.blog-preview-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 980px) {
  .gg-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 98px 0 72px;
  }

  .hero-side {
    width: 100%;
  }

  .hero-search {
    max-width: none;
  }

  .blog-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .gg-title {
    font-size: clamp(2.5rem, 12vw, 4.4rem);
  }

  .hero-search-input {
    height: 56px;
    padding: 0 108px 0 16px;
  }

  .hero-search-btn {
    min-width: 84px;
    height: 44px;
    padding: 0 14px;
  }

  .blog-preview-links {
    flex-direction: column;
    gap: 10px;
  }
}
