/*
Theme Name: GadgetGems Child
Theme URI: https://gadgetgems.in/
Description: Child theme for GeneratePress (GadgetGems).
Author: Gaurav
Template: generatepress
Version: 0.1.1
Text Domain: gadgetgems-child
*/

/* =====================================================
   Affiliate Disclosure
===================================================== */
.gg-disclosure {
  font-size: 14px;
  color: #555;
  background: #f7f7f7;
  border-left: 3px solid #ccc;
  padding: 10px 14px;
  margin: 16px 0 24px;
}

/* =====================================================
   Verdict Box
===================================================== */
.gg-verdict {
  background: #f8f9ff;
  border-left: 4px solid #2563eb;
  padding: 18px 20px;
  margin: 24px 0 28px;
}

.gg-verdict h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 20px;
}

.gg-verdict p {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* =====================================================
   Buttons
===================================================== */
.gg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.gg-btn-primary {
  background: #2563eb;
  color: #fff;
}

.gg-btn-primary:hover {
  background: #1e40af;
}

.gg-btn-secondary {
  background: #fff;
  color: #111827;
  border: 1px solid #d1d5db;
}

/* =====================================================
   Hero / Homepage Layout
===================================================== */
.gg-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

.gg-hero {
  padding: 56px 0;
  background: #f7f8fb;
}

.gg-hero h1 {
  font-size: 38px;
  line-height: 1.1;
  margin: 0 0 12px;
}

.gg-hero p {
  font-size: 18px;
  margin: 0 0 18px;
  max-width: 760px;
}

.gg-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}

.gg-micro {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 10px;
}

/* =====================================================
   Cards / Grids
===================================================== */
.gg-section {
  padding: 40px 0;
}

.gg-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gg-card {
  display: block;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
}

.gg-card h3 {
  margin: 0 0 8px;
}

.gg-card p {
  margin: 0 0 10px;
  color: #374151;
}

.gg-link {
  font-weight: 700;
}

@media (max-width: 900px) {
  .gg-grid-3 {
    grid-template-columns: 1fr;
  }
  .gg-hero h1 {
    font-size: 30px;
  }
}

/* =====================================================
   GeneratePress Layout Fixes (SAFE)
===================================================== */

/* Hide sidebar everywhere */
#right-sidebar,
#left-sidebar,
#secondary,
.widget-area {
  display: none !important;
}

/* Full-width content */
.site-content #primary {
  width: 100% !important;
  max-width: 1100px;
  margin: 0 auto;
}

/* Hide homepage title only */
.home h1.entry-title {
  display: none !important;
}

/* =====================================================
   Header & Navigation (RESTORED)
===================================================== */

.site-header {
  display: block;
}

.main-navigation {
  display: block;
}

.main-navigation .main-nav > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation .main-nav > ul > li {
  display: inline-flex;
}

.main-navigation .main-nav > ul > li > a {
  padding: 10px 14px;
  white-space: nowrap;
}

/* =====================================================
   Footer Menu
===================================================== */
.footer-widgets {
  display: flex;
  justify-content: center;
}

.footer-widgets .widget {
  width: 100%;
  text-align: center;
}

.footer-widgets .menu {
  display: inline-flex;
  gap: 22px;
  padding: 0;
  margin: 0;
}

.footer-widgets .menu li {
  list-style: none;
  margin: 0;
}

.footer-widgets .menu a {
  font-size: 14px;
  color: #555;
  text-decoration: none;
}

.footer-widgets .menu a:hover {
  color: #000;
  text-decoration: underline;
}
/* ================================
   GG PATCH: Header + Menu (no wrap)
================================ */

/* Make header layout: logo left, menu right */
.inside-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px;
}

.site-branding {
  flex: 0 0 auto !important;
}

.main-navigation {
  flex: 1 1 auto !important;
}

/* Keep menu horizontal and aligned right */
.main-navigation .main-nav > ul {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  flex-wrap: nowrap !important; /* key: prevents 2nd line */
  gap: 4px;
}

