/* LegalHub design tokens + chrome */
:root {
  --lh-bg: #fafafa;
  --lh-text: #111827;
  --lh-muted: #6b7280;
  --lh-border: #e5e7eb;
  --lh-primary: #1a5490;
  --lh-primary-dark: #144370;
  --lh-accent: #f3f4f6;
  --lh-radius: 6px;
  --lh-font-sans: system-ui, -apple-system, sans-serif;
  --lh-font-serif: 'Charter', 'Georgia', 'Iowan Old Style', serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--lh-font-sans);
  color: var(--lh-text);
  background: var(--lh-bg);
  line-height: 1.5;
}
main { min-height: calc(100vh - 220px); }

/* Navbar */
.lh-navbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .7rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--lh-border);
}
.lh-brand {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  text-decoration: none;
  color: var(--lh-text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.01em;
}
.lh-brand-icon { font-size: 1.3rem; line-height: 1; }
.lh-brand-tld { color: var(--lh-muted); font-weight: 500; }

.lh-nav-links {
  display: flex;
  list-style: none;
  gap: .25rem;
  margin: 0;
  padding: 0;
}
.lh-nav-link {
  display: inline-block;
  padding: .35rem .7rem;
  color: var(--lh-text);
  text-decoration: none;
  font-size: .9rem;
  border-radius: 4px;
}
.lh-nav-link:hover { background: var(--lh-accent); color: var(--lh-primary); }

.lh-nav-actions {
  display: flex;
  gap: .5rem;
}

/* Navbar search — persistent compact field that submits to /cauta. */
.lh-navbar-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--lh-accent);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .25rem .75rem;
  width: 260px;
  max-width: 30vw;
  transition: background .12s, border-color .12s, width .15s;
}
.lh-navbar-search:focus-within {
  background: #fff;
  border-color: var(--lh-primary);
  width: 320px;
}
.lh-navbar-search-icon { color: var(--lh-muted); display: inline-flex; flex-shrink: 0; }
.lh-navbar-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: .82rem;
  padding: .3rem 0;
  color: var(--lh-text);
  min-width: 0;
}
.lh-navbar-search input::placeholder { color: var(--lh-muted); }

@media (max-width: 900px) {
  .lh-navbar-search { display: none; }
  .lh-nav-actions { margin-left: auto; }
}

