/* ============================================================
   base.css — Newegg Shopping Tools Page
   ============================================================ */

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Open Sans', sans-serif;
  background: #f2f4f9;
  color: #0e1540;
  min-width: 375px;
  -webkit-font-smoothing: antialiased;
}
a    { text-decoration: none; color: inherit; }
img  { display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --orange:        #FA9D28;
  --dark-orange:   #AA5403;
  --dark:          #0e1540;
  --gray:          #6b7694;
  --border-tool:   #edf0fa;
  --border-guide:  #e1e5f0;
  --blue:          #1061cd;
  --bg:            #f2f4f9;
  --shadow-card:   0 4px 16px rgba(9,20,79,.07);
  --shadow-guide:  0 2px 8px  rgba(9,20,79,.05);
  --radius-tool:   14px;
  --radius-guide:  12px;
}


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: #1c1c1c;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* Top bar */
.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 54px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  user-select: none;
}
.logo-egg {
  width: 34px;
  height: 34px;
  background: var(--orange);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-egg svg { width: 18px; height: 18px; fill: white; }
.logo-wordmark { color: white; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.logo-wordmark span { color: var(--orange); }

/* Search */
.header-search {
  flex: 1;
  max-width: 660px;
  display: flex;
  height: 34px;
  border-radius: 4px;
  overflow: hidden;
}
.header-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 13px;
  font-family: inherit;
  background: white;
  color: #333;
}
.header-search input::placeholder { color: #aaa; }
.header-search-btn {
  background: var(--orange);
  border: none;
  padding: 0 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header-search-btn svg {
  width: 16px; height: 16px;
  stroke: white; fill: none;
  stroke-width: 2; stroke-linecap: round;
}

/* Action icons */
.header-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; flex-shrink: 0; }
.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #bbb;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s;
  white-space: nowrap;
}
.header-action:hover { color: var(--orange); }
.header-action svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* Sub-nav */
.header-nav { background: #2b2b2b; border-top: 1px solid #3a3a3a; }
.header-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 36px;
  overflow: hidden;
}
.nav-link {
  color: #bbb;
  font-size: 12px;
  font-weight: 600;
  padding: 0 13px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: color .15s, background .15s;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: white; }
.nav-link.active { color: var(--orange); border-bottom-color: var(--orange); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #090d1e;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5,8,28,.72)  0%,
    rgba(5,8,28,.45) 48%,
    rgba(5,8,28,.08) 80%,
    transparent      100%
  );
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.hero-content-wrap {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
/* aligns text to ~140px from left edge on 1440px screen */
.hero-text { max-width: 520px; padding-left: 116px; }
.hero-eyebrow { width: 16px; height: 2px; background: var(--orange); margin-bottom: 20px; }
.hero-title {
  font-size: 54px;
  font-weight: 800;
  color: white;
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,.82);
  line-height: 1.6;
  max-width: 430px;
}
.ngg-arrow{
  padding:2px 2px 0px 0px;
}

/* ============================================================
   SHARED SECTION LAYOUT
   ============================================================ */
.section { padding: 60px 0 40px; }
.section + .section { padding-top: 20px; }

/* Centered content column — matches 1160px Figma content width */
.content-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section header */
.section-head { margin-bottom: 30px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.eyebrow-bar { width: 16px; height: 2px; background: var(--dark-orange); flex-shrink: 0; }
.eyebrow-label { font-size: 11px; font-weight: 700; color: var(--dark-orange); letter-spacing: .6px; }
.section-title { font-size: 26px; font-weight: 800; color: var(--dark); margin-bottom: 8px; line-height: 1.25; }
.section-sub   { font-size: 14px; font-weight: 400; color: var(--gray); }


/* ============================================================
   TOOL CARDS  (Build, Find & Configure)
   ============================================================ */
.tools-stack { display: flex; flex-direction: column; gap: 20px; }
.tools-row   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.tool-card {
  background: white;
  border: 1.5px solid var(--border-tool);
  border-radius: var(--radius-tool);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  min-height: 178px;
  display: flex;
  align-items: stretch;
  cursor: pointer;
  transition: box-shadow .2s, transform .15s;
  color: inherit;
}
.tool-card:hover {
  box-shadow: 0 8px 28px rgba(9,20,79,.13);
  transform: translateY(-2px);
}
.tool-card.featured { border-color: var(--orange); }

/* Text content side */
.tool-card-body {
  padding: 22px 10px 18px 19px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.tool-card-title { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.25; }
.tool-card-desc  { font-size: 11px; font-weight: 400; color: var(--gray); line-height: 1.55; flex: 1; }
.tool-card-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--orange);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  padding: 5px 20px;
  border-radius: 40px;
  width: fit-content;
}
.tool-card-btn .arr { font-size: 11px; line-height: 1; }

/* Image side — flex child, not absolute */
.tool-card-img {
  flex-shrink: 0;
  width: 120px;
  padding-right: 20px;          /* 20px gap from card right edge */
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-card-img img {
  width: 100%;
  max-height: 110px;
  object-fit: contain;
}

/* ── Featured badges ─────────────────────────────────────── */
/* Shared style for both badges: hang-tab from the top orange border */
.badge-tag {
  position: absolute;
  top: 0;
  right: 18px;
  background: var(--orange);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  padding: 5px 10px;
  border-radius: 0 0 6px 6px;   /* flat top (flush with border), rounded bottom */
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  z-index: 5;
  pointer-events: none;
}
.badge-tag img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}


/* ============================================================
   BUYING GUIDE CARDS  (Not Sure Where to Start?)
   ============================================================ */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guide-card {
  background: white;
  border: 1px solid var(--border-guide);
  border-radius: var(--radius-guide);
  box-shadow: var(--shadow-guide);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow .2s, transform .15s;
  color: inherit;
}
.guide-card:hover {
  box-shadow: 0 6px 24px rgba(9,20,79,.12);
  transform: translateY(-2px);
}
.guide-card-img {
  width: 100%;
  height: 210px;
  overflow: hidden;
  flex-shrink: 0;
}
.guide-card-img img { width: 100%; height: 100%; object-fit: cover; }
.guide-card-body {
  padding: 22px 21px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.guide-card-title { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.3; }
.guide-card-desc  { font-size: 13px; font-weight: 400; color: var(--gray); line-height: 1.6; flex: 1; margin-bottom: 18px; }

/* Blue "Learn more" pill */
.btn-learn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--blue);
  color: white;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  padding: 5px 24px;
  border-radius: 40px;
  width: fit-content;
  transition: background .15s;
}
.btn-learn:hover { background: #0d52b0; }
.btn-learn .arr { font-size: 13px; }

/* Centered tertiary "See all" button */
.center-cta { display: flex; justify-content: center; padding: 36px 0 16px; }
.btn-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: #212121;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  padding: 8px 24px 8px 28px;
  border-radius: 24px;
  border: 2px solid #adadad;
  cursor: pointer;
  transition: border-color .15s;
}
.btn-tertiary:hover { border-color: #555; }
.btn-tertiary .arr { font-size: 13px; }


/* ============================================================
   HOW-TO ARTICLE CARDS  (Build With Confidence)
   ============================================================ */
.howto-list { display: flex; flex-direction: column; gap: 24px; }

.howto-card {
  background: white;
  border: 1px solid var(--border-guide);
  border-radius: var(--radius-guide);
  box-shadow: var(--shadow-guide);
  overflow: hidden;
  display: flex;
  min-height: 302px;             /* grows with content, never clips */
  cursor: pointer;
  transition: box-shadow .2s, transform .15s;
  color: inherit;
}
.howto-card:hover {
  box-shadow: 0 6px 24px rgba(9,20,79,.12);
  transform: translateY(-2px);
}
.howto-card-img {
  width: 61%;
  flex-shrink: 0;
  overflow: hidden;
}
.howto-card-img img { width: 100%; height: 100%; object-fit: cover; }
.howto-card-body {
  flex: 1;
  padding: 36px 36px 32px 40px;
  display: flex;
  flex-direction: column;
}
.howto-card-body > .howto-card-content { flex: 1; }   /* title + desc take remaining height */
.howto-card-title { font-size: 20px; font-weight: 700; color: var(--dark); line-height: 1.35; margin-bottom: 14px; }
.howto-card-desc  { font-size: 13px; font-weight: 400; color: var(--gray); line-height: 1.65; }
.howto-card-cta   { margin-top: 24px; }                /* always sits below content */


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #1b1c21; color: #aaa; margin-top: 80px; }

.footer-body {
  max-width: 1440px;
  margin: 0 auto;
  padding: 52px 140px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid #2e2e35;
}

/* Brand column */
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}
.footer-brand-egg {
  width: 30px;
  height: 30px;
  background: var(--orange);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-brand-egg svg { width: 15px; height: 15px; fill: white; }
.footer-brand-name    { color: white; font-size: 18px; font-weight: 800; }
.footer-brand-tagline { font-size: 12px; color: #777; line-height: 1.5; max-width: 200px; }

/* Link columns */
.footer-col h4 {
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 12px; color: #888; transition: color .15s; }
.footer-col ul li a:hover { color: white; }

/* Bottom bar */
.footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy { font-size: 11px; color: #555; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 11px; color: #555; transition: color .15s; }
.footer-links a:hover { color: #aaa; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 30px;
  height: 30px;
  border: 1px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color .15s, border-color .15s;
}
.footer-social a:hover { color: white; border-color: #777; }
.footer-social svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}


/* ============================================================
   RESPONSIVE — TABLET  801–1100px
   ============================================================ */
@media (min-width: 801px) and (max-width: 1100px) {
  .hero-text     { padding-left: 40px; }
  .hero-title    { font-size: 42px; }
  .footer-body   { padding: 48px 40px 36px; }
  .footer-bottom { padding: 16px 40px; }
}


/* ============================================================
   RESPONSIVE — MOBILE  ≤800px
   ============================================================ */
@media (max-width: 800px) {

  /* Header */
  .header-top  { height: 50px; padding: 0 16px; gap: 10px; }
  .header-nav  { display: none; }
  .header-search { max-width: none; flex: 1; }
  .header-action span { display: none; }
  .header-action { gap: 0; }
  .header-actions { gap: 14px; }

  /* Hero */
  .hero { height: auto; min-height: 240px; }
  .hero-bg { height: 260px; object-position: center; }
  .hero-content { align-items: flex-start; padding-top: 36px; }
  .hero-text { padding-left: 0; }
  .hero-content-wrap { padding: 0 20px; }
  .hero-title    { font-size: 28px; }
  .hero-subtitle { font-size: 14px; max-width: 62%; }
  .hero-eyebrow  { margin-bottom: 14px; }

  /* Sections */
  .section { padding: 36px 0 24px; }
  .section + .section { padding-top: 4px; }
  .content-wrap  { padding: 0 16px; }
  .section-title { font-size: 22px; }
  .section-sub   { font-size: 13px; }

  /* Tool cards — single column */
  .tools-row        { grid-template-columns: 1fr; }
  .tool-card        { min-height: 130px; }
  .tool-card-body   { padding: 14px 8px 14px 16px; }
  .tool-card-title  { font-size: 15px; margin-bottom: 6px; }
  .tool-card-btn    { font-size: 10px; padding: 4px 16px; margin-top: 10px; }
  .tool-card-img    { width: 100px; padding-right: 14px; }
  .tool-card-img img { max-height: 90px; }

  /* Guide cards — single column */
  .guides-grid      { grid-template-columns: 1fr; gap: 16px; }
  .guide-card-img   { height: 200px; }
  .guide-card-title { font-size: 17px; }

  /* How-to cards — stacked (image on top, text below) */
  .howto-card         { flex-direction: column; min-height: unset; }
  .howto-card-img     { width: 100%; height: 210px; }
  .howto-card-body    { padding: 22px 20px; }
  .howto-card-title   { font-size: 16px; }
  .howto-card-cta     { margin-top: 16px; }

  /* Footer */
  .footer-body   { padding: 40px 20px 28px; }
  .footer-grid   { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .footer-brand  { grid-column: 1 / -1; }
  .footer-brand-tagline { max-width: 100%; }
  .footer-bottom { padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 10px; }
}