/* Tighten menu spacing so it fits */
.main-navigation .main-nav > ul > li > a {
  padding: 8px 10px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* If it still wraps on smaller widths, allow wrap below 980px */
@media (max-width: 980px) {
  .main-navigation .main-nav > ul {
    flex-wrap: wrap !important;
  }
}

/* ================================
   GG PATCH: OPTIONAL - Hide policy links in TOP menu
   (Keep these links in footer only)
   Uncomment if you want a cleaner money-site menu.
================================ */
/*
.main-navigation a[href*="privacy-policy"],
.main-navigation a[href*="affiliate-disclosure"],
.main-navigation a[href*="contact"],
.main-navigation a[href*="about"] {
  display: none !important;
}
*/

/* ================================
   GG PATCH: Hero CTA buttons (force style)
================================ */
.gg-hero-cta a,
.entry-content .gg-hero-cta a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
}

.entry-content .gg-hero-cta a:first-child {
  background: #111827 !important;
  color: #fff !important;
}

.entry-content .gg-hero-cta a:last-child {
  background: #fff !important;
  color: #111827 !important;
  border-color: #d1d5db !important;
}
/* =================================================
   GG FINAL NAV CLEANUP (CSS-only, production safe)
================================================= */

/* 1) Hide policy + utility pages from TOP menu */
.main-navigation a[href*="privacy-policy"],
.main-navigation a[href*="affiliate-disclosure"],
.main-navigation a[href*="contact"],
.main-navigation a[href*="about"] {
  display: none !important;
}

/* 2) Hide individual review pages from TOP menu */
.main-navigation a[href*="chatgpt-review"],
.main-navigation a[href*="jasper-review"] {
  display: none !important;
}

/* 3) Ensure menu never wraps */
.main-navigation .main-nav > ul {
  flex-wrap: nowrap !important;
}
/* ===== GG: Homepage polish ===== */

.gg-wrap { max-width: 1100px; margin: 0 auto; padding: 0 18px; }

.gg-hero {
  padding: 56px 0;
  background: #f7f8fb;
  border-bottom: 1px solid #eef0f4;
}

.gg-hero h1 {
  font-size: 42px;
  line-height: 1.08;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.gg-hero p {
  font-size: 18px;
  margin: 0 0 18px;
  max-width: 760px;
  color: #374151;
}

.gg-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 10px; }

.gg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}

