/* ═══════════════════════════════════════════
   BLOG STYLES — matches TGraphics dark theme
   ═══════════════════════════════════════════ */
:root {
  --bg: #0f1117;
  --bg-card: #1a1f26;
  --bg-card-hover: #1f2630;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --primary: #67e8f9;
  --secondary: #a78bfa;
  --border: rgba(255,255,255,0.06);
  --font-heading: 'Roboto Condensed', system-ui, sans-serif;
  --font-body: 'Roboto Condensed', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #a5f3fc; }

img { max-width: 100%; height: auto; }

/* ════════════════════════════════════════════
   SITE HEADER — matches main TGraphics nav
   ════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(26,31,45,0.97);
  height: 58px;
}
.site-header-inner {
  width: 100%;
  padding: 0 2.5rem 0 2rem;
  display: flex; align-items: center; height: 100%;
}
.site-logo {
  display: flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 0.75rem;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.site-logo:hover { opacity: 0.9; }
.site-logo img { height: 32px; width: auto; }
@media (min-width: 1024px) {
  .site-header-inner { padding-left: 35px; padding-right: 45px; }
  .site-logo {
    height: 88px; width: 200px;
    align-self: flex-start;
    background: #141a28;
    border: 1px solid #2a3554;
    border-top: none;
    padding: 0 14px;
    margin-right: 2rem;
  }
  .site-logo img { height: 56px; }
}
.site-nav {
  display: none;
  align-items: center;
  gap: 26px;
}
@media (min-width: 1024px) { .site-nav { display: flex; } }
.site-nav a {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.site-nav a:hover { color: #22d3ee; }
.site-nav a.active { color: #22d3ee; }
.site-cta-btn {
  display: none;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 9px 22px;
  background: #12c0e2;
  color: #212730;
  margin-left: auto;
  white-space: nowrap;
  transition: background 0.2s;
  align-items: center;
}
@media (min-width: 1024px) { .site-cta-btn { display: inline-flex; } }
.site-cta-btn:hover { background: #22d3ee; color: #212730; }

/* Mobile menu button */
.mobile-menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; border: none;
  color: var(--text);
  cursor: pointer;
  margin-left: auto;
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

/* Mobile menu panel */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 58px; left: 0; right: 0;
  background: rgba(15,17,23,0.98);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  padding: 0.85rem 1.5rem;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active {
  color: var(--primary);
  background: rgba(103,232,249,0.04);
}

/* ── Hero ── */
.blog-hero {
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(15,17,23,1) 0%, rgba(26,31,38,0.6) 100%);
  border-bottom: 1px solid var(--border);
}
.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.blog-hero h1 span { color: var(--primary); font-weight: 300; }
.blog-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Category pills ── */
.category-pills {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  justify-content: center;
  padding: 2rem;
  max-width: 1680px; margin: 0 auto;
}
.cat-pill {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.cat-pill:hover, .cat-pill.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(103,232,249,0.05);
}

/* ── Post grid ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1680px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
}
@media (max-width: 1023px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.post-card:hover {
  border-color: rgba(103,232,249,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.post-card .thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #141a28, #1a2235);
  overflow: hidden;
  position: relative;
}
.post-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .thumb .thumb-placeholder svg {
  width: 80px; height: 80px;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.4s;
}
.post-card:hover .thumb .thumb-placeholder svg {
  opacity: 1;
  transform: scale(1.1);
}
.post-card .thumb .cat-badge {
  position: absolute; top: 1rem; left: 1rem;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.3rem 0.7rem;
  background: rgba(15,17,23,0.85);
  border: 1px solid var(--primary);
  color: var(--primary);
}
.post-card .body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card .meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex; gap: 1rem; align-items: center;
}
.post-card .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }
.post-card h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--text);
  transition: color 0.2s;
}
.post-card:hover h2 { color: var(--primary); }
.post-card .excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}
.post-card .read-more {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
.post-card:hover .read-more { color: var(--primary); }
.post-card .read-more svg { transition: transform 0.2s; }
.post-card:hover .read-more svg { transform: translateX(4px); }

/* ── Single post ── */
.post-hero {
  padding: 8rem 2rem 3rem;
  max-width: 920px;
  margin: 0 auto;
}
.post-hero .breadcrumb {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap;
}
.post-hero .breadcrumb a { color: var(--primary); }
.post-hero .breadcrumb .sep { color: var(--text-muted); }
.post-hero .post-cat {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}
.post-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.post-hero .post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.post-hero .post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); }

.post-featured {
  max-width: 920px;
  margin: 2rem auto;
  padding: 0 2rem;
}
.post-featured img {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
  border: 1px solid var(--border);
}

