/* ============================================
   browserExtensions — shared stylesheet
   Dark theme, matches codecraftedapps.com parent brand.
   ============================================ */

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

:root {
  --bg-primary: #0f1117;
  --bg-secondary: #1a1d27;
  --bg-card: #1e2130;
  --bg-card-hover: #252839;
  --text-primary: #e8e9ed;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --gpq-accent: #6366f1;
  --gpq-purple: #7c3aed;
  --border: #2a2d3a;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1100px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Layout containers --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* --- Nav --- */
nav.site-nav {
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
nav.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
nav.site-nav .brand {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 15px;
}
nav.site-nav .brand a { color: inherit; }
nav.site-nav .links {
  display: flex;
  gap: 18px;
  list-style: none;
  font-size: 14px;
}
nav.site-nav .links a { color: var(--text-secondary); }
nav.site-nav .links a:hover { color: var(--accent); }

/* --- Hero --- */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero .tagline {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--text-primary);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.btn.primary:hover { background: var(--accent-hover); color: white; }

/* --- Section + cards --- */
section { padding: 32px 0; }
section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
section h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 8px;
}
section p, section li { color: var(--text-secondary); font-size: 15px; }
section ul, section ol { padding-left: 22px; }
section li { margin: 6px 0; }
section strong { color: var(--text-primary); font-weight: 600; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s ease;
}
.card:hover { background: var(--bg-card-hover); border-color: var(--accent); }
.card h3 { margin-top: 0; color: var(--text-primary); }
.card p { color: var(--text-secondary); }

/* --- Legal-style document pages --- */
.doc-page {
  padding: 48px 0 64px;
}
.doc-page h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}
.doc-page .meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}
.doc-page h2 {
  font-size: 20px;
  margin: 32px 0 12px;
  color: var(--text-primary);
}
.doc-page h3 {
  font-size: 16px;
  margin: 20px 0 8px;
}
.doc-page p { margin-bottom: 14px; }
.doc-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.doc-page th, .doc-page td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.doc-page th {
  color: var(--text-secondary);
  font-weight: 600;
  background: var(--bg-secondary);
}

/* --- Footer --- */
footer.site-footer {
  margin-top: auto;
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}
footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer.site-footer a { color: var(--text-secondary); }
footer.site-footer a:hover { color: var(--accent); }
footer.site-footer .legal { max-width: 460px; }

/* --- Mobile --- */
@media (max-width: 600px) {
  .hero { padding: 40px 0 32px; }
  nav.site-nav .links { gap: 12px; font-size: 13px; }
  footer.site-footer .container { flex-direction: column; }
}
