/* =========================================
   NEXUS SINGULAR - ARTICLES.CSS
   Artigos, cards, tags, hero e navegação
========================================= */

/* =========================================
   ARTICLES - LISTAGEM
========================================= */

.articles h2 {
  font-family: "Orbitron", sans-serif;
  color: var(--neon);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* =========================================
   ARTICLE CARD
========================================= */

.article-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.article-box {
  padding: 1rem;

  background: var(--glass);

  border: 1px solid rgba(0, 255, 240, 0.05);
  border-radius: 8px;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.article-box strong {
  display: block;

  margin-bottom: 0.6rem;

  color: var(--text);

  font-family: "Orbitron", sans-serif;

  transition: color 0.3s ease;
}

.article-box p {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-link:hover .article-box {
  transform: translateY(-6px);

  background: rgba(255, 255, 255, 0.04);

  border-color: rgba(0, 255, 240, 0.25);

  box-shadow:
    0 0 18px rgba(0, 255, 240, 0.12),
    0 0 40px rgba(0, 120, 255, 0.08);

  cursor: pointer;
}

.article-link:hover .article-box strong {
  color: var(--neon);
}

/* =========================================
   STORY HERO
========================================= */

.story-hero {
  position: relative;

  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;

  min-height: 46vh;

  overflow: hidden;

  border-radius: 32px;

  background:
    radial-gradient(
      circle at 70% 30%,
      rgba(0, 255, 240, 0.18),
      transparent 35%
    ),
    linear-gradient(120deg, #05070f 0%, #0a1020 45%, #02030a 100%);
}

.story-hero-overlay {
  position: absolute;
  inset: 0;

  z-index: 2;

  background:
    linear-gradient(
      90deg,
      rgba(2, 3, 10, 0.82) 0%,
      rgba(2, 3, 10, 0.42) 42%,
      rgba(2, 3, 10, 0.04) 100%
    ),
    linear-gradient(0deg, rgba(2, 3, 10, 0.45) 0%, transparent 45%);
}

.story-hero-content {
  position: relative;
  z-index: 3;

  max-width: 680px;

  padding: 3rem 2rem 3rem 6%;
}

.story-kicker {
  display: inline-block;

  margin-bottom: 1rem;

  color: #00fff0;

  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;

  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-hero h1 {
  margin: 0 0 1rem;

  color: #ffffff;

  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.95;

  text-shadow: 0 0 24px rgba(0, 255, 240, 0.22);
}

.story-hero p {
  max-width: 560px;

  margin-bottom: 2rem;

  color: rgba(255, 255, 255, 0.76);

  font-size: 1.05rem;
  line-height: 1.7;
}

.story-hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.story-hero-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center right;

  opacity: 1;

  filter: brightness(1.15) contrast(1.05) saturate(1.12);
}

/* =========================================
   STORY BUTTON
========================================= */

.story-btn {
  display: inline-block;

  padding: 0.9rem 1.4rem;

  color: #02030a;
  background: #00fff0;

  border: 1px solid rgba(0, 255, 240, 0.55);
  border-radius: 999px;

  text-decoration: none;
  font-weight: 700;

  box-shadow: 0 0 28px rgba(0, 255, 240, 0.28);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.story-btn:hover {
  transform: translateY(-3px);

  box-shadow: 0 0 40px rgba(0, 255, 240, 0.45);
}

/* =========================================
   ARTICLE IMAGE
========================================= */

.article-image {
  display: flex;
  justify-content: left;

  margin: 3rem 0;
}

.article-image img {
  width: 100%;
  max-width: 920px;
  height: 520px;

  object-fit: contain;

  border-radius: 24px;

  box-shadow:
    0 0 25px rgba(0, 255, 240, 0.08),
    0 0 80px rgba(0, 120, 255, 0.04);
}

/* =========================================
   ARTICLE TAGS
========================================= */

.article-tags {
  display: flex;
  flex-wrap: wrap;

  gap: 0.7rem;

  margin-top: 4rem;
  margin-bottom: 2rem;
}

.article-tags span {
  padding: 0.55rem 1rem;

  color: #9fc4ff;
  background: rgba(30, 45, 75, 0.7);

  border: 1px solid rgba(120, 160, 255, 0.12);
  border-radius: 999px;

  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.article-tags span:hover {
  transform: translateY(-2px);

  background: rgba(45, 65, 105, 0.95);

  border-color: rgba(120, 180, 255, 0.35);
}

/* =========================================
   CHAPTER NAVIGATION
========================================= */

.chapter-navigation {
  position: relative;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 1rem;

  margin-top: 4rem;
  padding-top: 2rem;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  flex-wrap: wrap;
}

.chapter-btn {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 180px;

  padding: 0.95rem 1.6rem;

  overflow: hidden;

  color: #e8f1ff;
  background: linear-gradient(
    135deg,
    rgba(25, 35, 65, 0.95),
    rgba(10, 15, 28, 0.98)
  );

  border: 1px solid rgba(90, 140, 255, 0.2);
  border-radius: 12px;

  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;

  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;

  box-shadow:
    0 0 20px rgba(0, 140, 255, 0.08),
    inset 0 0 12px rgba(255, 255, 255, 0.02);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.chapter-btn::before {
  content: "";

  position: absolute;
  top: 0;
  left: -120%;

  width: 80%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );

  transform: skewX(-20deg);

  transition: left 0.6s ease;
}

.chapter-btn:hover {
  transform: translateY(-3px);

  background: linear-gradient(135deg, rgba(35, 55, 95, 1), rgba(15, 22, 42, 1));

  border-color: rgba(120, 180, 255, 0.45);

  box-shadow:
    0 0 30px rgba(0, 140, 255, 0.22),
    0 0 60px rgba(0, 80, 255, 0.12);
}

.chapter-btn:hover::before {
  left: 140%;
}

.chapter-btn:active {
  transform: scale(0.97);
}

/* Botão central da navegação */

.chapter-btn-center {
  position: absolute;
  left: 50%;

  transform: translateX(-50%);
}

.chapter-btn-center:hover {
  transform: translateX(-50%) translateY(-3px);
}

.chapter-btn-center:active {
  transform: translateX(-50%) scale(0.97);
}

/* =========================================
   TEMA CLARO - ARTIGOS
========================================= */

:root.light .article-box strong {
  color: #222222;
}

:root.light .article-link:hover .article-box {
  background: rgba(0, 102, 204, 0.06);
}

:root.light .chapter-btn {
  color: #222222;

  background: linear-gradient(
    135deg,
    rgba(245, 248, 255, 0.95),
    rgba(232, 240, 255, 0.98)
  );

  border-color: rgba(0, 102, 204, 0.18);
}

/* =========================================
   RESPONSIVIDADE
========================================= */

@media (max-width: 880px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .story-hero {
    min-height: 86vh;

    grid-template-columns: 1fr;

    border-radius: 0 0 24px 24px;
  }

  .story-hero-overlay {
    background:
      linear-gradient(
        0deg,
        rgba(2, 3, 10, 0.98) 0%,
        rgba(2, 3, 10, 0.75) 52%,
        rgba(2, 3, 10, 0.2) 100%
      ),
      linear-gradient(90deg, rgba(2, 3, 10, 0.88), transparent);
  }

  .story-hero-content {
    align-self: end;

    padding: 58vh 1.3rem 3rem;
  }

  .story-hero p {
    font-size: 0.95rem;
  }

  .story-hero-image img {
    object-position: center right;
  }

  .article-image img {
    height: 260px;
  }

  .article-tags {
    justify-content: center;
  }

  .chapter-navigation {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }

  .chapter-btn {
    width: 100%;
  }

  .chapter-btn-center {
    position: relative;
    left: auto;

    transform: none;
  }

  .chapter-btn-center:hover {
    transform: translateY(-3px);
  }

  .chapter-btn-center:active {
    transform: scale(0.97);
  }
}
/*spotfy*/
.spotify-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 0.8rem;

  margin-top: 1.8rem;

  padding: 0.95rem 1.6rem;

  border-radius: 14px;

  background: linear-gradient(
    135deg,
    rgba(0, 102, 255, 0.18),
    rgba(0, 195, 255, 0.12)
  );

  border: 1px solid rgba(0, 153, 255, 0.35);

  color: #ffffff;

  text-decoration: none;

  font-family: "Orbitron", sans-serif;

  font-size: 0.9rem;
  font-weight: 700;

  letter-spacing: 1px;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.spotify-link:hover {
  transform: translateY(-3px);

  border-color: rgba(0, 153, 255, 0.7);

  background: linear-gradient(
    135deg,
    rgba(0, 102, 255, 0.28),
    rgba(0, 195, 255, 0.18)
  );

  box-shadow:
    0 0 20px rgba(0, 102, 255, 0.22),
    0 0 40px rgba(0, 195, 255, 0.12);
}

.spotify-link svg {
  color: #59b7ff;

  flex-shrink: 0;

  transition: color 0.25s ease;
}

/* LIGHT MODE */
:root.light .spotify-link {
  background: linear-gradient(
    135deg,
    rgba(0, 102, 255, 0.1),
    rgba(0, 195, 255, 0.08)
  );

  border: 1px solid rgba(0, 102, 255, 0.22);

  color: #0f172a;
}

:root.light .spotify-link:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 102, 255, 0.16),
    rgba(0, 195, 255, 0.12)
  );

  color: #020617;
}

:root.light .spotify-link svg {
  color: #0066ff;
}
.affiliate-button,
.article-content a.affiliate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 0.75rem;
  padding: 0.9rem 1.4rem;

  border-radius: 999px;

  text-decoration: none;
  font-weight: 700;

  background: linear-gradient(135deg, #00fff0, #00bfff);

  color: #020617;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;

  box-shadow: 0 10px 25px rgba(0, 255, 240, 0.25);
}

.affiliate-button:hover {
  transform: translateY(-2px);

  box-shadow: 0 14px 30px rgba(0, 255, 240, 0.4);

  opacity: 0.95;
}
.next-article-box {
  margin-top: 4rem;

  padding: 2rem;

  border-radius: 18px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: rgba(255, 255, 255, 0.03);

  text-align: center;
}

.next-article-box h3 {
  margin-bottom: 1rem;

  font-size: 1.4rem;

  font-family: "Orbitron", sans-serif;
}

.next-article-box p {
  max-width: 700px;

  margin: 0 auto 1.5rem;

  line-height: 1.7;

  opacity: 0.88;
}
.next-article-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 0.9rem 1.6rem;

  border-radius: 999px;

  text-decoration: none;

  font-weight: 600;

  background: rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.12);

  color: inherit;

  cursor: pointer;

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    border 0.25s ease,
    box-shadow 0.25s ease;
}

.next-article-button:hover {
  background: rgba(255, 255, 255, 0.12);

  border-color: rgba(255, 255, 255, 0.2);

  transform: translateY(-2px);
}

/* MODO CLARO */

:root.light .next-article-button {
  background: #ffffff;

  border: 1px solid rgba(0, 0, 0, 0.18);

  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);

  color: #111827;
}

:root.light .next-article-button:hover {
  border-color: rgba(0, 0, 0, 0.28);

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

  background: #f8fafc;
}
