/* ============================================
   UnlockProof — light theme, mobile-first
   Accent: indigo (#4f46e5) → violet (#7c3aed)
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --radius: 12px;
  --max-width: 1120px;
  --font-stack: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.05);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-stack);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  z-index: 100;
  background: var(--text);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.site-logo:hover { text-decoration: none; }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}
.site-nav.open ul { display: flex; }

.site-nav a {
  display: block;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
}
.site-nav a:hover {
  text-decoration: none;
  background: var(--bg-soft);
}
.site-nav a.active {
  color: var(--indigo);
  background: #eef2ff;
  font-weight: 600;
}

.header-inner { flex-wrap: wrap; }
.site-nav {
  flex-basis: 100%;
  padding-bottom: 0.75rem;
}
.site-nav:not(.open) { padding-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  background: var(--accent-gradient);
  color: #fff;
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 80% 20%, rgba(255,255,255,0.14), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 800;
}
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.92;
  max-width: 36rem;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: #fff;
  color: var(--indigo);
}
.btn-primary:hover { background: #eef2ff; }
.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.25); }
.btn-small { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Buttons on light backgrounds */
.share-row .btn-secondary {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
}
.share-row .btn-secondary:hover {
  filter: brightness(1.08);
}

/* ---------- Sections ---------- */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.categories-section { padding: 2.5rem 0 0; }
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.chip {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.chip:hover {
  text-decoration: none;
  border-color: var(--indigo);
  color: var(--indigo);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12);
}

/* ---------- Card grid ---------- */
.latest-section,
.category-articles { padding: 2.5rem 0; }
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.08), 0 12px 28px rgba(15, 23, 42, 0.08);
}
.card-link { color: inherit; display: block; height: 100%; }
.card-link:hover { text-decoration: none; }
.card-body { padding: 1.25rem; }
.badge {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--indigo);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card-badge { margin-bottom: 0.75rem; }
.card-title {
  font-size: 1.1rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  font-weight: 700;
}
.card-excerpt {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---------- Why strip ---------- */
.why-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.why-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.why-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.why-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 1.5rem 1.25rem 0.75rem; }
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--text-muted);
}
.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Article ---------- */
.article { padding: 1.25rem 1.25rem 2.5rem; }
.article-header { max-width: 720px; margin: 0 auto 2rem; }
.article-header h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 1rem 0 0.75rem;
  font-weight: 800;
}
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.5rem;
  row-gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}
.article-excerpt {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  border-left: 3px solid var(--indigo);
  padding-left: 1rem;
  margin: 0;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.75;
}
.article-body p { margin: 0 0 1.4em; }
.article-body h2 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 2.2em 0 0.8em;
  font-weight: 700;
}
.article-body h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 1.8em 0 0.7em;
  font-weight: 600;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.4em;
  padding-left: 1.5rem;
}
.article-body li { margin-bottom: 0.5em; }
.article-body li::marker { color: var(--indigo); }
.article-body blockquote {
  margin: 1.8em 0;
  padding: 1rem 1.25rem;
  background: var(--bg-soft);
  border-left: 4px solid var(--indigo);
  border-radius: 0 8px 8px 0;
  color: var(--text);
  font-style: italic;
}
.article-body blockquote p { margin: 0; }
.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: #eef2ff;
  color: var(--indigo);
  padding: 0.15em 0.4em;
  border-radius: 5px;
}
.article-body pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 10px;
  overflow-x: auto;
  line-height: 1.6;
  font-size: 0.88rem;
  margin: 1.8em 0;
}
.article-body pre code {
  background: none;
  color: inherit;
  padding: 0;
}
.article-body a { font-weight: 500; }
.article-body img {
  border-radius: var(--radius);
  margin: 1.8em 0;
}

.share-row {
  max-width: 720px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.share-label { font-weight: 600; font-size: 0.95rem; }
.copy-feedback { color: var(--indigo); font-size: 0.88rem; font-weight: 500; }

.related-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

/* ---------- Category page ---------- */
.category-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.category-hero .breadcrumb { padding: 0 0 1rem; }
.category-hero h1 {
  font-size: 2rem;
  letter-spacing: -0.025em;
  margin: 0 0 0.6rem;
  font-weight: 800;
}
.category-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 42rem;
  margin: 0;
}

/* ---------- Static pages ---------- */
.page-section { padding: 3rem 0; }
.page-narrow { max-width: 760px; }
.page-heading {
  font-size: 2rem;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
  font-weight: 800;
}
.page-body { font-size: 1rem; line-height: 1.75; }
.page-body p { margin: 0 0 1.3em; }
.page-body h2 { font-size: 1.35rem; margin: 2em 0 0.7em; font-weight: 700; }
.page-body h3 { font-size: 1.1rem; margin: 1.6em 0 0.6em; font-weight: 600; }
.page-body ul, .page-body ol { padding-left: 1.5rem; margin: 0 0 1.3em; }
.page-body li { margin-bottom: 0.45em; }

/* ---------- Author box ---------- */
.author-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0 0;
}
.author-box-name {
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.author-box-bio {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  margin: 0 0 0.6rem;
}
.author-box-reviewed {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}
.article-author { font-weight: 600; }

/* ---------- Ad placeholders (empty until AdSense approval) ---------- */
.ad-slot {
  display: none; /* shown only after ad code is added post-approval */
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 1.25rem;
}
.footer-brand .site-logo { color: #fff; margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #94a3b8;
  margin: 0;
  max-width: 22rem;
}
.footer-col h3 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col a { color: #94a3b8; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.footer-bottom .container { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

/* ---------- Responsive breakpoints ---------- */
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.75rem; }
  .article-header h1 { font-size: 2.25rem; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { flex-basis: auto; padding-bottom: 0; }
  .site-nav ul {
    display: flex;
    flex-direction: row;
    gap: 0.15rem;
    width: auto;
  }
  .site-nav a { padding: 0.5rem 0.8rem; }

  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .hero { padding: 5.5rem 0 5rem; }
  .hero h1 { font-size: 3.25rem; }
}

@media (min-width: 1200px) {
  .container { padding: 0 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