.post-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
}
.post-content h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.post-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}
.post-content p { margin-bottom: 1.25rem; }
.post-content strong { color: var(--text); font-weight: 600; }
.post-content ul, .post-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
/* restore list markers stripped by Tailwind preflight (loaded for the shared footer) */
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.5rem; }
.post-content blockquote {
  border-left: 3px solid var(--primary);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: rgba(103,232,249,0.03);
  font-style: italic;
  color: var(--text);
}
.post-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* ── Related posts ── */
.related-section {
  max-width: 1680px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  border-top: 1px solid var(--border);
}
.related-section h3 {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 767px) { .related-grid { grid-template-columns: 1fr; } }

/* ── CTA banner ── */
.blog-cta {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 5rem 1.5rem;
  text-align: center;
}
.blog-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.blog-cta h2 span { color: var(--primary); font-weight: 300; }
.blog-cta p { color: var(--text-muted); max-width: 500px; margin: 0 auto 2rem; }
.blog-cta .btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 2.5rem;
  background: var(--text);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  min-height: 48px;
}
.blog-cta .btn:hover { background: #fff; color: var(--bg); }

/* ════════════════════════════════════════════
   SITE FOOTER — matches main TGraphics footer
   ════════════════════════════════════════════ */
.site-footer {
  background: #1a1f26;
}
.footer-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 1023px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand { }
.footer-logo { height: 36px; width: auto; margin-bottom: 1rem; display: block; }
.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.footer-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.footer-col a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }

/* Contact column items with icons (matches main footer) */
.footer-contact-item {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.8rem; color: var(--text-muted);
}
.footer-contact-item svg {
  flex-shrink: 0; margin-top: 2px;
  color: #22d3ee; opacity: 0.8;
}
.footer-contact-item .label {
  font-family: var(--font-heading);
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text);
  display: block;
}
.footer-contact-item a { color: var(--text-muted); font-size: 0.8rem; }
.footer-contact-item a:hover { color: var(--primary); }

.back-top {
  font-family: var(--font-heading);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--text-muted);
  background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s;
}
.back-top:hover { color: var(--primary); }

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
}
.footer-bottom p {
  font-size: 0.7rem;
  color: rgba(148,163,184,0.5);
}
.footer-legal {
  font-size: 0.65rem !important;
  color: rgba(148,163,184,0.35) !important;
}
.footer-legal-links {
  display: flex; gap: 1.5rem;
  margin-left: auto;
}
.footer-legal-links a {
  font-size: 0.7rem;
  color: rgba(148,163,184,0.5);
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: var(--primary); }
@media (max-width: 639px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-legal-links { margin-left: 0; }
}

/* ════════════════════════════════════════════
   SHARED SITE FOOTER (exact React markup + Tailwind CSS)
   blog.css's universal reset beats Tailwind's layered spacing
   utilities, so the footer's spacing is re-declared here unlayered.
   ════════════════════════════════════════════ */
footer .mx-auto { margin-left: auto; margin-right: auto; }
footer .px-4 { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 1024px) {
  footer .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}
footer .pt-14 { padding-top: 3.5rem; }
footer .pb-10 { padding-bottom: 2.5rem; }
footer .mb-14 { margin-bottom: 3.5rem; }
footer .mb-4 { margin-bottom: 1rem; }
footer .mb-5 { margin-bottom: 1.25rem; }
footer .pb-3 { padding-bottom: 0.75rem; }
footer .pt-6 { padding-top: 1.5rem; }
footer .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
footer .mt-0\.5 { margin-top: 0.125rem; }
footer .mb-0\.5 { margin-bottom: 0.125rem; }
footer .space-y-6 > * + * { margin-top: 1.5rem; }
footer .space-y-4 > * + * { margin-top: 1rem; }
footer .space-y-3\.5 > * + * { margin-top: 0.875rem; }
footer .space-y-0\.5 > * + * { margin-top: 0.125rem; }
/* footer brand logo: blog.css's img{height:auto} beats Tailwind's layered h-12, so size it explicitly */
footer .inline-block img { height: 3rem; width: auto; max-width: none; }
/* footer link colour: muted grey like the main site (blog.css global `a` rule would make them cyan) */
footer ul a, footer .flex.items-center.gap-6 a { color: rgba(148,163,184,0.85); }
footer ul a:hover, footer .flex.items-center.gap-6 a:hover { color: #22d3ee; }
footer a[href^="https://wa.me"]:hover { color: #4ade80; }

/* ── Loading state ── */
.loading {
  text-align: center;
  padding: 4rem;
  color: var(--text-muted);
}
.loading::after {
  content: '';
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 0.5rem;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--text-muted);
}
.empty-state h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text); }
