/* ============================================
   GLOBAL STYLES — Video Tool Pro
   Shared across all pages (header, footer, typo, reset)
   ============================================ */

:root {
  --bg: #fafaf7;
  --ink: #0a0a0a;
  --paper: #ffffff;
  --magenta: #ff0064;
  --lime: #c4f542;
  --yellow: #fff700;
  --muted: #6b6b6b;
  --grid: rgba(10, 10, 10, 0.05);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', sans-serif;
  min-height: 100vh;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ============================================
   SITE HEADER
   ============================================ */
.site-header {
  border-bottom: 3px solid var(--ink);
  padding: 16px 24px;
  background: var(--paper);
}

.site-header-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  text-decoration: none;
  color: var(--ink);
}

.logo-tag {
  display: inline-block;
  background: var(--yellow);
  padding: 6px 12px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
}

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: var(--magenta);
}

.lang-switcher {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
}

/* ============================================
   SITE FOOTER
   ============================================ */
.site-footer {
  border-top: 3px solid var(--ink);
  padding: 32px 24px 24px;
  margin-top: 40px;
  background: var(--paper);
}

.footer-main {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(10, 10, 10, 0.1);
}

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

.footer-col strong {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.footer-col a {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--magenta);
}

.footer-col a small {
  font-size: 10px;
  opacity: 0.7;
}

.footer-bottom {
  max-width: 1500px;
  margin: 16px auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-bottom a:hover {
  color: var(--magenta);
}

/* ============================================
   SHARED UTILITY CLASSES
   ============================================ */
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px;
}

.tag {
  display: inline-block;
  background: var(--yellow);
  padding: 4px 10px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
}

/* ============================================
   SPONSOR BAR (moved from landing.css for global availability)
   ============================================ */
.sponsor-bar {
  text-align: center;
  padding: 12px 24px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid rgba(10, 10, 10, 0.08);
  margin-top: 40px;
}

.sponsor-bar a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s;
}

.sponsor-bar a:hover {
  color: var(--magenta);
}

.sponsor-sep {
  margin: 0 4px;
}

/* ============================================
   [UX-013] HAMBURGER MENU BUTTON
   ============================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 2px solid var(--ink);
  padding: 8px 10px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================
   ACCESSIBILITY — focus-visible
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .site-header, .site-footer, .sponsor-bar,
  .hero-cta, .btn-primary, .btn-secondary,
  .nav-toggle, .lang-switcher { display: none !important; }
  body { background: #fff; background-image: none; }
  .section { padding: 20px 0; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .site-header-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .nav-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .logo {
    order: 1;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 4;
    gap: 0;
    border-top: 2px solid var(--ink);
    margin-top: 12px;
    padding-top: 12px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .lang-switcher {
    order: 3;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

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