/* css/news.css */

.news-module {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 15px 40px 15px;
}

/* Header principal */
.news-header {
  margin-bottom: 25px;
  text-align: left;
}

.news-main-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color, #ffffff);
  margin-bottom: 6px;
}

.news-subtitle {
  font-size: 0.95rem;
  color: #8b949e;
}

/* Grilla de Tarjetas */
.news-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* TARJETAS INSIGNIA (Estilo NTLite) */
.card-tech {
  background-color: var(--card-bg, #161b26);
  border: 1px solid var(--border-color, #232a3b);
  border-radius: 10px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* L Neón en Esquinas */
.card-tech::before, 
.card-tech::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2.5px solid var(--color-brand-cyan, #00e5ff);
  pointer-events: none;
  transition: all 0.3s ease;
}

.card-tech::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 10px;
}

.card-tech::after {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 10px;
}

/* EFECTO HOVER EN PC: Alargar 'L' y Pulso/Latido Neón */
@media (hover: hover) {
  .card-tech:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
  }

  .card-tech:hover::before,
  .card-tech:hover::after {
    width: 65px; /* Alarga la 'L' al pasar el cursor */
    height: 65px;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
  }
}

/* Elementos dentro de la tarjeta */
.card-tech-badge {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 0.75rem;
  background: rgba(0, 229, 255, 0.1);
  color: var(--color-brand-cyan, #00e5ff);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.card-tech-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.card-tech-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #ffffff;
}

.card-tech-date {
  font-size: 0.8rem;
  color: #6e7681;
  display: block;
  margin-bottom: 12px;
}

.card-tech-body {
  font-size: 0.92rem;
  color: #c9d1d9;
  line-height: 1.5;
  margin-bottom: 15px;
}

.card-tech-action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-brand-cyan, #00e5ff);
}

/* =========================================================
   VISTA DE LECTURA DETALLADA (#news/001)
========================================================= */

.btn-back-news {
  background: transparent;
  border: 1px solid #232a3b;
  color: #8b949e;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.btn-back-news:hover {
  color: #00e5ff;
  border-color: #00e5ff;
}

.news-article-detail {
  background: #161b26;
  border: 1px solid #232a3b;
  border-radius: 12px;
  padding: 25px;
}

.article-header {
  border-bottom: 1px solid #232a3b;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.article-badge {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.article-date {
  font-size: 0.85rem;
  color: #6e7681;
}

.article-title {
  font-size: 1.6rem;
  color: #fff;
}

.article-body {
  color: #c9d1d9;
  font-size: 1rem;
  line-height: 1.7;
}

.article-body h3 {
  color: #fff;
  margin: 20px 0 10px 0;
}

.article-body ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

/* Galería / Imágenes en noticia */
.news-gallery {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.media-box {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #232a3b;
  background: #0d1117;
}

.mobile-box img {
  max-width: 240px;
  width: 100%;
  display: block;
}

.desktop-box img {
  width: 100%;
  max-width: 600px;
  display: block;
}

/* Botones de Links a GitHub / Proyectos */
.article-links {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #232a3b;
  flex-wrap: wrap;
}

.btn-tech-link {
  background: #00e5ff;
  color: #0d1117;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s ease;
}

.btn-tech-link.github {
  background: #21262d;
  color: #c9d1d9;
  border: 1px solid #30363d;
}

.btn-tech-link:hover {
  opacity: 0.85;
}
