/*
Theme Name: GuideFixHQ Pro
Theme URI: https://guidefixhq.com/
Author: GuideFixHQ
Description: A professional technology news, how-to, AI, buying guide, and community portal theme for GuideFixHQ.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: Proprietary
Text Domain: guidefixhq
*/

:root {
  --gfhq-bg: #f4f6f8;
  --gfhq-panel: #ffffff;
  --gfhq-ink: #16202b;
  --gfhq-muted: #667380;
  --gfhq-line: #d9e1e8;
  --gfhq-green: #4b8725;
  --gfhq-green-dark: #37691a;
  --gfhq-blue: #233f73;
  --gfhq-cyan: #097987;
  --gfhq-red: #b64141;
  --gfhq-radius: 8px;
  --gfhq-shadow: 0 12px 34px rgba(28, 42, 56, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--gfhq-bg);
  color: var(--gfhq-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.52;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.gfhq-wrap {
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 18px;
}

.gfhq-topbar {
  background: #101820;
  color: #e8eef3;
  font-size: 13px;
}
.gfhq-topbar .gfhq-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 34px;
}
.gfhq-topbar a { color: #a5f2d3; font-weight: 800; }

.gfhq-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--gfhq-line);
  backdrop-filter: blur(18px);
}
.gfhq-header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 82px;
}
.gfhq-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}
.gfhq-brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gfhq-green), var(--gfhq-blue));
  color: #fff;
  font-weight: 950;
  letter-spacing: 0;
}
.gfhq-brand-name {
  display: block;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}
.gfhq-brand-sub {
  color: var(--gfhq-muted);
  font-size: 12px;
  font-weight: 750;
}

.gfhq-primary-menu,
.gfhq-secondary-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gfhq-primary-menu {
  justify-content: center;
  font-size: 14px;
  font-weight: 850;
}
.gfhq-primary-menu a,
.gfhq-secondary-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}
.gfhq-primary-menu a:hover,
.gfhq-secondary-menu a:hover { color: var(--gfhq-green-dark); }
.gfhq-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gfhq-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--gfhq-line);
  border-radius: 7px;
  background: #fff;
  color: var(--gfhq-ink);
  font-weight: 850;
}
.gfhq-button.primary {
  border-color: var(--gfhq-green);
  background: var(--gfhq-green);
  color: #fff;
}
.gfhq-button.primary:hover { background: var(--gfhq-green-dark); }
.gfhq-navline {
  border-top: 1px solid var(--gfhq-line);
  background: #fff;
}
.gfhq-navline .gfhq-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.gfhq-secondary-menu {
  overflow-x: auto;
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
  scrollbar-width: none;
}
.gfhq-secondary-menu::-webkit-scrollbar { display: none; }
.gfhq-search-form {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 240px;
}
.gfhq-search-form input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--gfhq-line);
  border-radius: 7px;
  padding: 7px 10px;
}

.gfhq-ad {
  display: grid;
  min-height: 88px;
  place-items: center;
  margin: 18px 0;
  border: 1px dashed #b9c6d1;
  border-radius: var(--gfhq-radius);
  background: #eef3f7;
  color: #788795;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gfhq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 22px;
  align-items: start;
}
.gfhq-main {
  min-width: 0;
}
.gfhq-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 125px;
}

.gfhq-section {
  margin: 22px 0;
}
.gfhq-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--gfhq-line);
}
.gfhq-section-head h2 {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--gfhq-green);
  color: var(--gfhq-green-dark);
  font-size: 18px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gfhq-section-head a {
  margin-bottom: 9px;
  color: var(--gfhq-muted);
  font-size: 13px;
  font-weight: 850;
}

.gfhq-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: 16px;
}
.gfhq-lead-card,
.gfhq-card,
.gfhq-panel,
.gfhq-thread,
.gfhq-mini-card {
  border: 1px solid var(--gfhq-line);
  border-radius: var(--gfhq-radius);
  background: var(--gfhq-panel);
  overflow: hidden;
}
.gfhq-lead-card {
  box-shadow: var(--gfhq-shadow);
}
.gfhq-lead-card .gfhq-thumb {
  aspect-ratio: 16 / 9;
}
.gfhq-thumb {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #dbe7ee, #b9cedd);
}
.gfhq-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gfhq-visual {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 100%;
  place-items: end start;
  padding: 14px;
  isolation: isolate;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 24, 32, .08), rgba(16, 24, 32, .62)),
    linear-gradient(120deg, #233f73, #4b8725);
}
.gfhq-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .48;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.38) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 34%, rgba(255,255,255,.30) 0 2px, transparent 3px),
    linear-gradient(90deg, transparent 0 43%, rgba(255,255,255,.2) 43% 44%, transparent 44% 100%);
  background-size: 74px 74px, 92px 92px, 28px 28px;
}
.gfhq-visual span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 7px;
  background: rgba(16,24,32,.48);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}
