/*
Theme Name: CryptoMind IA Blog
Theme URI: https://cryptomindia.com
Author: CryptoMind IA
Author URI: https://cryptomindia.com
Description: Tema customizado do blog CryptoMind IA — design dark premium editorial
Version: 1.0.0
License: Proprietary
Text Domain: cryptomind-blog
*/

/* =============================================
   VARIÁVEIS E RESET
   ============================================= */
:root {
  --cyan: #00d4ff;
  --cyan-dark: #00a8cc;
  --cyan-glow: rgba(0,212,255,.15);
  --cyan-strong: rgba(0,212,255,.3);
  --bg: #050d1a;
  --bg-card: #0a1628;
  --bg-card2: #0d1e35;
  --bg-card3: #111f38;
  --border: rgba(0,212,255,.12);
  --border-h: rgba(0,212,255,.4);
  --text: #f0f4ff;
  --text-s: #8ba3c7;
  --text-m: #4a6080;
  --green: #00e676;
  --red: #ff4757;
  --orange: #ffa502;
  --ign: #ff6b35;
  --con: #00d4ff;
  --rev: #a855f7;
  --r: 12px;
  --rl: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --sc: 0 0 40px rgba(0,212,255,.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-h); border-radius: 3px; }

/* =============================================
   LAYOUT
   ============================================= */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,13,26,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--cyan), #0066ff);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav-logo span { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-s);
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links a.nav-blog { color: var(--cyan); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav-in {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-s);
  padding: 8px 16px;
  border-radius: 8px;
  transition: color .2s;
  background: none;
  border: none;
}

.btn-nav-in:hover { color: var(--text); }

.btn-nav-start {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  background: var(--cyan);
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  transition: all .2s;
}

.btn-nav-start:hover {
  background: #00eeff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,212,255,.35);
}

/* =============================================
   HERO DO BLOG
   ============================================= */
.blog-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}

.blog-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.blog-hero-text .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-glow);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.blog-hero-text h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0;
}

.blog-hero-text h1 span { color: var(--cyan); }

.blog-hero-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: gap .2s;
}

.blog-hero-link:hover { gap: 10px; }

/* =============================================
   CATEGORIAS FILTRO
   ============================================= */
.cat-filter {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.cat-filter-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cat-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-s);
  background: transparent;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--cyan-glow);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* =============================================
   GRID DE POSTS — PÁGINA INICIAL
   ============================================= */
.posts-section { padding: 60px 0 100px; }

.posts-grid-featured {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.posts-grid-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* =============================================
   CARD DE POST
   ============================================= */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
  transition: all .3s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--sc);
}

/* Imagem do card */
.post-card-img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card2);
  overflow: hidden;
  position: relative;
}

.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.post-card:hover .post-card-img img { transform: scale(1.04); }

.post-card-img.feat {
  min-height: 220px;
  background: linear-gradient(135deg, rgba(255,107,53,.15), rgba(0,212,255,.1));
  font-size: 80px;
}

.post-card-img.sm {
  min-height: 110px;
  font-size: 40px;
}

.post-card-img.md {
  min-height: 160px;
  font-size: 56px;
}

/* Emoji fallback quando não há imagem */
.post-card-img .emoji-fallback {
  font-size: inherit;
  line-height: 1;
}

/* Corpo do card */
.post-card-body {
  padding: 22px;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.post-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 6px;
}

.post-cat.ign { color: var(--ign); background: rgba(255,107,53,.12); border: 1px solid rgba(255,107,53,.25); }
.post-cat.str { color: var(--cyan); background: var(--cyan-glow); border: 1px solid var(--border); }
.post-cat.edu { color: var(--green); background: rgba(0,230,118,.1); border: 1px solid rgba(0,230,118,.2); }
.post-cat.mkt { color: var(--rev); background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.2); }
.post-cat.rev { color: var(--rev); background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.2); }
.post-cat.risco { color: var(--orange); background: rgba(255,165,2,.1); border: 1px solid rgba(255,165,2,.2); }
.post-cat.default { color: var(--text-s); background: rgba(139,163,199,.08); border: 1px solid var(--border); }

.post-date {
  font-size: 11px;
  color: var(--text-m);
}

.post-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text);
  transition: color .2s;
}

.post-title.sm { font-size: 15px; }
.post-title.lg { font-size: 20px; }

.post-card:hover .post-title { color: var(--cyan); }

.post-excerpt {
  font-size: 13px;
  color: var(--text-s);
  line-height: 1.7;
}

/* Footer do card */
.post-card-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-author {
  font-size: 12px;
  color: var(--text-m);
}

.post-read {
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}

.post-card:hover .post-read { gap: 8px; }

/* Card destaque lateral (coluna direita) */
.post-card-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =============================================
   POST ÚNICO
   ============================================= */
.single-post { padding: 60px 0 100px; }

.single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* Cabeçalho do post */
.post-header { margin-bottom: 40px; }

.post-header .post-cat { display: inline-flex; margin-bottom: 16px; }

.post-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

.post-header-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.post-header-meta .author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #0066ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

.author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.author-role {
  font-size: 11px;
  color: var(--text-m);
}

.post-header-meta .divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.post-header-meta .meta-item {
  font-size: 12px;
  color: var(--text-m);
}

