/* ─────────────────────────────────────────
   ZSell Newsletter — Listmonk public styles
   ───────────────────────────────────────── */

:root {
  --primary:   #FFAA00;
  --secondary: #00858A;
  --dark:      #111111;
  --muted:     #555555;
  --subtle:    #888888;
  --border:    #E0E0E0;
  --bg:        #F9F9F9;
  --white:     #FFFFFF;
  --radius:    8px;
  --nav-h:     64px;
  --content-w: 960px;
  --form-w:    480px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-width: 320px; }

/* ── Base ── */
body {
  background: var(--bg);
  font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--dark);
}

p { margin: 0 0 16px; }

a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--primary); }

/* ── ZSell text logo ── */
.zsell-logo {
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.zsell-z    { color: var(--dark); }
.zsell-sell { color: var(--primary); }
.zsell-logo-hero {
  font-size: 52px;
  display: block;
  margin-bottom: 20px;
}

/* ── Site header ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.site-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: block;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-brand-sep {
  color: var(--border);
  font-weight: 300;
  font-size: 18px;
}
.site-brand-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
}
.site-brand-title:hover { color: var(--secondary); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-nav a {
  font-size: 14px;
  color: var(--muted);
}
.site-nav a:hover { color: var(--dark); }

/* ── Buttons ── */
.button,
button.button,
input[type="submit"].button {
  display: inline-block;
  background: var(--secondary);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  min-width: auto;
  line-height: 1.4;
  font-family: inherit;
}
.button:hover,
button.button:hover,
input[type="submit"].button:hover {
  background: var(--primary);
  color: var(--dark) !important;
}
.button.button-outline {
  background: var(--white);
  border: 1px solid var(--secondary);
  color: var(--secondary) !important;
}
.button.button-outline:hover {
  background: var(--secondary);
  color: var(--white) !important;
}
.button-full { width: 100%; font-size: 15px; padding: 12px; }

/* ── Forms ── */
label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
  cursor: pointer;
}
input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--dark);
  box-shadow: none;
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--secondary);
}
input:focus::placeholder { color: transparent; }
input[disabled] { opacity: 0.5; }

.nonce { display: none !important; }
.row { margin-bottom: 20px; }
.error { color: #E53935; font-size: 14px; }

/* ── Transactional page layout ── */
.page-outer {
  min-height: calc(100vh - var(--nav-h) - 80px);
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.page-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: var(--form-w);
}
.page-card h2 { font-size: 22px; }
.page-card > p { color: var(--muted); }

/* ── Lists (subscription checkboxes) ── */
.lists {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.lists li {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.lists li input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  flex-shrink: 0;
}
.lists .description {
  font-size: 13px;
  color: var(--subtle);
  margin: 4px 0 12px 25px;
  line-height: 1.4;
}

/* ── Section label (amber underline) ── */
.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
  margin-bottom: 28px;
}

/* ── Post cards ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.post-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.post-thumb-link { display: block; margin: -24px -24px 16px; }
.post-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}
.post-date {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 10px;
}
.post-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  flex-grow: 1;
}
.post-title a { color: var(--dark); }
.post-title a:hover { color: var(--secondary); }
.post-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.post-read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  margin-top: auto;
}

/* ── Archive page ── */
.archive-page {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 48px 24px;
}
.archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.archive-rss {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--subtle);
}
.archive-rss img { opacity: 0.5; }
.archive-rss:hover { color: var(--dark); }
.archive-rss:hover img { opacity: 1; }
.archive-sub {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: right;
}
.archive-empty { color: var(--muted); }

/* ── Hero (home page) ── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
}
.hero-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.hero-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin: 0 auto 24px;
  display: block;
}
.tagline {
  font-size: 12px;
  font-weight: 700;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: 44px;
  margin-bottom: 16px;
}
.hero .description {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-hero {
  display: inline-block;
  background: var(--secondary);
  color: var(--white) !important;
  font-size: 20px;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 6px;
  text-decoration: none !important;
  width: fit-content;
  align-self: center;
}
.btn-hero:hover {
  background: var(--primary);
  color: var(--dark) !important;
}
.social-proof {
  font-size: 13px;
  color: var(--subtle);
  margin: 12px 0 0;
}

/* ── Recent posts section (home) ── */
.recent-posts {
  padding: 56px 0;
}
.recent-posts-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
}
.view-all {
  text-align: center;
}
.view-all a {
  font-size: 14px;
  font-weight: 600;
}

/* ── Pagination ── */
.pagination { margin-top: 32px; text-align: center; }
.pg-page {
  display: inline-block;
  padding: 0 10px;
  color: var(--muted);
  text-decoration: none;
}
.pg-page.pg-selected {
  font-weight: 700;
  color: var(--dark);
  text-decoration: underline;
}

/* ── Misc ── */
#btn-back { display: none; }
.center { text-align: center; }
.right { text-align: right; }
.small { font-size: 0.875em; }

/* ── Site footer ── */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}
.site-footer a { color: #aaa; }
.site-footer a:hover { color: var(--dark); }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
}

/* ── Admin login ── */
section.login {
  max-width: var(--form-w);
  margin: 48px auto;
  padding: 0 24px;
}
section.login h2 { margin-bottom: 24px; }
section.login p.submit { margin-top: 24px; }
section.login .button { width: 100%; }

/* ── Captcha ── */
.captcha { margin-top: 20px; margin-bottom: 20px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero .description { font-size: 16px; }
  .hero { padding: 48px 0; }
  .recent-posts { padding: 40px 0; }
}
@media (max-width: 600px) {
  .site-header-inner { padding: 0 16px; }
  .page-outer { padding: 24px 16px; }
  .page-card { padding: 24px; }
  .archive-page { padding: 32px 16px; }
  .hero-cta { flex-direction: column; align-items: center; }
}
