/* ============================================================
   PEAKPICKLIST.COM — Main Stylesheet
   Structure:
   1. Fonts & CSS Variables
   2. Reset & Base
   3. Typography
   4. Layout Utilities
   5. Navigation
   6. Footer
   7. Buttons & Badges
   8. Product Cards
   9. Responsive
   ============================================================ */


/* ── 1. FONTS & CSS VARIABLES ─────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  /* Brand Colors */
  --lime:        #C8F135;
  --lime-dark:   #a8cc1f;
  --dark:        #111210;
  --mid:         #1e1f1b;
  --card-bg:     #191a16;
  --muted:       #7a7c72;
  --text:        #edeee8;
  --border:      #2a2b25;
  --border-hover:#3a3c33;

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --page-pad:    28px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-pill: 999px;

  /* Transitions */
  --ease: 0.18s ease;
}


/* ── 2. RESET & BASE ──────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* pushes footer to bottom */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--lime);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--lime-dark);
}

ul, ol {
  list-style: none;
}


/* ── 3. TYPOGRAPHY ────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.05;
  letter-spacing: 0.5px;
}

h1 { font-size: clamp(42px, 8vw, 72px); }
h2 { font-size: clamp(28px, 5vw, 42px); }
h3 { font-size: clamp(20px, 3vw, 28px); }
h4 { font-size: 20px; }

p {
  color: var(--muted);
  line-height: 1.7;
}

.text-accent { color: var(--lime); }
.text-muted   { color: var(--muted); }
.text-primary  { color: var(--text); }

/* Eyebrow label above headings */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lime);
  display: block;
  margin-bottom: 10px;
}


/* ── 4. LAYOUT UTILITIES ──────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}

/* Horizontal divider */
.divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 40px 0;
}

/* Simple flex helpers */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm      { gap: 8px; }
.gap-md      { gap: 16px; }
.gap-lg      { gap: 28px; }


/* ── 5. NAVIGATION ────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 18, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

/* Logo */
.nav-logo {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--lime);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--text);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: background var(--ease), color var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--mid);
}

/* Nav CTA button */
.nav-cta {
  background: var(--lime);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--ease);
  display: inline-block;
}

.nav-cta:hover {
  background: var(--lime-dark);
  color: var(--dark);
}

/* Mobile hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

/* Mobile nav open state */
.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--dark);
  border-bottom: 0.5px solid var(--border);
  padding: 16px var(--page-pad);
  gap: 4px;
  align-items: flex-start;
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ── 6. FOOTER ────────────────────────────────────────────── */

.site-footer {
  background: var(--mid);
  border-top: 0.5px solid var(--border);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--ease);
}

.footer-col ul li a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 0.5px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-disclosure {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 600px;
}

.footer-copy {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}


/* ── 7. BUTTONS & BADGES ──────────────────────────────────── */

/* Primary button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--lime);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--lime-dark);
  color: var(--dark);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 0.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--mid);
}

/* Amazon affiliate button */
.btn-amazon {
  background: transparent;
  color: var(--muted);
  border: 0.5px solid var(--border);
  font-size: 12px;
  padding: 7px 14px;
}

.btn-amazon:hover {
  background: var(--lime);
  color: var(--dark);
  border-color: var(--lime);
}

/* See all link */
.link-all {
  font-size: 12px;
  color: var(--lime);
  text-decoration: none;
  transition: color var(--ease);
}

.link-all:hover {
  color: var(--lime-dark);
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
}

.badge-pick    { background: var(--lime); color: var(--dark); }
.badge-cat     { background: var(--mid); color: var(--muted); border: 0.5px solid var(--border); }
.badge-new     { background: #2a3a1a; color: #8ecf40; border: 0.5px solid #3a5a20; }
.badge-sale    { background: #3a1a1a; color: #e05555; border: 0.5px solid #5a2020; }


/* ── 8. PRODUCT CARDS ─────────────────────────────────────── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--card-bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease), transform var(--ease);
}

.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  color: inherit;
}

.product-card__img {
  width: 100%;
  height: 180px;
  background: #232419;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.product-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__badges {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.product-card__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 3px;
}

.product-card__brand {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
  margin-top: auto;
}

.stars { color: var(--lime); font-size: 12px; letter-spacing: 1px; }
.rating-count { font-size: 11px; color: var(--muted); }

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 0.5px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}

.product-card__price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  line-height: 1;
}

/* Filter buttons */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-btn {
  background: transparent;
  border: 0.5px solid var(--border);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--ease);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--lime);
  color: var(--dark);
  border-color: var(--lime);
}


/* ── 9. RESPONSIVE ────────────────────────────────────────── */

@media (max-width: 768px) {
  :root { --page-pad: 18px; }

  .site-nav { position: relative; }

  .nav-links {
    display: none; /* shown via .nav-open */
  }

  .nav-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .section-header {
    flex-direction: column;
    gap: 8px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-cta {
    display: none; /* hide CTA on very small screens, shown in mobile menu */
  }
}
