/* ============================================================
   NEURONE LABS — WordPress Blog Theme CSS (clean v3)
   ============================================================ */

:root {
  --color-teal:       #22E5E5;
  --color-blue:       #00A0E6;
  --color-surface:    #0A0A0A;
  --color-surface-2:  #111111;
  --color-surface-3:  #181818;
  --color-muted:      rgba(255,255,255,0.55);
  --color-border:     rgba(255,255,255,0.08);
  --gradient-brand:   linear-gradient(90deg, #00A0E6 0%, #22E5E5 100%);
  --font-sans:        'Space Grotesk', Arial, sans-serif;
  --radius-sm:  6px; --radius-md: 12px; --radius-lg: 20px; --radius-xl: 32px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--color-surface); color: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(20px,5vw,48px); }
.gradient-text { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: var(--radius-md); font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; background: var(--gradient-brand); color: #000; transition: var(--transition); white-space: nowrap; border: none; cursor: pointer; text-decoration: none; }
.btn-primary:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(34,229,229,.25); }

.section-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-teal); margin-bottom: 16px; }
.section-tag::before { content: ''; display: block; width: 20px; height: 2px; background: var(--gradient-brand); border-radius: 2px; }

/* ── HEADER ── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background var(--transition), box-shadow var(--transition); }
.site-header.scrolled { background: rgba(10,10,10,.92); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.site-logo img { height: 38px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.75); padding: 8px 14px; border-radius: var(--radius-sm); transition: var(--transition); }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active { color: var(--color-teal); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 16px 0 24px; border-top: 1px solid var(--color-border); }
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { font-size: 16px; padding: 12px 16px; }
.mobile-nav .btn-primary { margin: 8px 16px 0; justify-content: center; }

/* ── BLOG HERO ── */
.blog-hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 65% 40%, rgba(0,160,230,.14) 0%, transparent 65%),
              radial-gradient(ellipse 45% 50% at 80% 65%, rgba(34,229,229,.09) 0%, transparent 55%),
              var(--color-surface); }
.blog-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(34,229,229,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(34,229,229,.06) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; z-index: 0; }
.blog-hero .container { position: relative; z-index: 1; }
.blog-hero-title { font-size: clamp(40px,6vw,68px); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; margin-bottom: 20px; }
.blog-hero-subtitle { font-size: clamp(16px,2vw,19px); color: var(--color-muted); line-height: 1.7; max-width: 560px; }

/* ── BLOG CONTENT ── */
.blog-content { padding: 80px 0 100px; }

/* ── POST CARDS ── */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 56px; }
.post-card { background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; }
.post-card:hover { border-color: rgba(34,229,229,.2); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,160,230,.1); }
.post-card-image { display: block; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--color-surface-3); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12px; color: var(--color-muted); }
.post-card-cat { color: var(--color-teal); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.post-card-title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 12px; }
.post-card-title a { color: #fff; transition: color var(--transition); }
.post-card-title a:hover { color: var(--color-teal); }
.post-card-excerpt { font-size: 14px; color: var(--color-muted); line-height: 1.65; margin-bottom: 20px; flex: 1; }
.post-card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--color-teal); transition: gap var(--transition); margin-top: auto; }
.post-card-link:hover { gap: 10px; }

/* ── PAGINAÇÃO ── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; border: 1px solid var(--color-border); color: var(--color-muted); transition: var(--transition); }
.pagination a:hover { border-color: var(--color-teal); color: var(--color-teal); }
.pagination .current { background: var(--gradient-brand); color: #000; border-color: transparent; }
.no-posts { text-align: center; padding: 80px 0; color: var(--color-muted); font-size: 18px; }

/* ── SINGLE POST ── */
.single-hero { position: relative; padding: 140px 0 60px; overflow: hidden; }
.single-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,160,230,.1) 0%, transparent 70%); pointer-events: none; }
.single-hero-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; font-size: 13px; color: var(--color-muted); position: relative; z-index: 1; }
.single-cat { color: var(--color-teal); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.single-title { font-size: clamp(32px,5vw,60px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin-bottom: 32px; position: relative; z-index: 1; }
.single-cover { margin-bottom: clamp(40px,6vw,64px); position: relative; z-index: 1; }
.single-cover img { width: 100%; border-radius: var(--radius-xl); max-height: 520px; object-fit: cover; }
.single-content { padding-bottom: clamp(64px,10vw,100px); }
.single-body { font-size: 17px; line-height: 1.8; color: rgba(255,255,255,.85); max-width: 740px; margin: 0 auto; }
.single-body h2 { font-size: clamp(22px,3vw,30px); font-weight: 700; letter-spacing: -.02em; margin: 48px 0 16px; color: #fff; }
.single-body h3 { font-size: clamp(18px,2.5vw,24px); font-weight: 700; margin: 36px 0 12px; color: #fff; }
.single-body p { margin-bottom: 24px; }
.single-body ul, .single-body ol { margin: 0 0 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.single-body strong { color: #fff; font-weight: 600; }
.single-body a { color: var(--color-teal); text-decoration: underline; text-underline-offset: 3px; }
.single-body blockquote { margin: 32px 0; padding: 24px 28px; background: var(--color-surface-2); border-left: 3px solid var(--color-teal); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 18px; font-style: italic; }
.single-body img { border-radius: var(--radius-md); margin: 32px 0; }
.single-body code { font-family: monospace; font-size: 14px; background: var(--color-surface-3); padding: 2px 8px; border-radius: 4px; color: var(--color-teal); }
.single-cta { max-width: 740px; margin: 48px auto 0; padding: 36px 40px; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.single-cta-text { font-size: 17px; font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--color-muted); margin-top: 40px; transition: color var(--transition); max-width: 740px; margin-left: auto; margin-right: auto; }
.back-link:hover { color: #fff; }

/* ── FOOTER ── */
.site-footer { padding: 64px 0 32px; border-top: 1px solid var(--color-border); }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 48px; margin-bottom: 48px; }
.footer-brand img { height: 34px; width: auto; }
.footer-desc { font-size: 14px; color: var(--color-muted); line-height: 1.7; margin-top: 20px; max-width: 260px; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link { font-size: 14px; color: var(--color-muted); transition: color var(--transition); }
.footer-link:hover { color: #fff; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 32px; border-top: 1px solid var(--color-border); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.3); }
.footer-copy span { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 600; }
.footer-legal { color: #c8a820 !important; -webkit-text-fill-color: #c8a820 !important; font-size: 12px; line-height: 1.6; text-align: center; width: 100%; margin-top: 4px; }

/* ── RESPONSIVO ── */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-nav, .header-inner > .btn-primary { display: none; }
  .hamburger { display: flex; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .single-cta { flex-direction: column; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
