/* ============================================================
   ATLAS GUIDE — TRAVEL GADGETS PAGE
   travel-gadgets.css
   Requires: global.css + header-footer.css loaded first
   ============================================================ */

/* ============================================================
   LOCAL TOKEN BRIDGE
   ============================================================ */
:root {
  --primary:       var(--ag-green-800);
  --primary-light: var(--ag-green-600);
  --primary-dark:  var(--ag-green-900);
  --secondary:     var(--ag-terra-500);
  --accent:        var(--ag-gold-500);

  --text:          var(--ag-ink);
  --text-mid:      var(--ag-ink-mid);
  --text-light:    var(--ag-ink-light);

  --bg:            var(--ag-warm-white);
  --bg-warm:       var(--ag-parchment);
  --bg-dark:       var(--ag-night);
  --bg-card:       var(--ag-white);
  --line:          rgba(42, 36, 32, .12);
}

/* ============================================================
   CONTAINERS
   ============================================================ */
.container     { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px); }
.container--mid { max-width: 860px;  margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px); }

/* ============================================================
   SECTION PRIMITIVES
   ============================================================ */
.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 16px;
}
.sec-eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--ag-gold-500); border-radius: 2px; }

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 400;
  line-height: 1.1; color: var(--text); margin-bottom: 16px; letter-spacing: -.02em;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.tg-progress {
  position: fixed; top: 0; left: 0; width: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 10000; transition: width .15s;
}

/* ============================================================
   HERO
   ============================================================ */
.tg-hero { position: relative; padding: 140px 0 80px; overflow: hidden; background: var(--bg-dark); }
.tg-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0c150e 0%, #0f2420 35%, #1a3830 65%, #1a2010 100%);
}
.tg-hero-pattern {
  position: absolute; inset: 0; opacity: .04;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 48px 48px;
}
.tg-hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.tg-hero-orb-1 { width: 500px; height: 500px; background: rgba(26,58,43,.22); top: -120px; right: -80px; }
.tg-hero-orb-2 { width: 360px; height: 360px; background: rgba(194,75,58,.14); bottom: -60px; left: -60px; }
.tg-hero-inner { position: relative; z-index: 2; }

.tg-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(26,58,43,.25); border: 1px solid rgba(26,58,43,.4);
  color: rgba(255,255,255,.85); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 20px; border-radius: var(--radius-full);
  margin-bottom: 28px; backdrop-filter: blur(8px);
}
.tg-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 400;
  line-height: 1.05; color: #fff; letter-spacing: -.03em; margin-bottom: 20px;
}
.tg-hero h1 em { font-style: italic; color: var(--ag-gold-500); }
.tg-hero-sub   { font-size: clamp(.95rem, 1.6vw, 1.1rem); color: rgba(255,255,255,.65); max-width: 520px; line-height: 1.8; margin-bottom: 44px; }

.tg-hero-stats { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.tg-hero-stat strong { font-family: var(--font-display); font-size: 2rem; font-weight: 400; color: #fff; display: block; line-height: 1; margin-bottom: 4px; }
.tg-hero-stat span   { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.38); }
.tg-hero-sep         { width: 1px; height: 40px; background: rgba(255,255,255,.10); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.tg-breadcrumb        { padding: 14px 0; border-bottom: 1px solid var(--line); background: var(--bg-card); }
.tg-breadcrumb-inner  { display: flex; align-items: center; font-size: .8rem; color: var(--text-light); gap: 6px; }
.tg-breadcrumb-inner a { color: var(--text-mid); font-weight: 600; transition: color .2s; }
.tg-breadcrumb-inner a:hover { color: var(--primary); }
.tg-breadcrumb-sep    { font-size: .7rem; }

/* ============================================================
   INTRO
   ============================================================ */
.tg-intro { text-align: center; padding: 64px 0 48px; }
.tg-intro p { font-size: .95rem; color: var(--text-mid); max-width: 640px; margin: 0 auto 10px; line-height: 1.8; }
.tg-intro p:last-child { margin-bottom: 0; }

/* ============================================================
   CATEGORY NAV
   ============================================================ */
.tg-cat-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,248,242,.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line); padding: 0;
}
.tg-cat-nav-inner { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tg-cat-nav-inner::-webkit-scrollbar { display: none; }

.tg-cat-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 18px 22px; border: none; background: transparent;
  color: var(--text-light); font-family: var(--font-body);
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  cursor: pointer; white-space: nowrap; transition: all .25s;
  position: relative; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tg-cat-btn::after {
  content: ''; position: absolute; bottom: -1px; left: 22px; right: 22px;
  height: 2px; background: var(--primary); border-radius: 2px 2px 0 0;
  transform: scaleX(0); transition: transform .3s var(--ease-out);
}
.tg-cat-btn:hover       { color: var(--primary); }
.tg-cat-btn.active      { color: var(--primary); }
.tg-cat-btn.active::after { transform: scaleX(1); }
.tg-cat-emoji           { font-size: 1rem; }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.tg-main { padding: 0 0 80px; }

/* ============================================================
   CATEGORY SECTIONS
   ============================================================ */
.tg-cat-section {
  padding: 72px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px;
}
.tg-cat-section:last-of-type { border-bottom: none; }

.tg-cat-header { display: flex; align-items: center; gap: 20px; margin-bottom: 48px; }
.tg-cat-icon   {
  width: 60px; height: 60px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ag-green-800), var(--ag-green-600));
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.tg-cat-header h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 400; color: var(--text); letter-spacing: -.02em; }
.tg-cat-header p  { font-size: .88rem; color: var(--text-light); margin-top: 4px; }

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.tg-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.tg-card {
  background: var(--bg-card); border: 1.5px solid var(--line);
  border-radius: var(--radius-xl); padding: 32px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: all .4s var(--ease-out);
}
.tg-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--ag-green-800), var(--ag-gold-500));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.tg-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--ag-green-100); }
.tg-card:hover::before { transform: scaleX(1); }

