/* Estilos das páginas de conteúdo (artigo). Extraído do antigo article.html. */
.article-page {
  padding-top: 2rem;
  min-height: 80vh;
}

.article-header-section {
  text-align: center;
  padding: 4rem 0 2rem;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

.article-badge {
  display: inline-block;
  background: var(--green-neon);
  color: #020617;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

.article-title {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.article-container {
  max-width: 800px;
  margin: 0 auto 4rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 3rem;
}

.article-cover {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid var(--blue-accent);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.article-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.1rem;
}

.article-content h1,
.article-content h2 {
  color: white;
  margin-top: 2rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.back-nav {
  padding: 1rem 0;
}

.btn-back {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.btn-back:hover {
  color: var(--blue-light);
}

.hidden {
  display: none;
}

/* ===== RESPONSIVO - TABLET ===== */
@media (max-width: 768px) {
  .article-title {
    font-size: 1.8rem;
  }

  .article-container {
    padding: 1.5rem;
    margin: 0 auto 2rem;
  }

  .article-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .article-header-section {
    padding: 2rem 0 1.5rem;
  }

  .header-content {
    flex-direction: column;
    gap: 0.5rem;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
  }

  .main-nav a {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
  }
}

/* ===== RESPONSIVO - MOBILE ===== */
@media (max-width: 480px) {
  .article-page {
    padding-top: 1rem;
  }

  .article-header-section {
    padding: 1.5rem 0 1rem;
  }

  .article-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
  }

  .article-badge {
    font-size: 0.7rem;
    padding: 4px 12px;
  }

  .article-meta {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .article-container {
    padding: 1rem;
    margin: 0 auto 2rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
  }

  .article-content {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
  }

  .article-content h1 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }

  .article-content h2 {
    font-size: 1.2rem;
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .article-content h3 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.6rem;
  }

  .article-content p {
    margin-bottom: 1rem;
    text-align: left;
  }

  .article-content ul,
  .article-content ol {
    margin-bottom: 1.5rem;
    padding: 1rem;
    margin-left: 0;
  }

  .article-content li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
  }

  .article-content img {
    margin: 1rem 0;
    border-radius: 6px;
  }

  .video-wrapper {
    margin-bottom: 1.5rem;
  }

  .article-cover {
    max-height: 250px;
    margin-bottom: 1rem;
  }

  .back-nav {
    padding: 0.5rem 0;
  }

  .btn-back {
    font-size: 0.9rem;
  }

  .container {
    padding: 0 12px;
  }

  .logo img {
    width: 120px !important;
  }

  .main-nav {
    width: 100%;
    gap: 0.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .main-nav a {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
  }

  .btn-nav-highlight {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 4px;
  }
}

/* ===== RESPONSIVO - SUPER MOBILE (<360px) ===== */
@media (max-width: 360px) {
  .article-title {
    font-size: 1.3rem;
  }

  .article-container {
    padding: 0.8rem;
  }

  .article-content {
    font-size: 0.9rem;
  }

  .article-content h2 {
    font-size: 1.1rem;
  }

  .container {
    padding: 0 8px;
  }

  .logo img {
    width: 100px !important;
  }

  .main-nav a {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }
}

/* ---- páginas renderizadas no servidor (/noticias, /radar, /tutoriais, /aulas) ---- */
.hidden { display: none !important; }
.breadcrumb { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 0.5rem; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-light); }
.breadcrumb span { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.related { max-width: 900px; margin: 2.5rem auto 4rem; padding: 1.5rem 1.8rem; background: rgba(30, 41, 59, 0.4); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; }
.related h2 { font-size: 1.1rem; color: white; margin: 0 0 0.8rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.related a { color: var(--blue-light); text-decoration: none; }
.related a:hover { text-decoration: underline; }
.article-content img { max-width: 100%; height: auto; }
.article-content table { width: 100%; border-collapse: collapse; overflow-x: auto; display: block; }
.article-content th, .article-content td { border: 1px solid rgba(255, 255, 255, 0.15); padding: 0.5rem 0.7rem; }
.article-content iframe { max-width: 100%; }
