/* === MODO FANTASMA Blog Styles === */
/* Inherits from main site: dark theme, Space Grotesk, pure B&W */

:root {
  --bg: #0A0A0A;
  --fg: #f5f5f5;
  --card: #1a1a1a;
  --muted: #2d2d2d;
  --muted-fg: #999;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --accent: #fff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
  pointer-events: none;
  z-index: 0;
}

/* === LAYOUT === */
.blog-wrap { position: relative; z-index: 1; }

.blog-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.blog-header nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}
.blog-header .logo { height: 2rem; }
.blog-header .nav-links { display: flex; gap: 2rem; align-items: center; }
.blog-header .nav-links a {
  color: var(--muted-fg);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.blog-header .nav-links a:hover { color: var(--fg); }
.blog-header .cta-btn {
  background: #fff;
  color: #0A0A0A;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
}
.blog-header .cta-btn:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
}

/* === ARTICLE === */
.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.article-meta .category {
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-meta .date,
.article-meta .reading-time {
  color: var(--muted-fg);
  font-size: 0.85rem;
}
.article-meta .separator { color: var(--muted-fg); }

.article-container h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.article-container h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.article-container h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.article-container p {
  margin-bottom: 1.25rem;
  color: rgba(245,245,245,0.88);
}

.article-container a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.3);
  transition: text-decoration-color 0.2s;
}
.article-container a:hover {
  text-decoration-color: #fff;
}

.article-container strong { color: #fff; font-weight: 600; }

.article-container ul, .article-container ol {
  margin: 0 0 1.25rem 1.5rem;
  color: rgba(245,245,245,0.88);
}
.article-container li { margin-bottom: 0.5rem; }

.article-container img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  border: 1px solid var(--border);
}

/* === KEY TAKEAWAYS BOX === */
.key-takeaways {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0 2rem;
}
.key-takeaways h2,
.key-takeaways strong:first-child {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: #fff;
}
.key-takeaways ul {
  margin: 0;
  padding-left: 1.25rem;
}
.key-takeaways li {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === FAQ SECTION === */
.faq-section {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  cursor: pointer;
}
.faq-item p {
  margin: 0;
  color: var(--muted-fg);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === CALLOUT BOX === */
.callout {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid #fff;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}
.callout p { margin: 0; font-size: 0.95rem; }

/* === TABLE === */
.article-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.article-container thead {
  background: var(--card);
}
.article-container th {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: #fff;
}
.article-container td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: rgba(245,245,245,0.8);
}
.article-container tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

/* === AUTHOR BOX === */
.author-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 3rem;
}
.author-box img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--border);
  margin: 0;
}
.author-box .author-info h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.author-box .author-info p {
  font-size: 0.85rem;
  color: var(--muted-fg);
  margin: 0;
}

/* === BLOG INDEX PAGE === */
.blog-hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}
.blog-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.blog-hero p {
  color: var(--muted-fg);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.blog-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.blog-card .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  border: none;
  border-bottom: 1px solid var(--border);
}
.blog-card .card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card .card-category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 0.75rem;
}
.blog-card .card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: #fff;
}
.blog-card .card-excerpt {
  font-size: 0.9rem;
  color: var(--muted-fg);
  line-height: 1.6;
  flex: 1;
}
.blog-card .card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted-fg);
}

/* === BREADCRUMB === */
.breadcrumb {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  font-size: 0.8rem;
  color: var(--muted-fg);
}
.breadcrumb a { color: var(--muted-fg); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 0.5rem; }

/* === RELATED POSTS === */
.related-posts {
  max-width: 760px;
  margin: 3rem auto 0;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
}
.related-posts h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.related-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.related-card:hover { border-color: var(--border-hover); }
.related-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #fff;
}
.related-card p {
  font-size: 0.8rem;
  color: var(--muted-fg);
  margin: 0;
}

/* === FOOTER === */
.blog-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
  text-align: center;
}
.blog-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.blog-footer .footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.blog-footer .footer-links a {
  color: var(--muted-fg);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.blog-footer .footer-links a:hover { color: #fff; }
.blog-footer .copyright {
  color: var(--muted-fg);
  font-size: 0.8rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .blog-header .nav-links { display: none; }
  .article-container { padding: 2rem 1rem 3rem; }
  .blog-grid { grid-template-columns: 1fr; padding: 0 1rem 3rem; }
  .author-box { flex-direction: column; text-align: center; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 3rem 1rem 2rem; }
}