.tg-card--featured {
  background: var(--ag-green-50);
  border-color: rgba(26,58,43,.18);
}

.tg-card-badge {
  position: absolute; top: 20px; right: 20px;
  background: var(--ag-green-50); color: var(--primary);
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid rgba(26,58,43,.14);
}
.tg-card-badge--hot {
  background: var(--ag-terra-50); color: var(--secondary);
  border-color: rgba(194,75,58,.18);
}

.tg-card-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--ag-green-50), rgba(194,75,58,.06));
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 20px; transition: transform .3s var(--ease-out);
}
.tg-card:hover .tg-card-icon { transform: scale(1.08) rotate(-3deg); }

.tg-card h3     { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; color: var(--text); margin-bottom: 10px; line-height: 1.25; letter-spacing: -.01em; }
.tg-card-desc   { font-size: .86rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 18px; flex-grow: 1; }

.tg-features    { list-style: none; margin-bottom: 20px; }
.tg-features li { display: flex; align-items: flex-start; gap: 9px; padding: 6px 0; font-size: .82rem; color: var(--text-mid); line-height: 1.5; border-bottom: 1px solid var(--line); }
.tg-features li:last-child { border-bottom: none; }
.tg-features-check { color: var(--primary); font-weight: 800; font-size: .8rem; flex-shrink: 0; margin-top: 1px; }

.tg-price-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 14px 16px; background: var(--bg-warm);
  border-radius: var(--radius-md); margin-bottom: 16px; border: 1px solid var(--line);
}
.tg-price-val  { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; color: var(--primary); line-height: 1; }
.tg-price-note { font-size: .76rem; color: var(--text-light); font-weight: 600; }

.tg-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff; padding: 14px 24px;
  border-radius: var(--radius-full); font-size: .84rem; font-weight: 700;
  font-family: var(--font-body); transition: all .35s var(--ease-out);
  margin-top: auto; letter-spacing: .02em;
}
.tg-cta:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,58,43,.25); }
.tg-cta-arrow { transition: transform .3s; }
.tg-cta:hover .tg-cta-arrow { transform: translateX(3px); }

/* ============================================================
   WHY SECTION
   ============================================================ */
.tg-why { background: var(--bg-warm); border-top: 1px solid var(--line); padding: 100px 0; }
.tg-why-header { text-align: center; margin-bottom: 56px; }
.tg-why-header .sec-title { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.tg-why-desc   { font-size: .95rem; color: var(--text-mid); max-width: 560px; margin: 0 auto; line-height: 1.8; }

.tg-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tg-why-card {
  background: var(--bg-card); border: 1.5px solid var(--line);
  border-radius: var(--radius-xl); padding: 36px 28px; text-align: center;
  transition: all .35s var(--ease-out);
}
.tg-why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--ag-green-100); }
.tg-why-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--ag-green-800), var(--ag-green-600));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 26px;
}
.tg-why-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; margin-bottom: 10px; color: var(--text); }
.tg-why-card p  { font-size: .86rem; color: var(--text-mid); line-height: 1.75; }

/* ============================================================
   AFFILIATE DISCLOSURE
   ============================================================ */
.tg-disclosure {
  background: var(--ag-green-50); border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 22px 26px; margin: 48px auto 0; max-width: 800px;
}
.tg-disclosure h4 { font-size: .82rem; font-weight: 800; color: var(--primary); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.tg-disclosure p  { font-size: .82rem; color: var(--text-mid); line-height: 1.75; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal]           { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].visible   { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .1s; }
[data-reveal][data-delay="2"] { transition-delay: .2s; }
[data-reveal][data-delay="3"] { transition-delay: .3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .tg-products { grid-template-columns: repeat(2, 1fr); }
  .tg-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .tg-hero       { padding: 120px 0 60px; }
  .tg-hero-sep   { display: none; }
  .tg-products   { grid-template-columns: 1fr; }
  .tg-why-grid   { grid-template-columns: 1fr; }
  .tg-cat-header { flex-direction: column; align-items: flex-start; }
  .tg-card       { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}