/* Buttons */
.lh-btn {
  display: inline-block;
  padding: .45rem 1rem;
  border-radius: var(--lh-radius);
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.lh-btn-primary {
  background: var(--lh-primary);
  color: #fff;
}
.lh-btn-primary:hover { background: var(--lh-primary-dark); }
.lh-btn-ghost {
  background: transparent;
  color: var(--lh-text);
  border-color: var(--lh-border);
}
.lh-btn-ghost:hover { background: var(--lh-accent); }
.lh-btn-lg { padding: .65rem 1.4rem; font-size: 1rem; }

/* Hero */
.lh-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}
.lh-hero h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 .75rem;
}
.lh-hero-lead {
  font-size: 1.15rem;
  color: var(--lh-muted);
  max-width: 60ch;
  margin: 0 auto 2rem;
}
.lh-hero-cta {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Features */
.lh-features {
  max-width: 1100px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.lh-feature {
  background: #fff;
  border: 1px solid var(--lh-border);
  border-radius: 10px;
  padding: 1.5rem;
}
.lh-feature-icon {
  font-size: 1.8rem;
  margin-bottom: .25rem;
}
.lh-feature h3 {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
}
.lh-feature p {
  color: var(--lh-muted);
  font-size: .92rem;
  margin: 0 0 .75rem;
}
.lh-feature-link {
  color: var(--lh-primary);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}
.lh-feature-link:hover { text-decoration: underline; }

/* Stub */
.lh-stub, .lh-error {
  max-width: 700px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  text-align: center;
}
.lh-stub h1, .lh-error h1 {
  font-size: 2rem;
  margin: 0 0 .5rem;
}
.lh-stub-lead { color: var(--lh-muted); margin-bottom: 1rem; }

/* Footer */
.lh-footer {
  background: #111827;
  color: #d1d5db;
  margin-top: 4rem;
  padding: 2.5rem 1.5rem 1rem;
}
.lh-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.lh-footer-col strong {
  display: block;
  margin-bottom: .65rem;
  color: #fff;
}
.lh-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lh-footer-col li { margin: .3rem 0; }
.lh-footer-col a {
  color: #d1d5db;
  text-decoration: none;
  font-size: .88rem;
}
.lh-footer-col a:hover { color: #fff; }
.lh-footer-tail {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid #1f2937;
  font-size: .8rem;
  color: #6b7280;
  text-align: center;
}

/* ── Author header (reusable across /articole?autor= and /intrebari?autor=) ─ */
.lh-author-hdr {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--lh-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.lh-author-hdr-img {
  width: 76px; height: 76px;
  border-radius: 50%; object-fit: cover;
  background: var(--lh-accent);
}
.lh-author-hdr-body { min-width: 0; }
.lh-author-hdr-eyebrow {
  margin: 0 0 .15rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--lh-primary);
  display: inline-flex; align-items: center; gap: .35rem;
}
.lh-author-hdr-verified {
  display: inline-block; width: 14px; height: 14px;
  background: #047857; color: #fff;
  border-radius: 50%; font-size: 9px;
  text-align: center; line-height: 14px;
}
.lh-author-hdr-name {
  margin: .15rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.lh-author-hdr-name a { color: var(--lh-text); text-decoration: none; }
.lh-author-hdr-name a:hover { color: var(--lh-primary); }
.lh-author-hdr-tagline {
  margin: 0 0 .2rem;
  font-size: .85rem;
  color: var(--lh-muted);
  font-family: var(--lh-font-serif);
}
.lh-author-hdr-meta { margin: 0; font-size: .78rem; color: var(--lh-muted); }
@media (max-width: 700px) {
  .lh-author-hdr { grid-template-columns: auto 1fr; padding: 1rem; gap: 1rem; }
  .lh-author-hdr-img { width: 56px; height: 56px; }
  .lh-author-hdr-cta { grid-column: 1 / -1; }
}

/* Navbar greeting (logged-in mock state) */
.lh-nav-greeting {
  display: inline-flex; align-items: center;
  padding: .35rem .55rem;
  font-size: .82rem;
  color: var(--lh-muted);
  text-decoration: none;
  border-radius: 4px;
}
.lh-nav-greeting strong { color: var(--lh-text); font-weight: 600; margin-left: .25rem; }
.lh-nav-greeting:hover { background: var(--lh-accent); }

/* Cookie consent banner — minimal, doar cookies esențiale. */
.lh-cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: #111827;
  color: #f3f4f6;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .85rem;
  z-index: 1500;
  animation: lh-cookie-up .3s ease-out;
}
.lh-cookie-banner p { margin: 0; flex: 1; line-height: 1.45; }
.lh-cookie-banner a { color: #93c5fd; text-decoration: underline; }
.lh-cookie-banner strong { color: #fff; }
.lh-cookie-btn {
  background: #fff;
  color: #111827;
  border: 0;
  padding: .5rem 1rem;
  border-radius: 6px;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.lh-cookie-btn:hover { background: #e5e7eb; }
@keyframes lh-cookie-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 560px) {
  .lh-cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Newsletter signup în footer */
.lh-footer-col-wide { grid-column: span 2; max-width: 380px; }
@media (max-width: 720px) { .lh-footer-col-wide { grid-column: span 1; max-width: none; } }
.lh-footer-col-wide p {
  font-size: .85rem; color: #9ca3af;
  margin: 0 0 .85rem;
  line-height: 1.5;
}
.lh-newsletter { margin-top: .5rem; }
.lh-newsletter-label {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: .35rem;
}
.lh-newsletter-row {
  display: flex; gap: 6px;
  background: #1f2937;
  border-radius: 8px;
  padding: 4px;
}
.lh-newsletter-row input {
  flex: 1; min-width: 0;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: .85rem;
  color: #fff;
  padding: .45rem .55rem;
  outline: none;
}
.lh-newsletter-row input::placeholder { color: #6b7280; }
.lh-newsletter-row button {
  background: var(--lh-primary);
  color: #fff;
  border: 0;
  padding: .45rem 1rem;
  border-radius: 6px;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}
.lh-newsletter-row button:hover { background: var(--lh-primary-dark); }
.lh-newsletter-hint {
  font-size: .72rem !important;
  color: #6b7280 !important;
  margin: .5rem 0 0 !important;
}
.lh-newsletter-hint.is-success { color: #6ee7b7 !important; }
.lh-newsletter-hint.is-error { color: #fca5a5 !important; }