.gg-btn-primary { background: #111827; color: #fff; }
.gg-btn-primary:hover { opacity: 0.92; }
.gg-btn-secondary { background: #fff; color: #111827; border-color: #d1d5db; }

.gg-trustline {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 13px;
  color: #6b7280;
}

.gg-section { padding: 44px 0; }
.gg-soft { background: #fafafa; border-top: 1px solid #f0f2f5; border-bottom: 1px solid #f0f2f5; }

.gg-section-head h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.01em; }
.gg-section-head p { margin: 0 0 18px; color: #4b5563; max-width: 780px; }

.gg-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.gg-card {
  display: block;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  transition: transform .08s ease, box-shadow .08s ease;
}

.gg-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.06); }

.gg-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.gg-card h3 { margin: 0; font-size: 18px; color: #111827; }
.gg-card p { margin: 0 0 12px; color: #374151; line-height: 1.55; }

.gg-badge {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.gg-link { font-weight: 800; color: #111827; }

.gg-mini { margin-top: 6px; }
.gg-mini-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
}
.gg-mini-card strong { display: block; margin-bottom: 6px; }
.gg-mini-card p { margin: 0; color: #374151; line-height: 1.55; }

@media (max-width: 900px) {
  .gg-grid-3 { grid-template-columns: 1fr; }
  .gg-hero h1 { font-size: 32px; }
}
/* =================================================
   GG FIX: Top Picks card alignment (Gutenberg-safe)
================================================= */

/* Force Top Picks area into clean grid */
.gg-section .wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
}

/* On mobile: single column */
@media (max-width: 900px) {
  .gg-section .wp-block-columns {
    grid-template-columns: 1fr !important;
  }
}

/* Treat each column as ONE card */
.gg-section .wp-block-column {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Remove nested white boxes */
.gg-section .wp-block-column .wp-block-group,
.gg-section .wp-block-column .wp-block-buttons {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Align button inside card */
.gg-section .wp-block-column .wp-block-button {
  margin-top: 14px;
}

.gg-section .wp-block-column .wp-block-button__link {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  background: #111827;
  color: #fff !important;
}

/* Card hover effect */
.gg-section .wp-block-column:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  transition: transform .08s ease, box-shadow .08s ease;
}

/* Badge polish */
.gg-section .wp-block-column strong {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  border-radius: 999px;
  margin-left: 8px;
}
/* =========================
   GG: Above-the-fold polish
========================= */

/* tighter, cleaner hero spacing */
.gg-hero { padding: 44px 0 !important; }
.gg-hero h1 { margin-bottom: 10px !important; letter-spacing: -0.02em; }
.gg-hero p { margin-bottom: 16px !important; color: #374151; }
.gg-hero-cta { margin-top: 14px !important; }

/* prevent too-wide content + improve rhythm */
.gg-wrap { max-width: 1100px; margin: 0 auto; padding: 0 18px; }
.entry-content > * { margin-bottom: 18px; }

/* =========================
   GG: Top picks (full card clickable + icons + tooltip)
========================= */

.gg-top-picks .gg-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .gg-top-picks .gg-grid-3 { grid-template-columns: 1fr; }
}

.gg-card-link {
  display: block;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  text-decoration: none !important;
  transition: transform .08s ease, box-shadow .08s ease;
  color: inherit;
}

.gg-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

.gg-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.gg-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gg-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #111827;
  flex: 0 0 auto;
}

.gg-card-link h3 {
  margin: 0;
  font-size: 18px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gg-card-link p {
  margin: 0 0 12px;
  color: #374151;
  line-height: 1.55;
}

.gg-cta {
  font-weight: 800;
  color: #111827;
}

/* Badge + tooltip */
.gg-badge {
  position: relative;
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: help;
}

.gg-badge:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 240px;
  background: #111827;
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.35;
  z-index: 999;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.gg-badge:hover::before {
  content: "";
  position: absolute;
  right: 14px;
  top: calc(100% + 2px);
  border: 6px solid transparent;
  border-bottom-color: #111827;
}
/* =========================
   GG FINAL WIDTH FIX
   (Homepage only)
========================= */

/* Allow homepage sections to use full width */
.home .entry-content {
  max-width: none !important;
  padding: 0 !important;
}

/* Control width via our own wrapper */
.home .gg-wrap {
  max-width: 1200px;   /* slightly wider than before */
  margin: 0 auto;
  padding: 0 24px;
}

/* Give cards more breathing room */
.gg-top-picks .gg-grid-3 {
  gap: 20px;
}

/* Slightly larger cards for clarity */
.gg-card-link {
  padding: 20px;
}

/* Improve section separation */
.gg-section {
  padding: 52px 0;
}

/* Hero: visually stronger above the fold */
.gg-hero {
  padding: 56px 0 !important;
}

/* Make cards feel balanced on desktop */
@media (min-width: 1024px) {
  .gg-top-picks .gg-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* =========================
   GG: Comparison section
========================= */

.gg-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .gg-compare-grid { grid-template-columns: 1fr; }
}

.gg-compare-card {
  display: block;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  transition: transform .08s ease, box-shadow .08s ease;
}

.gg-compare-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

.gg-compare-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.gg-compare-card h3 {
  margin: 0;
  font-size: 18px;
  color: #111827;
}

.gg-pill {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.gg-compare-card p {
  margin: 0 0 12px;
  color: #374151;
  line-height: 1.55;
}

.gg-compare-note {
  margin-top: 14px;
  font-size: 13px;
  color: #4b5563;
  background: #f7f8fb;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: 12px 14px;
}

.gg-compare-note a {
  font-weight: 800;
  text-decoration: none;
}
/* =================================================
   GG FIX: Quick comparisons (Gutenberg-safe)
================================================= */

/* Grid for comparisons */
.gg-compare .wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 18px !important;
}

/* Mobile: stack */
@media (max-width: 900px) {
  .gg-compare .wp-block-columns {
    grid-template-columns: 1fr !important;
  }
}

/* Each column becomes ONE card */
.gg-compare .wp-block-column {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .08s ease, box-shadow .08s ease;
}

/* Hover polish */
.gg-compare .wp-block-column:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

/* Remove nested junk boxes */
.gg-compare .wp-block-column .wp-block-group,
.gg-compare .wp-block-column .wp-block-buttons {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Button → inline CTA */
.gg-compare .wp-block-button {
  margin-top: 14px;
}

.gg-compare .wp-block-button__link {
  background: none !important;
  color: #111827 !important;
  font-weight: 800 !important;
  padding: 0 !important;
  border: 0 !important;
  text-decoration: none !important;
}

/* Make whole card clickable */
.gg-compare .wp-block-column {
  cursor: pointer;
}

/* Hide empty spacer columns */
.gg-compare .wp-block-column:empty {
  display: none !important;
}
/* =================================================
   FINAL FIX: Quick comparisons card unification
================================================= */

/* Grid layout */
.gg-compare .wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 18px !important;
}

@media (max-width: 900px) {
  .gg-compare .wp-block-columns {
    grid-template-columns: 1fr !important;
  }
}

/* Card styling */
.gg-compare .wp-block-column {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .08s ease, box-shadow .08s ease;
  cursor: pointer;
}

/* Hover */
.gg-compare .wp-block-column:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

/* Kill empty placeholder columns */
.gg-compare .wp-block-column:empty {
  display: none !important;
}

/* Remove button box UI */
.gg-compare .wp-block-buttons,
.gg-compare .wp-block-button {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin-top: 12px !important;
}

/* Button becomes inline CTA */
.gg-compare .wp-block-button__link {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  font-weight: 800 !important;
  color: #111827 !important;
  text-decoration: none !important;
}

/* Prevent nested white boxes */
.gg-compare .wp-block-group {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

/* Make whole card clickable */
.gg-compare .wp-block-column a {
  text-decoration: none !important;
  color: inherit;
}

/* Hide duplicate CTA buttons when card already exists */
.gg-compare .wp-block-column + .wp-block-column .wp-block-button {
  display: none !important;
}
/* =========================
   GG: Comparison page styling
========================= */

.gg-mini-disclosure {
  font-size: 13px;
  color: #4b5563;
  background: #f7f8fb;
  border: 1px solid #eef0f4;
  padding: 12px 14px;
  border-radius: 14px;
}

.gg-verdict {
  margin: 18px 0 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
}

.gg-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.gg-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.gg-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.gg-table th,
.gg-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f4;
  vertical-align: top;
}

.gg-table th {
  text-align: left;
  background: #f7f8fb;
  font-weight: 800;
}

.gg-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 14px 0 6px;
}

@media (max-width: 900px) {
  .gg-grid-2 { grid-template-columns: 1fr; }
}

.gg-card-lite {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
}

.gg-card-lite h3 { margin-top: 0; }

.gg-cta-box {
  margin: 22px 0;
  background: #f7f8fb;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  padding: 18px;
}

.gg-link {
  font-weight: 800;
  text-decoration: none;
}
.gg-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.gg-compare-card {
  display: block;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gg-compare-card:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.gg-compare-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  color: #111827;
}

.gg-badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  margin-bottom: 10px;
}

.gg-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: #2563eb;
}
/* Homepage: hide WP template H1 (entry-title), keep GG hero H1 */
body.home.page-id-66 h1.entry-title {
  display: none !important;
}
