/*
   BLOG — Moving Tics (tema WordPress)
   Bloco .blog-* extraído do styles.css da home.
 */
/*
   BLOG HERO SLIDER
 */
.blog-hero { min-height: 100vh; background: transparent; display: flex; align-items: center; justify-content: center; padding: 6rem 2rem 8rem; position: relative; z-index: 1; overflow: hidden; }
.blog-hero-slider { width: 100%; max-width: 1200px; position: relative; overflow: hidden; border-radius: 16px; }
.blog-slider-track { display: flex; transition: transform 0.6s var(--ease-out-expo); will-change: transform; }
.blog-slide { flex-shrink: 0; width: 100%; height: 78vh; max-height: 680px; position: relative; cursor: pointer; }
.blog-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.blog-slide-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); z-index: 1; }
.blog-slide-info { position: absolute; bottom: 3rem; left: 3rem; right: 3rem; z-index: 2; }
.blog-slide-cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.6); margin-bottom: 0.8rem; font-weight: 600; }
.blog-slide-title { font-size: clamp(1.5rem, 4vw, 3rem); font-weight: 800; color: #FAFAFA; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.8rem; }
.blog-slide-excerpt { font-size: 1rem; color: rgba(255,255,255,0.6); line-height: 1.5; max-width: 600px; }
.blog-slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; color: #FAFAFA; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease, border-color 0.3s ease; z-index: 5; }
.blog-slider-nav:hover { background: rgba(0,0,0,0.7); border-color: rgba(255,255,255,0.5); }
.blog-slider-prev { left: 1.5rem; }
.blog-slider-next { right: 1.5rem; }
.blog-slider-dots { position: absolute; bottom: 1.5rem; right: 3rem; display: flex; gap: 0.5rem; z-index: 5; }
.blog-slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: background 0.3s ease, transform 0.3s ease; }
.blog-slider-dot.active { background: #FAFAFA; transform: scale(1.3); }

/*
   BLOG GRID
 */
.blog-grid-section { background: transparent; padding: 6rem 2rem; position: relative; z-index: 1; }
.blog-grid-header { max-width: 1200px; margin: 0 auto 4rem; text-align: center; }
.blog-grid-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -0.03em; color: var(--text-primary); text-transform: uppercase; line-height: 1; margin-bottom: 1rem; }
.blog-grid-subtitle { font-size: 1rem; color: var(--text-muted); line-height: 1.6; max-width: 500px; margin: 0 auto; }
.blog-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card { cursor: pointer; opacity: 0; transform: translateY(40px); transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo); }
.blog-card.visible { opacity: 1; transform: translateY(0); }
.blog-card-image { width: 100%; height: 240px; border-radius: 12px; overflow: hidden; background: var(--gray); margin-bottom: 1.2rem; position: relative; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) brightness(0.9); transition: filter 0.4s ease, transform 0.4s var(--ease-out-expo); }
.blog-card:hover .blog-card-image img { filter: grayscale(0%) brightness(1); transform: scale(1.05); }
.blog-card-cat { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); font-weight: 600; margin-bottom: 0.5rem; }
.blog-card-title { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 0.5rem; }
.blog-card-excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.blog-card-date { font-size: 0.75rem; color: var(--text-muted); opacity: 0.6; margin-top: 0.6rem; }

/*
   BLOG MODAL / POST ÚNICO
 */
.blog-modal { position: fixed; inset: 0; z-index: 1500; background: transparent; clip-path: inset(0 0 100% 0); visibility: hidden; transition: visibility 0s 0.5s; }
.blog-modal.active { clip-path: inset(0 0 0% 0); visibility: visible; transition: clip-path 0.6s var(--ease-in-out-quart); }
.blog-modal-close { position: absolute; top: 2rem; right: 2rem; width: 44px; height: 44px; background: rgba(128,128,128,0.15); border: 1px solid rgba(128,128,128,0.5); border-radius: 50%; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.blog-modal-close:hover { border-color: var(--text-primary); background: rgba(128,128,128,0.3); transform: rotate(90deg); }
.blog-modal-close .line { display: block; width: 18px; height: 2px; background: var(--text-primary); position: absolute; opacity: 0.9; }
.blog-modal-close .line-1 { transform: rotate(45deg); }
.blog-modal-close .line-2 { transform: rotate(-45deg); }
.blog-modal-close-tooltip { position: absolute; top: calc(2rem + 44px + 14px); right: 2rem; background: var(--text-primary); color: var(--bg-primary); padding: 0.7rem 1.2rem; border-radius: 10px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateY(-8px) scale(0.95); transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo); pointer-events: none; z-index: 20; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25); }
.blog-modal-close-tooltip.visible { opacity: 1; transform: translateY(0) scale(1); }
.blog-close-tooltip-arrow { position: absolute; top: -5px; right: 16px; width: 12px; height: 12px; background: var(--text-primary); transform: rotate(45deg); border-radius: 3px; }
.blog-close-tooltip-text { display: block; position: relative; z-index: 1; }
.blog-modal-inner { display: flex; width: 100%; height: 100%; }
.blog-modal-content { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 5rem 3.5rem 3rem 2rem; background: var(--bg-primary); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(128,128,128,0.4) transparent; }
body.white-mode .blog-modal-content { background: #FAFAFA; scrollbar-color: rgba(10,10,10,0.3) transparent; }
body.gray-mode .blog-modal-content { background: #290010; }
.blog-modal-content > * { direction: ltr; }
.blog-modal-content::-webkit-scrollbar { width: 4px; }
.blog-modal-content::-webkit-scrollbar-track { background: transparent; }
.blog-modal-content::-webkit-scrollbar-thumb { background: rgba(128,128,128,0.4); border-radius: 2px; }
.blog-modal-content::-webkit-scrollbar-thumb:hover { background: rgba(128,128,128,0.6); }
.blog-modal-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.blog-modal-cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); font-weight: 600; }
.blog-modal-date { font-size: 0.75rem; color: var(--text-muted); opacity: 0.6; }
.blog-modal-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; color: var(--text-primary); line-height: 1.15; margin-bottom: 1rem; }
.blog-modal-author { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.blog-modal-body { font-size: 1rem; line-height: 1.8; color: var(--text-primary); opacity: 0.85; }
.blog-modal-body p { margin-bottom: 1.5rem; }
.blog-modal-body p:first-letter { font-size: 1.2em; font-weight: 700; }
.blog-modal-body h2 { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin: 2.5rem 0 1.5rem; letter-spacing: -0.02em; }
.blog-modal-visual { width: 45%; flex-shrink: 0; position: relative; overflow: hidden; }
.blog-modal-image { width: 100%; height: 100%; background-size: cover; background-position: center; }

/*
   BLOG RESPONSIVE
 */
@media (max-width: 900px) {
  .blog-modal-inner { flex-direction: column; }
  .blog-modal-content { flex: none; min-height: auto; max-height: 70vh; padding: 3rem 1.5rem 2rem 1rem; }
  .blog-modal-visual { width: 100%; height: 250px; flex: none; }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-slide-info { left: 1.5rem; right: 1.5rem; bottom: 2rem; }
  .blog-slider-dots { right: 1.5rem; }
  .blog-slider-nav { width: 40px; height: 40px; }
  .blog-hero { padding: 5rem 1rem 6rem; }
  .blog-slide { height: 65vh; max-height: 450px; }
  .blog-grid-section { padding: 4rem 1.5rem; }
}
@media (max-width: 480px) {
  .blog-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .blog-card-image { height: 180px; }
}