/* ============================================
   BUGNET — Blog Post Styles
   Shared styles for all blog article pages
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --cream: #FFFBF3;
  --coral: #E8624A;
  --sage: #4A7C6F;
  --mustard: #D4953A;
  --navy: #1E2B3A;
  --ink: #2C2416;
}
body { font-family: 'Nunito', sans-serif; background-color: var(--cream); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ARTICLE LAYOUT */
.article-wrapper { max-width: 720px; margin: 0 auto; padding: 48px 24px 96px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 0.9rem; font-weight: 600; color: var(--coral); margin-bottom: 40px; transition: opacity 0.2s; }
.back-link:hover { opacity: 0.8; }
.back-link svg { width: 16px; height: 16px; }

/* ARTICLE HEADER */
.article-header { margin-bottom: 48px; }
.article-header .category { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 12px; border-radius: 20px; background: rgba(232, 98, 74, 0.12); color: var(--coral); margin-bottom: 20px; }
.article-header h1 { font-family: 'Fraunces', serif; font-weight: 700; font-size: 2.6rem; color: var(--navy); line-height: 1.2; margin-bottom: 20px; }
.article-meta { display: flex; align-items: center; gap: 16px; font-size: 0.9rem; color: var(--ink); opacity: 0.6; }
.article-meta .author-name { font-weight: 700; opacity: 1; color: var(--ink); }
.article-meta .separator { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); opacity: 0.3; }

/* ARTICLE BODY */
.article-body h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.6rem; color: var(--navy); margin-top: 48px; margin-bottom: 16px; line-height: 1.3; }
.article-body p { font-size: 1.08rem; line-height: 1.8; color: var(--ink); margin-bottom: 20px; }
.article-body .synopsis { background: rgba(74, 124, 111, 0.08); border-left: 4px solid var(--sage); border-radius: 0 10px 10px 0; padding: 20px 24px; margin-bottom: 32px; }
.article-body .synopsis p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 0; color: var(--ink); }
.article-body .synopsis strong { color: var(--sage); }
.article-body .lead { font-size: 1.2rem; line-height: 1.75; color: var(--ink); opacity: 0.85; margin-bottom: 32px; }
.article-body ul, .article-body ol { margin-bottom: 20px; padding-left: 24px; }
.article-body li { font-size: 1.08rem; line-height: 1.8; margin-bottom: 8px; }
.article-body strong { font-weight: 700; color: var(--navy); }
.article-body blockquote { border-left: 4px solid var(--coral); margin: 32px 0; padding: 20px 24px; background: rgba(232, 98, 74, 0.05); border-radius: 0 10px 10px 0; }
.article-body blockquote p { font-family: 'Fraunces', serif; font-style: italic; font-size: 1.15rem; line-height: 1.7; margin-bottom: 0; color: var(--navy); }

/* CODE BLOCKS */
.article-body pre { background: var(--navy); color: #e2e8f0; border-radius: 10px; padding: 24px; margin: 24px 0; overflow-x: auto; font-size: 0.92rem; line-height: 1.7; }
.article-body pre code { font-family: 'Courier New', Courier, monospace; }
.article-body code { font-family: 'Courier New', Courier, monospace; background: rgba(44, 36, 22, 0.06); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; }
.article-body pre code { background: none; padding: 0; border-radius: 0; }
.article-body pre .cm { color: #68d391; }
.article-body pre .kw { color: #f6ad55; }
.article-body pre .fn { color: #63b3ed; }
.article-body pre .st { color: #fc8181; }

/* HANDWRITTEN NOTE */
.handwritten-note { font-family: 'Fraunces', serif; color: var(--sage); font-size: 1.1rem; margin: 24px 0; display: block; }

/* CTA */
.article-cta { background: var(--navy); border-radius: 14px; padding: 48px 40px; text-align: center; margin-top: 56px; }
.article-cta h3 { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.5rem; color: #fff; margin-bottom: 12px; }
.article-cta p { color: rgba(255, 255, 255, 0.65); font-size: 1rem; margin-bottom: 24px; line-height: 1.6; }
.article-cta .cta-button { display: inline-block; background: var(--coral); color: #fff; text-decoration: none; padding: 14px 32px; border-radius: 10px; font-weight: 700; font-size: 1rem; transition: background 0.2s, transform 0.15s; }
.article-cta .cta-button:hover { background: #d4553f; transform: translateY(-2px); }
.article-cta .cta-engines { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.article-cta .cta-engine-badge { display: inline-block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 12px; border-radius: 20px; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.15); }
.article-cta .cta-trust { display: block; margin-top: 16px; font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* FOOTER */
.footer-wave { display: block; width: 100%; height: 80px; margin-bottom: -2px; background: var(--cream); }
footer { background: var(--navy); padding: 56px 0 32px; color: rgba(255, 255, 255, 0.5); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .wordmark { font-family: 'Fraunces', serif; font-weight: 700; font-size: 20px; color: #fff; }
.footer-brand .wordmark .net { color: var(--coral); }
.footer-brand p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); line-height: 1.6; max-width: 260px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-family: 'Fraunces', serif; font-size: 0.85rem; font-weight: 600; color: #fff; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col a { font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); transition: color 0.15s; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }

/* Newsletter form */
.footer-newsletter { margin-top: 18px; }
.footer-newsletter-label { display: block; font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.footer-newsletter-row { display: flex; gap: 0; }
.footer-newsletter-input { flex: 1; padding: 8px 12px; font-size: 0.85rem; font-family: 'Nunito', sans-serif; border: 1.5px solid rgba(255,255,255,0.15); border-right: none; border-radius: 8px 0 0 8px; background: rgba(255,255,255,0.08); color: #fff; outline: none; transition: border-color 0.2s; }
.footer-newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter-input:focus { border-color: var(--coral); }
.footer-newsletter-btn { padding: 8px 16px; font-size: 0.82rem; font-weight: 700; font-family: 'Nunito', sans-serif; background: var(--coral); color: #fff; border: none; border-radius: 0 8px 8px 0; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.footer-newsletter-btn:hover { background: #d4553f; }
.footer-newsletter-msg { font-size: 0.78rem; margin-top: 6px; min-height: 18px; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .article-header h1 { font-size: 2rem; }
  .article-body h2 { font-size: 1.35rem; }
  .article-cta { padding: 36px 24px; }
}
@media (max-width: 640px) {
  .article-wrapper { padding: 32px 20px 72px; }
  .article-meta { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 600px) {
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
