/* Artigos Index - CSS */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --indigo-500: #6366f1;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--slate-950);
  color: var(--slate-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.bg-decoration {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

.bg-blob {
  position: absolute;
  top: -6rem;
  left: -6rem;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  background: linear-gradient(to top right, #2563eb, #6366f1, #0ea5e9);
  filter: blur(50px);
  opacity: 0.25;
}

.bg-blob-2 {
  position: absolute;
  bottom: -8rem;
  right: -4rem;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #22d3d1, #10b981);
  filter: blur(80px);
  opacity: 0.25;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--brand-600), var(--indigo-500));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav {
  display: none;
}

@media (min-width: 1024px) {
  nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover { color: #fff; }

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown > a svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.nav-dropdown:hover > a svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  margin-top: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: rgba(59, 130, 246, 0.1);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  opacity: 0.95;
  transform: scale(1.02);
}

.cta-button-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.35);
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 9999px;
  color: var(--brand-400);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(to right, white, var(--slate-100), var(--slate-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--slate-300);
  max-width: 42rem;
  margin: 0 auto;
}

/* Articles Grid */
.articles-section {
  padding: 3rem 0 5rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
}

.article-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
}

.article-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.article-icon.blue { background: linear-gradient(135deg, var(--brand-500), var(--indigo-500)); }
.article-icon.emerald { background: linear-gradient(135deg, var(--emerald-500), #06b6d4); }
.article-icon.rose { background: linear-gradient(135deg, var(--rose-500), #ec4899); }

.article-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.article-category.blue { color: var(--brand-400); }
.article-category.emerald { color: var(--emerald-400); }
.article-category.rose { color: var(--rose-400); }

.article-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-card p {
  font-size: 0.875rem;
  color: var(--slate-400);
  flex-grow: 1;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--slate-500);
}

.article-meta svg {
  width: 1rem;
  height: 1rem;
}

/* CTA Box */
.cta-section {
  padding: 3rem 0 5rem;
}

.cta-box {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem;
  background: linear-gradient(to bottom right, rgba(37, 99, 235, 0.2), rgba(99, 102, 241, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  text-align: center;
}

.cta-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--slate-300);
  margin-bottom: 1.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background: var(--slate-900);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0 2rem;
}

.footer-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section a {
  display: block;
  color: var(--slate-400);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-section a:hover { color: white; }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--slate-500);
  font-size: 0.875rem;
}
