/* ═══════════════════════════════════════
   NOX TECH — Estilos
   ═══════════════════════════════════════ */

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

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-nav: rgba(10, 10, 15, 0.9);
  --text: #e4e4e7;
  --text-muted: #7c7c8a;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.2);
  --border: #1e1e2a;
  --radius: 12px;
  --max-width: 1080px;
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ─── Header ─── */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; color: var(--text) !important; }
.logo-accent { color: var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ─── Hero ─── */
.hero {
  padding: 160px 0 80px;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.08), transparent 70%);
  text-align: center;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.2; margin-bottom: 16px; }
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 640px; margin: 0 auto 32px; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px;
  border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
  transition: all 0.2s; }
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--border); color: var(--text) !important; }
.btn-secondary:hover { background: #2a2a3a; }

/* ─── Section ─── */
.section { padding: 80px 0; }
.section-title {
  font-size: 1.6rem; margin-bottom: 40px;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Post Cards ─── */
.posts-grid { display: grid; gap: 24px; }
.post-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.3s;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow); }
.post-card-body { padding: 24px; }
.post-tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: rgba(99, 102, 241, 0.1); color: var(--accent);
  font-size: 0.78rem; font-weight: 600; margin-bottom: 12px;
}
.post-card h3 { font-size: 1.15rem; line-height: 1.4; margin-bottom: 8px; }
.post-card h3 a { color: var(--text) !important; }
.post-card h3 a:hover { color: var(--accent) !important; }
.post-excerpt { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin-bottom: 16px; }
.post-meta { display: flex; gap: 6px; font-size: 0.82rem; color: var(--text-muted); }

/* ─── Categories ─── */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.category-card {
  display: block; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: all 0.3s; color: var(--text) !important;
}
.category-card:hover { border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow); }
.category-icon { font-size: 2rem; margin-bottom: 12px; display: block; }
.category-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.category-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ─── Article Page ─── */
.article-header {
  padding: 140px 0 40px;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.06), transparent 70%);
}
.article-header h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.3; margin-bottom: 16px; }
.article-meta { display: flex; gap: 12px; color: var(--text-muted); font-size: 0.9rem; flex-wrap: wrap; }
.article-content { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }
.article-content h2 { font-size: 1.5rem; margin: 40px 0 16px; color: var(--text); }
.article-content h3 { font-size: 1.2rem; margin: 32px 0 12px; }
.article-content p { margin-bottom: 20px; color: #c4c4cb; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; color: #c4c4cb; }
.article-content li { margin-bottom: 8px; }
.article-content code {
  background: #1a1a2e; padding: 2px 6px; border-radius: 4px;
  font-size: 0.88rem; color: var(--accent);
}
.article-content pre {
  background: #0d0d1a; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; overflow-x: auto; margin-bottom: 24px;
}
.article-content pre code { background: none; padding: 0; color: #c4c4cb; }
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.article-content th, .article-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.article-content th { background: var(--bg-card); color: var(--accent); font-weight: 600; }
.article-content td { color: #c4c4cb; }
.article-content blockquote {
  border-left: 3px solid var(--accent); padding: 12px 20px; margin: 24px 0;
  background: var(--bg-card); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted); font-style: italic;
}
.article-content a { color: var(--accent); text-decoration: underline; }

/* ─── Pages ─── */
.page { padding: 140px 0 80px; max-width: 720px; margin: 0 auto; }
.page h1 { font-size: 2rem; margin-bottom: 24px; }
.page p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.page ul { color: var(--text-muted); margin-left: 24px; margin-bottom: 16px; }
.page li { margin-bottom: 8px; }

/* ─── Footer ─── */
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-content { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; max-width: 280px; }
.footer-links h4 { font-size: 0.9rem; margin-bottom: 12px; color: var(--text-muted); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: var(--text-muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; text-align: center; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-nav); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 16px; }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
  .hero { padding: 120px 0 60px; }
  .categories-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; gap: 24px; }
}
