/* ==========================================================================
   SiteAuditPro — Shared Stylesheet
   Extracted from inline <style> blocks for browser caching & improved LCP.
   ========================================================================== */

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

/* Design Tokens */
:root {
  --bg: #06080C; --surface: #0D1017; --accent: #00F5D4; --violet: #A777FF;
  --text: #E4E8F1; --muted: #6B7A94; --warning: #FFB224; --danger: #FF4D6A;
  --border: #1A1F2E; --border-hover: #2A3045;
  --card-bg: rgba(13,16,23,0.8);
}

/* Base */
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; font-size: 16px; }

/* Typography */
h1, h2, h3 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; text-align: center; }
h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--text); }
a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--bg); font-weight: 600; padding: 0.8rem 1.8rem; border-radius: 8px; font-size: 1rem; border: none; cursor: pointer; transition: filter 0.2s, transform 0.2s; font-family: 'Outfit', sans-serif; }
.btn:hover { filter: brightness(0.9); transform: translateY(-1px); color: var(--bg); }
.btn-secondary { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-secondary:hover { background: rgba(0,245,212,0.1); color: var(--accent); }
.btn-large { padding: 1rem 2.5rem; font-size: 1.15rem; }

/* Cards */
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; transition: border-color 0.3s, box-shadow 0.3s; backdrop-filter: blur(8px); }
.card:hover { border-color: var(--border-hover); box-shadow: 0 0 30px rgba(0,245,212,0.06); }

/* Grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.accent { color: var(--accent); }
.mono { font-family: 'Fira Code', monospace; }

/* Navigation */
nav:not(.toc):not(.breadcrumb) { position: sticky; top: 0; z-index: 100; background: rgba(6,8,12,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
nav .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
nav .logo { display: flex; align-items: center; gap: 0.5rem; }
nav .logo img { width: 36px; height: 36px; }
nav .logo span { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--text); }
nav .nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
nav .nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
nav .nav-links a:hover { color: var(--text); }
nav .nav-links a.active { color: var(--accent); }

/* Footer (full) */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-grid .footer-heading { font-family: 'Syne', sans-serif; font-weight: 700; margin-bottom: 0.75rem; font-size: 1rem; color: var(--text); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-grid a { color: var(--muted); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.trust-badge { text-align: center; margin: 1rem 0; padding: 0.75rem; background: rgba(0,245,212,0.04); border-radius: 8px; font-size: 0.85rem; color: var(--muted); }

/* Footer (simple — legal pages) */
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.footer-links { margin-bottom: 1rem; }
.footer-links a { color: var(--muted); font-size: 0.9rem; margin: 0 1rem; }
.footer-links a:hover { color: var(--text); }

/* Cookie Consent */
.cookie-consent { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--border); padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: center; gap: 1.5rem; z-index: 200; font-size: 0.9rem; }
.cookie-consent p { margin: 0; color: var(--muted); }

/* CTA Final */
#cta-final { text-align: center; background: linear-gradient(180deg, transparent, rgba(0,245,212,0.04)); padding: 5rem 0; }

/* Hamburger Menu */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; z-index: 101; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform 0.3s, opacity 0.3s; border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Legal Pages (privacy, terms, cookies) ---- */
nav .nav-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.content { padding: 4rem 0; }
.content h1 { text-align: center; margin-bottom: 0.5rem; }
.last-updated { text-align: center; color: var(--muted); margin-bottom: 3rem; font-size: 0.9rem; }

/* ---- Blog Listing Shared (blog/index, blog/*/index) ---- */
.blog-card { display: block; color: var(--text); text-decoration: none; }
.blog-card:hover { opacity: 1; }
.blog-card time { font-size: 0.85rem; color: var(--muted); font-family: 'Fira Code', monospace; }
.blog-card h3 { margin-top: 0.5rem; color: var(--text); transition: color 0.2s; }
.blog-card:hover h3 { color: var(--accent); }
.blog-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }
.blog-card .tag { display: inline-block; font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 100px; border: 1px solid var(--border); color: var(--muted); margin-top: 0.75rem; margin-right: 0.25rem; }
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state p { color: var(--muted); font-size: 1.1rem; }

/* ---- Blog Hero Shared (blog listing + posts) ---- */
#hero .breadcrumb { margin-bottom: 2rem; font-size: 0.875rem; color: var(--muted); }
#hero .breadcrumb a { color: var(--muted); }
#hero .breadcrumb a:hover { color: var(--text); }
#hero .breadcrumb span { margin: 0 0.4rem; }
#hero .hero-eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; display: block; }
#hero .hero-lead { font-size: 1.2rem; color: var(--text); max-width: 640px; margin: 0 auto 2.5rem; }

/* ---- Blog Integration Posts ---- */
article { max-width: 720px; margin: 0 auto; }
article h2 { text-align: left; margin-top: 2.5rem; }
article h3 { margin-top: 1.5rem; }
article ol { margin: 1rem 0 1.5rem 1.5rem; }
article ol li { margin-bottom: 0.75rem; color: var(--text); }
article ul { list-style: none; margin: 1rem 0; }
article ul li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; color: var(--text); }
article ul li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.tier-badge-inline { display: inline-block; background: rgba(0,245,212,0.15); color: var(--accent); font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 20px; font-family: 'Fira Code', monospace; vertical-align: middle; margin-left: 0.5rem; }
.tip-box { background: rgba(0,245,212,0.05); border: 1px solid rgba(0,245,212,0.15); border-radius: 12px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.tip-box strong { color: var(--accent); }
#hero .post-meta { font-size: 0.9rem; color: var(--muted); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hamburger { display: block; }
  nav .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(6,8,12,0.98); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: 0.25rem; }
  nav .nav-links.open { display: flex; }
  nav .nav-links li { width: 100%; }
  nav .nav-links a { display: block; padding: 0.65rem 0; font-size: 1.05rem; }
  nav .nav-links .btn { text-align: center; margin-top: 0.5rem; padding: 0.75rem 1.5rem; }
  section { padding: 3rem 0; }
  #hero { padding: 4rem 0 2.5rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cookie-consent { flex-direction: column; text-align: center; gap: 0.75rem; padding: 1rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 1rem; }
  h1 { font-size: 1.75rem; }
}
