/*
Theme Name: Spenzaa Blog
Theme URI: https://spenzaa.com/
Description: Child theme of Blocksy, styled to match the Spenzaa marketing site (spenzaa.com) — dark theme, green/teal accent, system fonts.
Author: Spenzaa
Template: blocksy
Version: 1.0.0
Text Domain: spenzaa-blog
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --bg: #07070f;
  --bg-2: #0c0c1c;
  --surface: #12122a;
  --surface-2: #181836;
  --border: rgba(29, 226, 155, .18);

  --violet: #1de29b;
  --purple: #0f9b6c;
  --blue: #0d9488;
  --cyan: #34d399;

  --grad: linear-gradient(135deg, #34d399 0%, #1de29b 55%, #0d9488 100%);
  --grad-soft: linear-gradient(135deg, rgba(52,211,153,.14), rgba(13,148,136,.14));

  --text: #eceaf8;
  --muted: #a3a1c2;
  --success: #34d399;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 60px -20px rgba(15, 155, 108, .35);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   2. Reset & layout basics
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1140px, 92%); margin-inline: auto; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-2); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--surface); color: var(--text); padding: .8rem 1.2rem;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   3. Typography
   ========================================================================== */
/* Blocksy's own stylesheet sets h1-h6 color via --theme-heading-color (tuned
   for its light-mode default), which otherwise wins because our rules below
   never redeclared `color` themselves. Force it back to our token here. */
h1, h2, h3, h4, h5, h6 { color: var(--text); }

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.12; letter-spacing: -.03em; font-weight: 800;
}
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.02em; line-height: 1.2; font-weight: 800; }
h3, h4, h5, h6 { font-size: 1.18rem; font-weight: 700; }

.lead { color: var(--muted); font-size: 1.15rem; max-width: 38rem; margin: 1rem auto 0; }

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.7rem; border-radius: 999px; font-weight: 700; font-size: .97rem;
  border: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  text-decoration: none !important; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 70px -18px rgba(15,155,108,.55); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--violet); background: rgba(29,226,155,.08); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* ==========================================================================
   5. Header
   ========================================================================== */
#main-container { background: var(--bg); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 7, 15, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(29, 226, 155, .12);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: .85rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.nav-toggle-label {
  display: none; cursor: pointer; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border); align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle-label span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-toggle-label { display: flex; }
  .nav-links {
    position: fixed; inset: 61px 0 auto 0; z-index: 99; flex-direction: column;
    align-items: stretch; gap: 0; background: #0a0a16;
    border-bottom: 1px solid var(--border); max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-links li { border-top: 1px solid rgba(255,255,255,.05); }
  .nav-links a { display: block; padding: 1rem 1.6rem; font-size: 1.05rem; }
  .nav-links li.nav-cta { padding: 1rem 1.6rem; }
  .nav-toggle:checked ~ .nav-links { max-height: 500px; }
}

/* ==========================================================================
   6. Blog post & listing components
   ========================================================================== */
.breadcrumb { padding: 1.4rem 0 0; }
.breadcrumb ol { display: flex; list-style: none; gap: .5rem; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .5rem; color: var(--border); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb li[aria-current="page"] { color: var(--text); }

.single-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.single-layout .post { max-width: 100%; margin-inline: 0; }
@media (max-width: 980px) {
  .single-layout { grid-template-columns: 1fr; }
  .single-layout .post { max-width: 46rem; margin-inline: auto; }
  .single-sidebar { max-width: 46rem; margin-inline: auto; width: 100%; }
}

.single-sidebar { position: sticky; top: 6.5rem; }
.related-posts h4 {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text); margin-bottom: 1.1rem;
}
.related-posts-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.related-post-item {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .9rem 0; border-top: 1px solid var(--border);
}
.related-post-item:first-child { border-top: none; padding-top: 0; }
.related-post-item img {
  width: 60px; height: 60px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--border); flex: none;
}
.related-post-item h5 { font-size: .92rem; font-weight: 700; line-height: 1.35; }
.related-post-item h5 a { color: var(--text); }
.related-post-item h5 a:hover { color: var(--violet); text-decoration: none; }
.related-post-item .meta { color: var(--muted); font-size: .75rem; margin-top: .35rem; }

.post { max-width: 46rem; margin-inline: auto; }
.post-header h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); margin-bottom: .8rem; }
.post-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.post-cover { border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 2rem; width: 100%; }

.post-content h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; }
.post-content h3 { font-size: 1.15rem; margin: 1.8rem 0 .6rem; }
.post-content p { color: var(--muted); margin-bottom: 1.1rem; font-size: 1.02rem; line-height: 1.75; }
.post-content strong { color: var(--text); }
.post-content ul, .post-content ol { padding-left: 1.4rem; margin-bottom: 1.1rem; color: var(--muted); }
.post-content li { margin-bottom: .5rem; line-height: 1.7; }
.post-content a { color: var(--cyan); }
.post-content blockquote {
  border-left: 3px solid var(--violet); padding: .3rem 0 .3rem 1.2rem;
  margin: 1.5rem 0; color: var(--text); font-style: italic;
}
.post-content img { border-radius: var(--radius); border: 1px solid var(--border); margin: 1.5rem 0; }
.post-content code { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: .1rem .4rem; font-size: .9em; }

.post-footer { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.post-author-box { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.post-author-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex: none; }
.post-author-box p { color: var(--muted); font-size: .88rem; margin-top: .3rem; }

.post-card { display: flex; flex-direction: column; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--violet); text-decoration: none; }
.post-card-meta { color: var(--muted); font-size: .78rem; margin-bottom: .5rem; }
.post-card p.excerpt { color: var(--muted); font-size: .93rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: rgba(29,226,155,.45); }

.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-3 { grid-template-columns: 1fr; } }

.pagination { display: flex; justify-content: center; gap: .6rem; margin-top: 3rem; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .8rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); font-size: .9rem;
}
.pagination a:hover { border-color: var(--violet); color: var(--text); text-decoration: none; }
.pagination .current { background: var(--grad); color: #fff; border-color: transparent; font-weight: 700; }

.no-results { text-align: center; padding: 3rem 0; color: var(--muted); }

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer { background: var(--bg-2); border-top: 1px solid rgba(29,226,155,.12); padding: 3.5rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-grid p { color: var(--muted); font-size: .9rem; margin-top: .8rem; max-width: 28rem; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: .55rem; }
.footer-grid ul a { color: var(--muted); font-size: .92rem; }
.footer-grid ul a:hover { color: var(--text); text-decoration: none; }
.footer-explore {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 2rem; margin-bottom: 2.5rem;
}
.footer-explore h4 {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text); margin-bottom: 1.1rem;
}
.footer-explore-links { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
.footer-explore-links a {
  color: var(--muted); font-size: .84rem; padding: .4rem .85rem;
  border: 1px solid var(--border); border-radius: 999px; transition: border-color .2s, color .2s;
}
.footer-explore-links a:hover { color: var(--text); border-color: var(--violet); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  color: var(--muted); font-size: .85rem;
}
.socials { display: flex; gap: .9rem; }
.socials a {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; font-weight: 700;
}
.socials a:hover { color: var(--text); border-color: var(--violet); text-decoration: none; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
