/*
Theme Name: Ask The Nozzle Blog
Theme URI: https://askthenozzle.com
Description: Custom theme that matches the main askthenozzle.com site. Pulls site.css from the main app for brand consistency, so any palette/typography change there propagates here too.
Author: Ask The Nozzle
Version: 1.0
Requires at least: 6.0
Requires PHP: 8.0
*/

/* Only the bare minimum — main brand styles come from /static/site.css.
   Everything below is blog-specific layout that the main site doesn't need. */

.blog-main {
  max-width: 880px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.4rem;
}

.blog-hero {
  text-align: center;
  margin-bottom: 3rem;
}
.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1; letter-spacing: -0.025em;
  margin: 0 0 0.6rem;
}
.blog-hero p {
  color: var(--fg-soft); font-size: 1.05rem;
  max-width: 580px; margin: 0 auto;
}

/* Post list (index, archive) */
.post-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.7rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.15s;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
.post-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem; font-weight: 700;
  letter-spacing: -0.02em;
}
.post-card h2 a { color: var(--fg); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent-text); }
.post-card .meta {
  color: var(--muted); font-size: 0.85rem;
  margin-bottom: 0.7rem;
  display: flex; gap: 0.7rem; flex-wrap: wrap;
}
.post-card .meta .cat { color: var(--accent-text); font-weight: 600; }
.post-card .excerpt {
  color: var(--fg-soft); font-size: 0.96rem;
  line-height: 1.6; margin: 0;
}
.post-card .read-more {
  display: inline-block; margin-top: 0.9rem;
  color: var(--accent-text); font-weight: 600; font-size: 0.92rem;
  text-decoration: none;
}
.post-card .read-more:hover { text-decoration: underline; }

/* Single post / page */
.post-single .post-meta {
  color: var(--muted); font-size: 0.9rem; margin: 0.6rem 0 2rem;
  display: flex; gap: 0.9rem; flex-wrap: wrap;
}
.post-single h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15;
  letter-spacing: -0.025em; margin: 0 0 0.4rem;
}
.post-single .featured-image {
  margin: 0 -1.4rem 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.post-single .featured-image img {
  width: 100%; height: auto; display: block;
}
.post-content {
  font-size: 1.05rem; line-height: 1.75; color: var(--fg);
}
.post-content > * + * { margin-top: 1.2rem; }
.post-content h2 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
  margin-top: 2.4rem; margin-bottom: 0.5rem;
}
.post-content h3 {
  font-size: 1.2rem; font-weight: 700; margin-top: 1.8rem;
}
.post-content p { margin: 0; }
.post-content a {
  color: var(--accent-text);
  text-decoration: underline; text-underline-offset: 3px;
}
.post-content a:hover { text-decoration-thickness: 2px; }
.post-content img {
  max-width: 100%; height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.2rem;
  color: var(--fg-soft);
  font-style: italic;
  margin: 1.5rem 0;
}
.post-content code {
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.12em 0.4em;
  font-family: 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
}
.post-content pre {
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-size: 0.88rem;
}
.post-content pre code {
  background: transparent; border: 0; padding: 0;
}
.post-content ul, .post-content ol {
  padding-left: 1.4rem;
}
.post-content li { margin-bottom: 0.35rem; }
.post-content hr {
  border: 0; border-top: 1px solid var(--rule); margin: 2rem 0;
}

/* Post footer — tags + share + back to blog */
.post-footer {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
}
.post-tags {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.post-tags a {
  background: var(--accent-soft); color: var(--accent-text);
  padding: 0.2rem 0.7rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
}
.post-tags a:hover { background: var(--accent); color: white; }

/* CTA strip — drop into every post via shortcode [atn_cta] */
.atn-cta {
  margin: 2.5rem 0;
  padding: 1.5rem 1.7rem;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface-2) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 0.5rem;
  text-align: center;
}
.atn-cta strong { color: var(--accent-text); font-size: 1.05rem; }
.atn-cta a.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, #14a7a7 100%);
  color: white !important; text-decoration: none !important;
  padding: 0.7rem 1.5rem; border-radius: 999px;
  font-weight: 600; margin-top: 0.5rem;
}

/* Pagination */
.blog-pagination {
  margin-top: 2.5rem;
  display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap;
}
.blog-pagination a, .blog-pagination span {
  padding: 0.5rem 0.9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--surface); color: var(--fg);
  text-decoration: none; font-size: 0.9rem; font-weight: 500;
}
.blog-pagination a:hover { border-color: var(--accent); color: var(--accent-text); }
.blog-pagination .current {
  background: var(--accent); color: white; border-color: var(--accent);
}

@media (max-width: 600px) {
  .blog-main { padding: 0 1rem; }
  .post-single .featured-image { margin: 0 -1rem 1.5rem; border-radius: 0; }
  .post-card { padding: 1.2rem 1.3rem; }
}