.gfhq-visual-ai { background: linear-gradient(120deg, #233f73, #0a7f91); }
.gfhq-visual-technology { background: linear-gradient(120deg, #1f5964, #4b8725); }
.gfhq-visual-hardware { background: linear-gradient(120deg, #202b36, #8d5b20); }
.gfhq-visual-software { background: linear-gradient(120deg, #273b67, #6f6f84); }
.gfhq-visual-gaming { background: linear-gradient(120deg, #28325c, #8b3156); }
.gfhq-visual-how-to { background: linear-gradient(120deg, #295c46, #233f73); }
.gfhq-visual-reviews { background: linear-gradient(120deg, #4f3f6d, #097987); }
.gfhq-visual-guides { background: linear-gradient(120deg, #4b8725, #47616f); }
.gfhq-visual-deals { background: linear-gradient(120deg, #7a4b1c, #b64141); }
.gfhq-visual-security { background: linear-gradient(120deg, #102331, #37691a); }
.gfhq-visual-mobile { background: linear-gradient(120deg, #0b6f84, #4b8725); }
.gfhq-visual-news { background: linear-gradient(120deg, #233f73, #b64141); }
.gfhq-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(0deg, rgba(16,24,32,.32), transparent);
  pointer-events: none;
}
.gfhq-card-body {
  padding: 15px;
}
.gfhq-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 7px;
  color: var(--gfhq-green-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gfhq-lead-card h1,
.gfhq-lead-card h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.02;
  letter-spacing: 0;
}
.gfhq-lead-card p,
.gfhq-card p,
.gfhq-panel p {
  color: var(--gfhq-muted);
}
.gfhq-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--gfhq-muted);
  font-size: 12px;
  font-weight: 750;
}

.gfhq-story-stack {
  display: grid;
  gap: 12px;
}
.gfhq-mini-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  min-height: 112px;
}
.gfhq-mini-card .gfhq-thumb { aspect-ratio: auto; }
.gfhq-mini-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.18;
}

.gfhq-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.gfhq-card .gfhq-thumb {
  aspect-ratio: 16 / 9;
}
.gfhq-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.18;
}

.gfhq-sidebar .gfhq-panel {
  padding: 15px;
}
.gfhq-panel-title {
  margin: 0 0 12px;
  color: var(--gfhq-green-dark);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gfhq-trending-list,
.gfhq-social-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gfhq-trending-list li,
.gfhq-social-list li {
  border-top: 1px solid var(--gfhq-line);
}
.gfhq-trending-list li:first-child,
.gfhq-social-list li:first-child { border-top: 0; }
.gfhq-trending-list a,
.gfhq-social-list a {
  display: grid;
  gap: 4px;
  padding: 11px 0;
  font-weight: 850;
}
.gfhq-social-list small,
.gfhq-trending-list small {
  color: var(--gfhq-muted);
  font-size: 12px;
  font-weight: 750;
}

.gfhq-social-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}
.gfhq-social-intro {
  padding: 22px;
  border-radius: var(--gfhq-radius);
  background: #101820;
  color: #fff;
}
.gfhq-social-intro h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}
.gfhq-social-intro p { color: #c9d3dc; }
.gfhq-forum-grid {
  display: grid;
  gap: 12px;
}
.gfhq-thread {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
}
.gfhq-thread h3 {
  margin: 4px 0;
  font-size: 18px;
}
.gfhq-thread small {
  color: var(--gfhq-muted);
  font-weight: 750;
}
.gfhq-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e7f2dc;
  color: var(--gfhq-green-dark);
  font-size: 12px;
  font-weight: 950;
}

.gfhq-article {
  max-width: 850px;
  padding: 24px;
  border: 1px solid var(--gfhq-line);
  border-radius: var(--gfhq-radius);
  background: var(--gfhq-panel);
}
.gfhq-article h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
}
.gfhq-article .gfhq-featured {
  margin: 22px 0;
  border-radius: var(--gfhq-radius);
  overflow: hidden;
}
.gfhq-article .gfhq-featured .gfhq-visual {
  aspect-ratio: 16 / 9;
}
.gfhq-article-content {
  font-size: 18px;
}
.gfhq-article-content h2 {
  margin-top: 32px;
  font-size: 29px;
  line-height: 1.12;
}
.gfhq-article-content a {
  color: var(--gfhq-blue);
  font-weight: 850;
}

.gfhq-footer {
  margin-top: 36px;
  background: #101820;
  color: #dfe7ee;
}
.gfhq-footer .gfhq-wrap {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) 1fr;
  gap: 36px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.gfhq-footer p { color: #aebac4; }
.gfhq-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.gfhq-footer a:hover { color: #bdf0c6; }

@media (max-width: 1040px) {
  .gfhq-header-main {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 13px 0;
  }
  .gfhq-primary-menu {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .gfhq-primary-menu::-webkit-scrollbar { display: none; }
  .gfhq-header-actions { justify-content: flex-start; }
  .gfhq-layout,
  .gfhq-hero-grid,
  .gfhq-social-hero {
    grid-template-columns: 1fr;
  }
  .gfhq-sidebar { position: static; }
}

@media (max-width: 760px) {
  .gfhq-wrap { padding: 0 14px; }
  .gfhq-topbar .gfhq-wrap,
  .gfhq-navline .gfhq-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .gfhq-search-form { width: 100%; min-width: 0; }
  .gfhq-card-grid,
  .gfhq-footer .gfhq-wrap,
  .gfhq-footer-links {
    grid-template-columns: 1fr;
  }
  .gfhq-mini-card {
    grid-template-columns: 112px 1fr;
  }
  .gfhq-article {
    padding: 16px;
  }
}
