/* blog.css — Tadeu Fernandes Blog */
:root {
  --bg:          #0E2832;
  --bg-deep:     #091E26;
  --text:        #F2F0EA;
  --muted:       #8A9DA5;
  --subtle:      #5A6B72;
  --gold:        #B8955A;
  --gold-light:  #C9A87A;
  --gold-pale:   #D4BC99;
  --border:      rgba(242,240,234,0.08);
  --border-gold: rgba(184,149,90,0.3);
  --font:        'Outfit', 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); overflow-x: hidden; }

/* SHIMMER */
.shimmer {
  background: linear-gradient(89deg,#B8955A -50%,#D4BC99 50%,#B8955A 150%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite; display: inline;
}
.titu {
  background: linear-gradient(90deg,#F2F0EA 0%,#C8C5BC 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; display: inline;
}
@keyframes shimmer { 0% { background-position:100% 0; } 100% { background-position:-100% 0; } }

/* LAYOUT */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
.blog-header {
  background: rgba(9,30,38,0.96);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 24px; gap: 16px;
  max-width: 1140px; margin: 0 auto;
}
.blog-logo {
  font-size: 15px; font-weight: 600; color: var(--text);
  text-decoration: none; text-transform: uppercase;
  letter-spacing: 0.04em; white-space: nowrap; flex-shrink: 0;
}
.blog-logo span { color: var(--gold); }

.blog-nav {
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: center;
  overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none;
}
.blog-nav::-webkit-scrollbar { display: none; }
.blog-nav a {
  font-size: 12px; font-weight: 400; color: var(--muted);
  text-decoration: none; padding: 6px 10px; border-radius: 6px;
  transition: all .2s; white-space: nowrap;
}
.blog-nav a:hover { color: var(--text); background: rgba(184,149,90,0.1); }
.blog-nav a.active { color: var(--gold); background: rgba(184,149,90,0.1); }

.nav-toggle {
  display: none; background: none; border: none;
  color: var(--text); cursor: pointer; padding: 4px; flex-shrink: 0;
}

.btn-cta-sm {
  background: linear-gradient(266deg,#B8955A 0%,#C9A87A 55%,#B8955A 100%);
  color: #F2F0EA; font-family: var(--font); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: 9999px; padding: 10px 18px; border: none;
  transition: all .3s; text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.btn-cta-sm:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* BREADCRUMB */
.breadcrumb {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(9,30,38,0.4);
}
.breadcrumb-list { display: flex; align-items: center; gap: 8px; list-style: none; font-size: 13px; }
.breadcrumb-list a { color: var(--muted); text-decoration: none; transition: color .2s; }
.breadcrumb-list a:hover { color: var(--text); }
.breadcrumb-list .sep { color: var(--subtle); }
.breadcrumb-list .current { color: var(--gold); font-weight: 500; }

/* BLOG HERO (category pages) */
.blog-hero {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, #091E26 0%, #0E2832 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.blog-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px;
}
.blog-hero .eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: var(--gold); }
.blog-hero h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 600; line-height: 1.15; margin-bottom: 16px; }
.blog-hero p { font-size: 17px; font-weight: 300; color: var(--muted); max-width: 600px; margin: 0 auto; line-height: 1.65; }

/* INDEX HERO */
.index-hero {
  padding: 80px 0 64px;
  background: linear-gradient(180deg, #091E26 0%, #0E2832 100%);
  text-align: center; position: relative; overflow: hidden;
}
.index-hero::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(184,149,90,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.index-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 20px;
}
.index-hero .eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: var(--gold); }
.index-hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 600; line-height: 1.1; margin-bottom: 20px; }
.index-hero p { font-size: 18px; font-weight: 300; color: var(--muted); max-width: 580px; margin: 0 auto 0; line-height: 1.7; }

/* CATEGORY GRID (blog index) */
.category-section { padding: 64px 0; }
.category-section h2 {
  font-size: 22px; font-weight: 600; margin-bottom: 32px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.cat-card {
  background: rgba(242,240,234,0.03);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 26px 22px;
  text-decoration: none; color: var(--text);
  transition: all .3s; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
}
.cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,149,90,0.4), transparent);
  opacity: 0; transition: opacity .3s;
}
.cat-card:hover { border-color: var(--border-gold); background: rgba(184,149,90,0.05); transform: translateY(-4px); box-shadow: rgba(184,149,90,0.1) 0 8px 32px; }
.cat-card:hover::before { opacity: 1; }
.cat-icon { font-size: 26px; line-height: 1; }
.cat-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.cat-desc { font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.6; flex: 1; }
.cat-arrow { font-size: 13px; color: var(--gold); font-weight: 500; margin-top: 4px; }

/* POSTS AREA */
.posts-section { padding: 56px 0; }
.posts-empty {
  text-align: center; padding: 80px 40px;
  background: rgba(242,240,234,0.02);
  border: 1px dashed rgba(184,149,90,0.25);
  border-radius: 20px;
}
.posts-empty-icon { font-size: 44px; margin-bottom: 20px; opacity: .7; }
.posts-empty h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.posts-empty p { font-size: 15px; font-weight: 300; color: var(--muted); line-height: 1.65; max-width: 380px; margin: 0 auto; }

/* CTA BLOCK */
.cta-section { padding: 0 0 72px; }
.cta-block {
  background: rgba(184,149,90,0.06);
  border: 1px solid var(--border-gold);
  border-radius: 20px; padding: 52px 44px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-block::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(184,149,90,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-block h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 600; margin-bottom: 14px; line-height: 1.2; position: relative; }
.cta-block p { font-size: 16px; font-weight: 300; color: var(--muted); margin-bottom: 28px; line-height: 1.65; position: relative; }
.btn-cta {
  background: linear-gradient(266deg,#B8955A 0%,#C9A87A 55%,#B8955A 100%);
  color: #F2F0EA; font-family: var(--font); font-size: 15px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: 9999px; padding: 18px 36px; border: none;
  box-shadow: rgba(184,149,90,0.4) 0 0 40px;
  transition: all .3s; text-decoration: none; display: inline-block; position: relative;
}
.btn-cta:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: rgba(184,149,90,0.65) 0 0 60px; }

/* FOOTER */
.blog-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 40px 0; text-align: center;
}
.footer-logo { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a { font-size: 13px; color: var(--subtle); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-fine { font-size: 12px; color: var(--subtle); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .blog-nav { display: none; }
  .blog-nav.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-deep); border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 4px;
  }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .header-inner { flex-wrap: wrap; position: relative; }
  .cta-block { padding: 36px 24px; }
  .posts-empty { padding: 56px 24px; }
}
@media (max-width: 600px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
  .index-hero { padding: 60px 0 48px; }
}
@media (max-width: 400px) {
  .category-grid { grid-template-columns: 1fr; }
}

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card {
  display: flex; flex-direction: column;
  background: rgba(242,240,234,0.03); border: 1px solid rgba(242,240,234,0.08);
  border-radius: 16px; text-decoration: none; overflow: hidden;
  transition: all .3s;
}
.post-card:hover { border-color: rgba(184,149,90,0.35); transform: translateY(-4px); box-shadow: rgba(184,149,90,0.12) 0 8px 32px; }
.post-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-tag { font-size: 11px; font-weight: 600; color: #B8955A; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.post-title { font-size: 17px; font-weight: 600; line-height: 1.4; color: #F2F0EA; margin-bottom: 12px; }
.post-excerpt { font-size: 14px; font-weight: 300; color: #8A9DA5; line-height: 1.6; flex: 1; margin-bottom: 20px; }
.post-read { font-size: 13px; font-weight: 600; color: #B8955A; }
