/* ========================================================
   TATFT Design Tokens
   Primary: Teal (#00A699) from banner
   Accent: Gold/Yellow (#F5C518) from banner stars
   ======================================================== */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1.063rem, 1rem + 0.25vw, 1.25rem);
  --text-lg:   clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
  --text-xl:   clamp(1.75rem, 1.4rem + 1.25vw, 2.5rem);
  --text-2xl:  clamp(2.25rem, 1.5rem + 2.5vw, 3.25rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Surfaces */
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-surface-2: #F5F5F5;
  --color-border: #E0E0E0;
  --color-divider: #EBEBEB;

  /* Text */
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-text-faint: #999999;

  /* Primary — Teal from banner */
  --color-primary: #00897B;
  --color-primary-hover: #00695C;
  --color-primary-surface: #E0F2F1;

  /* Accent — Warm gold from banner stars */
  --color-accent: #F5A623;
  --color-accent-hover: #E09500;

  /* Layout */
  --content-max: 1160px;
  --content-narrow: 720px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);

  /* Fonts */
  --font-display: 'General Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}


/* ========================================================
   GLOBAL LAYOUT
   ======================================================== */

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: var(--space-10);
}


/* ========================================================
   HEADER
   ======================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.header-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.header-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--color-primary-hover);
}

.mobile-menu-btn {
  display: none;
  padding: var(--space-2);
}

.header-cta-mobile {
  display: none;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text);
}


/* ========================================================
   BANNER HERO
   ======================================================== */

.banner-hero {
  width: 100%;
  overflow: hidden;
  background: #000;
}

.banner-hero img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
}


/* ========================================================
   HERO — LATEST VIDEO
   ======================================================== */

.hero-video {
  background: var(--color-surface);
}

.hero-video-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(var(--space-10), 5vw, var(--space-16)) var(--space-6);
  text-align: center;
}

.hero-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.hero-video-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  max-width: 800px;
  margin-inline: auto;
}

.hero-video-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.video-embed-wrapper {
  max-width: 800px;
  margin: 0 auto var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1.5px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary-surface);
}


/* ========================================================
   ABOUT SECTION
   ======================================================== */

.about {
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-12);
  align-items: start;
}

.about-image-block {
  text-align: center;
}

.about-avatar {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto var(--space-4);
  border: 3px solid var(--color-border);
}

.about-channel-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}

.about-text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.about-badges {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

.about-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-surface);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}


/* ========================================================
   VIDEOS SECTION
   ======================================================== */

.videos-section {
  background: var(--color-surface);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.video-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.video-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.video-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.video-card-body {
  padding: var(--space-4);
}

.video-card-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.video-card-date {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.videos-cta {
  text-align: center;
}


/* ========================================================
   GEAR PREVIEW
   ======================================================== */

.gear-preview {
  background: var(--color-bg);
}

.gear-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}


/* ========================================================
   PRODUCT CARDS (shared between preview + gear page)
   ======================================================== */

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #fff;
  padding: var(--space-3);
}

.product-card-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.25;
  stroke: var(--color-text-muted);
}

.product-card-body {
  padding: var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-vendor {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.product-card-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.35;
}

.product-card-blurb {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  flex: 1;
  line-height: 1.5;
}

.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.product-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.product-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #FFFFFF;
  background: var(--color-primary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  text-decoration: none;
  text-align: center;
}

.product-card-cta:hover {
  background: var(--color-primary-hover);
}

.product-card-source {
  font-size: 11px;
  color: var(--color-text-faint);
  margin-top: var(--space-2);
}

.product-card-source a {
  color: var(--color-primary);
  text-decoration: none;
}

.product-card-source a:hover {
  text-decoration: underline;
}


/* ========================================================
   SEARCH SECTION
   ======================================================== */

.search-section {
  background: var(--color-surface);
  text-align: center;
}

.search-section .section-subtitle {
  margin-inline: auto;
}


/* ========================================================
   CONTACT SECTION
   ======================================================== */

.contact-section {
  background: var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.contact-tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  text-align: center;
}

.contact-tile-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.contact-tile p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.contact-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
}


/* ========================================================
   FOOTER
   ======================================================== */

.site-footer {
  background: var(--color-text);
  color: #FFFFFF;
  padding: var(--space-10) var(--space-6);
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.footer-brand-text {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #FFFFFF;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-attr {
  width: 100%;
  text-align: center;
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-attr a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.footer-attr a:hover {
  color: rgba(255,255,255,0.8);
}


/* ========================================================
   GEAR STORE PAGE
   ======================================================== */

.gear-hero {
  background: var(--color-surface);
  padding: clamp(var(--space-10), 5vw, var(--space-16)) var(--space-6);
  text-align: center;
}

.gear-hero .section-title {
  margin-bottom: var(--space-3);
}

.gear-hero .section-subtitle {
  margin-inline: auto;
}

.gear-category-section {
  padding-block: clamp(var(--space-8), 4vw, var(--space-16));
}

.gear-category-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}

.affiliate-disclosure {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  padding: var(--space-6);
  border-top: 1px solid var(--color-divider);
  max-width: var(--content-max);
  margin: 0 auto;
}


/* ========================================================
   MOBILE RESPONSIVE
   ======================================================== */

@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-cta { display: none; }
  .mobile-menu-btn { display: block; }

  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) var(--space-6);
    box-shadow: var(--shadow-md);
  }

  .header-nav.open a {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
  }

  .header-nav.open .header-cta-mobile {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--color-primary);
    color: #FFFFFF;
    font-size: var(--text-sm);
    font-weight: 600;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    text-decoration: none;
    text-align: center;
    margin-top: var(--space-2);
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text p { margin-inline: auto; }

  .about-badges { justify-content: center; }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .gear-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .gear-preview-grid {
    grid-template-columns: 1fr;
  }

  .banner-hero img {
    max-height: 180px;
  }
}