/* Imagem destaque do post */
.post-feat-img {
  width: 100%;
  min-height: 300px;
  border-radius: var(--rl);
  overflow: hidden;
  margin-bottom: 40px;
  background: linear-gradient(135deg, rgba(255,107,53,.15), rgba(0,212,255,.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
}

.post-feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Conteúdo do post */
.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-s);
}

.post-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--ign);
}

.post-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  margin: 32px 0 12px;
}

.post-content h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 10px;
}

.post-content p { margin-bottom: 20px; }

.post-content strong { color: var(--cyan); font-weight: 600; }

.post-content em { color: var(--text); font-style: italic; }

.post-content a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(0,212,255,.3);
  transition: border-color .2s;
}

.post-content a:hover { border-color: var(--cyan); }

.post-content ul,
.post-content ol {
  margin: 0 0 20px 24px;
  color: var(--text-s);
}

.post-content li { margin-bottom: 8px; }

.post-content blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  background: rgba(0,212,255,.05);
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--text-s);
  font-style: italic;
}

.post-content blockquote p { margin: 0; }

.post-content img {
  border-radius: var(--r);
  margin: 24px 0;
  width: 100%;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.post-content th {
  background: rgba(0,212,255,.1);
  color: var(--cyan);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.post-content td {
  padding: 12px 16px;
  color: var(--text-s);
  border-bottom: 1px solid var(--border);
}

.post-content tr:hover td { background: rgba(0,212,255,.03); }

.post-content code {
  background: var(--bg-card2);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  font-size: 14px;
}

.post-content pre {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: var(--text-s);
}

/* CTA no post */
.post-cta-box {
  background: linear-gradient(135deg, rgba(0,212,255,.08), rgba(0,102,255,.08));
  border: 1px solid var(--border-h);
  border-radius: var(--rl);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

.post-cta-box h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.post-cta-box p {
  font-size: 14px;
  color: var(--text-s);
  margin-bottom: 20px;
}

.post-cta-box .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
}

.post-cta-box .btn-cta:hover {
  background: #00eeff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,212,255,.35);
}

/* Tags do post */
.post-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 40px 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.post-tags-label {
  font-size: 12px;
  color: var(--text-m);
  font-weight: 600;
}

.post-tag {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-s);
  transition: all .2s;
  text-decoration: none;
}

.post-tag:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-glow);
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar { position: sticky; top: 80px; }

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}

/* Widget: Posts recentes */
.recent-posts-list { list-style: none; }

.recent-post-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: all .2s;
}

.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-item:first-child { padding-top: 0; }

.recent-post-item:hover .recent-post-title { color: var(--cyan); }

.recent-post-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--bg-card2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
}

.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  transition: color .2s;
  margin-bottom: 4px;
}

.recent-post-date {
  font-size: 11px;
  color: var(--text-m);
}

/* Widget: Categorias */
.cat-list { list-style: none; }

.cat-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: all .2s;
}

.cat-list-item:last-child { border-bottom: none; }

.cat-list-item a {
  font-size: 14px;
  color: var(--text-s);
  transition: color .2s;
}

.cat-list-item:hover a { color: var(--cyan); }

.cat-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-m);
  background: var(--bg-card2);
  padding: 2px 8px;
  border-radius: 100px;
}

/* Widget: CTA */
.sidebar-cta {
  background: linear-gradient(135deg, rgba(0,212,255,.08), rgba(0,102,255,.08));
  border: 1px solid var(--border-h);
  border-radius: var(--rl);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.sidebar-cta h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.sidebar-cta p {
  font-size: 13px;
  color: var(--text-s);
  margin-bottom: 16px;
  line-height: 1.6;
}

.sidebar-cta .btn-cta-sm {
  display: block;
  width: 100%;
  background: var(--cyan);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.sidebar-cta .btn-cta-sm:hover {
  background: #00eeff;
  box-shadow: 0 4px 20px rgba(0,212,255,.35);
}

/* Widget: Tags */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-s);
  transition: all .2s;
}

.tag-cloud a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-glow);
}

/* =============================================
   PAGINAÇÃO
   ============================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 60px 0 0;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-s);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all .2s;
  text-decoration: none;
}

.page-numbers:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-glow);
}

.page-numbers.current {
  background: var(--cyan);
  color: #000;
  border-color: var(--cyan);
}

.page-numbers.dots {
  background: transparent;
  border: none;
  color: var(--text-m);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #030810;
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--cyan), #0066ff);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.footer-logo span { color: var(--cyan); }

.footer-desc {
  font-size: 13px;
  color: var(--text-m);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-s);
  margin-bottom: 16px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 13px;
  color: var(--text-m);
  transition: color .2s;
}

.footer-links a:hover { color: var(--cyan); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-m);
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-m);
  max-width: 500px;
  text-align: right;
  line-height: 1.5;
}

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 900px) {
  .posts-grid-featured {
    grid-template-columns: 1fr;
  }

  .post-card-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .posts-grid-secondary {
    grid-template-columns: 1fr 1fr;
  }

  .single-layout {
    grid-template-columns: 1fr;
  }

  .sidebar { position: static; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .nav-links { display: none; }

  .blog-hero { padding: 48px 0 36px; }

  .blog-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .posts-grid-secondary {
    grid-template-columns: 1fr;
  }

  .post-card-side {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-disclaimer { text-align: center; }
}
