/* 🌸💙 Tema Pastel Moderno - Rosa + Azul Claro */

:root {
  --bg-top: #e7f3ff;
  --bg-bottom: #fde6f2;
  --card-bg: rgba(255, 255, 255, 0.7);
  --accent-pink: #ffa7c4;
  --accent-blue: #a3d8ff;
  --accent-strong: #5bb7ff;
  --heading: #ffa7c4;
  --text: #2c2c2c;
  --shadow: rgba(173, 216, 255, 0.35);
  --blur: blur(12px);
  --radius: 18px;
  --transition: all 0.3s ease-in-out;
  --font: 'Poppins', 'Inter', sans-serif;
}

/* Fundo geral */
body {
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  font-family: var(--font);
  color: var(--text);
  background-attachment: fixed;
}

/* Navbar */
.navbar {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
  box-shadow: 0 3px 15px var(--shadow);
  backdrop-filter: var(--blur);
  border-bottom: 2px solid #ffffff60;
}

.navbar-item {
  color: #fff !important;
  font-weight: 500;
}

.navbar-item:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

/* Cards */
.card {
  background: var(--card-bg);
  backdrop-filter: var(--blur);
  border-radius: var(--radius);
  box-shadow: 0 8px 25px var(--shadow);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(150, 200, 255, 0.4);
}

/* Avatar */
img.avatar {
  border-radius: 50%;
  border: 4px solid var(--accent-blue);
  box-shadow: 0 0 20px var(--shadow);
  transition: var(--transition);
}

img.avatar:hover {
  transform: scale(1.05);
  border-color: var(--accent-pink);
}

/* Títulos */
h1, h2, h3, .title {
  color: var(--heading);
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(255, 192, 203, 0.5);
}

/* Links */
a {
  color: var(--accent-strong);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--heading);
}

/* Botões */
button, .btn {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
  border: none;
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px var(--shadow);
}

button:hover, .btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(255, 180, 220, 0.6);
}

/* Rodapé */
.footer {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink));
  color: #fff;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: 25px;
  box-shadow: 0 -4px 15px var(--shadow);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-pink));
  border-radius: 8px;
}
::-webkit-scrollbar-track {
  background: #ffffff50;
}


/* 🌸 Restaura o degradê pastel translúcido do menu original */
.navbar {
  background: linear-gradient(90deg, #b8d9ff 0%, #e6ccff 50%, #f8cfff 100%) !important;
  box-shadow: 0 3px 15px rgba(160, 190, 255, 0.25);
  border: none;
}

/* Itens padrão */
.navbar-item {
  color: #ffffff !important;
  font-weight: 500;
  margin: 0 10px;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease-in-out;
}

/* Hover – efeito leve pastel */
.navbar-item:hover {
  background: linear-gradient(90deg, rgba(176, 211, 255, 0.6), rgba(255, 200, 240, 0.6)) !important;
  border-radius: 10px;
  color: #0a2b50 !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Ativo – mesmo degradê translúcido */
.navbar-item.is-active,
.navbar-item.is-active a {
  background: linear-gradient(90deg, rgba(180, 220, 255, 0.7), rgba(250, 200, 255, 0.7)) !important;
  border-radius: 12px;
  color: #0a2850 !important;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 15px rgba(200, 200, 255, 0.3);
}

/* 📱 Responsivo – mantém o mesmo degradê */
@media screen and (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px;
  }

  .navbar-item {
    margin: 6px 8px;
    font-size: 15px;
  }
}


/* 💙 Navbar ativa e hover com melhor contraste */
.navbar-item.is-active {
  background: rgba(163, 216, 255, 0.45); /* azul pastel mais visível */
  backdrop-filter: blur(8px);
  border-radius: 12px;
  color: #003366 !important; /* azul escuro para contraste */
  font-weight: 600;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 15px rgba(163, 216, 255, 0.5);
}

/* 💫 Hover rosa-azulado mais legível */
.navbar-item:hover {
  background: linear-gradient(90deg, rgba(163, 216, 255, 0.4), rgba(255, 182, 226, 0.4));
  border-radius: 12px;
  color: #003366 !important;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease-in-out;
}

/* ✨ Texto normal branco visível */
.navbar-item {
  color: #ffffff !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* 📱 Corrige a ordem no layout mobile */
@media screen and (max-width: 768px) {
  .columns {
    display: flex;
    flex-direction: column-reverse !important; /* mostra os posts primeiro */
  }

  .column-main {
    order: 1 !important; /* conteúdo principal vem primeiro */
  }

  .column-left,
  .column-right {
    order: 2 !important; /* barra lateral vem depois */
  }

  /* Ajusta margens e alinhamento no mobile */
  .column-main,
  .column-left,
  .column-right {
    margin: 0 auto;
    width: 100%;
  }

  /* Centraliza avatar e infos */
  .profile {
    text-align: center;
  }
}



/* Ícones e textos do menu */
.navbar-item a,
.navbar-link {
  color: #243a5e !important; /* azul suave legível */
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Hover com leve destaque */
.navbar-item a:hover {
  color: #1e2a44 !important;
}

/* Corrige o layout mobile do menu */
.navbar-menu {
  background: linear-gradient(180deg, #c8dfff 0%, #f8d3ff 100%) !important;
  text-align: center;
  padding: 10px 0;
}

/* Ajuste de responsividade */
@media (max-width: 768px) {
  .navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .navbar-item {
    margin: 6px 0;
  }

  .navbar-brand img {
    width: 42px;
    height: 42px;
    margin-bottom: 5px;
  }
}



/* 🌈 Correção final: mantém degradê e layout horizontal no mobile */
.navbar {
  background: linear-gradient(90deg, #b8d9ff 0%, #f8cfff 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  box-shadow: 0 2px 8px rgba(160, 190, 255, 0.25);
  border: none;
}

/* Garante que o menu sempre apareça ao lado do logo */
.navbar-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Itens do menu lado a lado */
.navbar-item {
  display: inline-block !important;
  color: #ffffff !important;
  font-weight: 500;
  margin: 0 10px;
  transition: all 0.3s ease;
}

/* Hover e ativo com leve contraste */
.navbar-item:hover,
.navbar-item.is-active {
  color: #0a2b50 !important;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
}

/* Mantém ícones no mesmo nível */
.navbar-end {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px;
}

/* 📱 Mobile: mantém horizontal e centraliza tudo */
@media screen and (max-width: 768px) {
  .navbar {
    flex-wrap: wrap !important;
    justify-content: center !important;
    padding: 10px;
  }

  .navbar-menu {
    flex-wrap: wrap !important;
  }

  .navbar-item {
    margin: 5px 8px;
    font-size: 15px;
  }

  .navbar-end {
    justify-content: center !important;
    margin-top: 6px;
  }
}


/* 📱 Esconde o painel de perfil no modo mobile e mantém só o conteúdo */
@media screen and (max-width: 768px) {
  .profile,
  .card.profile,
  .widget-wrap.profile {
    display: none !important;
  }

  /* Deixa o conteúdo principal ocupar toda a largura */
  .column-main {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Remove margens extras do layout */
  .columns {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Ajuste opcional: centraliza cards e posts */
  .card {
    margin: 0 auto 20px auto !important;
    width: 95% !important;
  }
}


/* 🔹 Oculta o perfil apenas na página "About" (Sobre Mim) */
.page-about .profile,
.page-about .card.profile,
.page-about .widget-wrap.profile {
  display: none !important;
}

/* Ajusta o layout quando o perfil é removido */
.page-about .column-main {
  width: 100% !important;
  max-width: 100% !important;
}

.page-about .columns {
  margin: 0 !important;
  padding: 0 !important;
}



/* 🌸 Mostra o perfil "Near" apenas na Home e esconde nos celulares em outras páginas */
@media screen and (max-width: 768px) {
  /* Esconde widgets laterais (como o perfil) em todas as páginas,
     exceto quando o link "Home" está ativo */
  body:not(:has(a.navbar-item.is-active[href="/"])) .column-left .card.widget,
  body:not(:has(a.navbar-item.is-active[href="/"])) .column-right .card.widget {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Ajusta layout quando o perfil some */
  .column-main {
    width: 100% !important;
    max-width: 100% !important;
  }

  .columns {
    margin: 0 !important;
    padding: 0 !important;
  }

  .card {
    margin: 0 auto 20px auto !important;
    width: 95% !important;
  }
}


/* 💙 Deixa os títulos das seções laterais em azul pastel */
.menu-label,
.widget .menu-label,
.widget h3,
.widget h4 {
  color: #5bb7ff !important; /* azul pastel do tema */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 6px rgba(160, 210, 255, 0.5);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* 🌈 Efeito leve no hover */
.menu-label:hover,
.widget h3:hover,
.widget h4:hover {
  color: #339cff !important;
  text-shadow: 0 0 10px rgba(160, 220, 255, 0.7);
}


/* 💙 Links dentro das widgets laterais (como TryHackMe e HackTheBox) */
.widget a {
  color: #2c2c2c;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

/* 🌈 Linha suave animada ao passar o mouse */
.widget a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #a3d8ff, #ffa7c4);
  transition: width 0.3s ease-in-out;
  border-radius: 2px;
}

/* ✨ Quando passa o mouse */
.widget a:hover {
  color: #5bb7ff;
  transform: translateY(-2px);
}

/* 🌸 A linha cresce embaixo do link */
.widget a:hover::after {
  width: 100%;
}

/* 💫 Quando o link é clicado (efeito de clique leve) */
.widget a:active {
  transform: scale(0.97);
  color: #339cff;
  text-shadow: 0 0 8px rgba(163, 216, 255, 0.5);
}


/* 🌈 Mostra só a data de postagem e esconde o resto */
.article-meta .level-item:nth-child(2),
.article-meta .level-item:nth-child(3),
.article-meta .level-item:nth-child(4),
.article-meta .level-item:nth-child(5) {
  display: none !important;
}

/* ✨ Estilo da data principal com degradê rosa-azul */
.article-meta .level-item:first-child {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, #ffa7c4, #a3d8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 8px rgba(255, 200, 240, 0.3);
  display: inline-block;
}

/* 💫 Dá um efeito suave de brilho no hover */
.article-meta .level-item:first-child:hover {
  text-shadow: 0 0 10px rgba(255, 180, 230, 0.6);
  transform: scale(1.02);
  transition: all 0.3s ease-in-out;
}

/* 🌸 Linha fina degradê abaixo */
.article-meta::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  margin-top: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ffa7c4, #a3d8ff);
  opacity: 0.9;
}

/* 💙 Título normal com cor neutra e elegante */
a.link-muted,
a.link-muted:visited {
  color: #1a1a1a !important; /* tom escuro suave, legível */
  font-weight: 700;
  text-transform: none;
  transition: all 0.3s ease-in-out;
  text-shadow: none;
}

/* 🌸 Rosa quando passa o mouse */
a.link-muted:hover {
  color: #ff7fa6 !important; /* rosa suave do seu tema */
  text-shadow: 0 0 8px rgba(255, 180, 220, 0.5);
  transform: scale(1.02);
}

/* 💫 Rosa mais intenso quando o link já foi clicado */
a.link-muted:active {
  color: #ff4f8b !important;
  text-shadow: 0 0 10px rgba(255, 160, 210, 0.6);
}


a.link-muted:hover::after {
  opacity: 1;
  background: linear-gradient(90deg, #ffa7c4, #a3d8ff);
}



/* 💫 LINKS DOS POSTS RECENTES (widget lateral) */
.card.widget article.media a {
  color: #1a1a1a !important; /* neutro normal */
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

/* 💙 Azul pastel ao passar o mouse */
.card.widget article.media a:hover {
  color: #5bb7ff !important; /* azul suave */
  text-shadow: 0 0 6px rgba(160, 220, 255, 0.5);
  transform: translateY(-1px);
}

/* 🔹 Remove a linha rosa decorativa */
.card.widget article.media a::after {
  content: none !important;
  display: none !important;
}

/* ✨ Data e subtítulo neutros */
.card.widget article.media time,
.card.widget article.media .media-content {
  color: #7a7a7a;
  transition: color 0.3s ease;
}

/* 💫 Ficam azul pastel no hover */
.card.widget article.media a:hover time,
.card.widget article.media a:hover .media-content {
  color: #5bb7ff;
}



/* 🔹 Posiciona a categoria no canto superior direito acima do título */
.card.widget article.media {
  position: relative;
}

/* 💫 Badge de categoria (pequeno e elegante) */
.card.widget .categories a {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(90deg, #a3d8ff, #ffa7c4);
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(163, 216, 255, 0.5);
  transition: all 0.3s ease-in-out;
}

/* ✨ Efeito leve no hover */
.card.widget .categories a:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 180, 220, 0.6);
  filter: brightness(1.1);
}


/* 💫 Nome "Near" com degradê animado azul ↔ rosa */
.author-link {
  font-weight: 700;
  text-decoration: none !important;
  background: linear-gradient(90deg, #5bb7ff, #ff7fa6, #5bb7ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 8px rgba(163, 216, 255, 0.4);
  animation: gradientShift 6s ease-in-out infinite;
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* ✨ Ao passar o mouse, o brilho intensifica */
.author-link:hover {
  transform: scale(1.05);
  text-shadow: 0 0 15px rgba(255, 180, 230, 0.8);
  animation: gradientShift 2.5s ease-in-out infinite; /* acelera o efeito */
}

/* 💗 Efeito de clique */
.author-link:active {
  text-shadow: 0 0 18px rgba(255, 160, 220, 1);
}

/* 🌈 Animação do degradê */
@keyframes gradientShift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}


/* 🌸 Faz o texto do título do autor respeitar quebras de linha */
.widget[data-type="profile"] .is-size-6.is-block {
  white-space: pre-line; /* interpreta as quebras do YAML */
  line-height: 1.5;
  margin-bottom: 0.5em;
}


/* 🌙 ===== MODO ESCURO SUAVE COM DEGRADÊ ===== */
body.dark-mode {
  background: linear-gradient(180deg, #1a2750 0%, #1d2e63 40%, #15224b 80%, #101a36 100%);
  color: #e8eeff;
  transition: background 0.6s ease, color 0.6s ease;
  --accent: #6aa9ff;
  --accent-soft: #95c4ff;
  --surface: rgba(25, 38, 75, 0.9);
  --surface-light: rgba(35, 55, 100, 0.8);
  --text-light: #f2f6ff;
  --text-muted: #b7c5e6;
  --border-light: rgba(140, 180, 255, 0.2);
}

/* 🧭 Navbar */
body.dark-mode .navbar {
  background: linear-gradient(90deg, #1a2852 10%, #2141a3c2 50%, #5195e9) !important;
  border-bottom: 1px solid rgba(120, 160, 255, 0.2);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .navbar-item,
body.dark-mode .navbar a {
  color: #e7eeff !important;
}

body.dark-mode .navbar-item:hover {
  background: linear-gradient(90deg, #284081 0%, #2c4d99 100%) !important;
  color: #ffffff !important;
  border-radius: 10px;
}



/* 🧊 Cards e Widgets */
body.dark-mode .card,
body.dark-mode .widget {
  background: rgba(35, 50, 90, 0.267) !important;
  border: 1px solid rgba(140, 180, 255, 0.18);
  backdrop-filter: blur(10px);
  color: var(--text-light) !important;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.4s ease;
}

body.dark-mode .card:hover,
body.dark-mode .widget:hover {
  box-shadow: 0 6px 25px rgba(110, 160, 255, 0.4);
  transform: translateY(-3px);
}

/* ✨ Títulos */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode .title {
  color: var(--accent-soft) !important;
  text-shadow: 0 0 10px rgb(43, 43, 75);
}

body.dark-mode .title {
    color: #95c4ff !important;
    text-shadow: 0 0 10px rgb(43, 43, 75);
}

.le
/* 📘 Links */
body.dark-mode a {
  color: var(--accent);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

body.dark-mode a:hover {
  color: #b9d4ff;
  text-shadow: 0 0 6px rgba(150, 190, 255, 0.5);
}

/* 🔹 Linhas e divisores */
body.dark-mode hr,
body.dark-mode .section-header::after {
  background: linear-gradient(90deg, #6baeff 0%, #a4b8ff 100%) !important;
  opacity: 0.8;
}

/* 📄 Texto */
body.dark-mode p,
body.dark-mode span,
body.dark-mode small {
  color: #f5f5f5 !important;
}

/* 🧠 Citações */
body.dark-mode blockquote {
  border-left: 3px solid var(--accent);
  background: rgba(45, 65, 115, 0.6);
  color: #e1eaff;
  font-style: italic;
  border-radius: 8px;
}

/* 💾 Código */
body.dark-mode pre,
body.dark-mode code {
  background: #182a58 !important;
  border-radius: 6px;
  color: #ebf2ff !important;
}

/* 💫 Transições */
* {
  transition: background 0.4s ease, color 0.4s ease, border 0.4s ease, box-shadow 0.4s ease;
}


/* 🌟 Títulos de posts (link-muted) em branco no modo escuro */
body.dark-mode a.link-muted,
body.dark-mode .link-muted {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(200, 220, 255, 0.2);
  font-weight: 600;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}



/* 🌸 Rosa quando passa o mouse */
body.dark-mode a.link-muted:hover {
  color: #95c4ff !important; /* rosa suave do seu tema */
  transform: scale(1.02);
}

/* 💫 Rosa mais intenso quando o link já foi clicado */
body.dark-mode a.link-muted:active {
  color: #95c4ff !important;
  text-shadow: 0 0 10px rgba(160, 166, 255, 0.6);
}


body.dark-mode a.link-muted:hover::after {
  opacity: 1;
  background: linear-gradient(90deg, #a7bcff, #7ac4ff);
}



/* ✨ Corrige texto forte (<strong>) no modo escuro */
body.dark-mode strong,
body.dark-mode b {
  color: #ffffff !important;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(200, 220, 255, 0.25);
}

/* 💙 Deixa os títulos das seções laterais em azul pastel */
body.dark-mode .menu-label,
body.dark-mode .widget .menu-label,
body.dark-mode .widget h3,
body.dark-mode .widget h4 {
  color: #ffa7c4 !important; /* azul pastel do tema */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 6px rgba(255, 160, 255, 0.5);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* 🌈 Efeito leve no hover */
body.dark-mode .menu-label:hover,
body.dark-mode .widget h3:hover,
body.dark-mode .widget h4:hover {
  color: #d173e4 !important;
  text-shadow: 0 0 10px rgba(255, 160, 255, 0.5);
}



/* 💫 LINKS DOS POSTS RECENTES (widget lateral) */
body.dark-mode .card.widget article.media a {
  color: #f5f3f3 !important; /* neutro normal */
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

/* 💙 Azul pastel ao passar o mouse */
body.dark-mode .card.widget article.media a:hover {
  color: #ffa7c4 !important; /* azul suave */
  text-shadow: 0 0 6px rgba(160, 220, 255, 0.5);
  transform: translateY(-1px);
}

/* 🔹 Remove a linha rosa decorativa */
body.dark-mode .card.widget article.media a::after {
  content: none !important;
  display: none !important;
}

/* ✨ Data e subtítulo neutros */
body.dark-mode .card.widget article.media time,
body.dark-mode .card.widget article.media .media-content {
  color: #7a7a7a;
  transition: color 0.3s ease;
}

/* 💫 Ficam azul pastel no hover */
body.dark-mode .card.widget article.media a:hover time,
body.dark-mode .card.widget article.media a:hover .media-content {
  color: #ffa7c4;
}

/* 🌙 Ajusta as tags de links (ex: tryhackme.com, hackthebox.com) no modo escuro */

body.dark-mode .widget .tag,
body.dark-mode .level-item.tag {
  background: linear-gradient(90deg, #4aa8ff, #7ac4ff);
  color: #ffffff !important;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(70, 140, 255, 0.3);
  transition: all 0.3s ease;
}



/* 💫 Efeito hover sutil */
body.dark-mode .widget .tag:hover,
body.dark-mode .level-item.tag:hover {
  background: linear-gradient(90deg, #6cc3ff, #9fd8ff);
  box-shadow: 0 0 12px rgba(120, 180, 255, 0.5);
  transform: translateY(-1px);
}

/* 💎 Corrige fundo branco dos links (tryhackme, hackthebox) no modo escuro */
body.dark-mode a.level,
body.dark-mode a.level.is-mobile {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #b9d9ff !important;
  transition: all 0.3s ease;
}

/* 🌟 Hover (ilumina o link levemente) */
body.dark-mode a.level:hover,
body.dark-mode a.level.is-mobile:hover {
  color: #e6f2ff !important;
  text-shadow: 0 0 8px rgba(120, 180, 255, 0.6);
}

/* 🩵 Estado ativo (quando clica) */
body.dark-mode a.level:active,
body.dark-mode a.level.is-mobile:active {
  background: none !important;
  color: #a4d4ff !important;
  text-shadow: 0 0 10px rgba(150, 200, 255, 0.5);
  transform: scale(0.98);
}

/* 🐾 Logo branca no modo escuro */
body.dark-mode img.logo,
body.dark-mode .navbar-brand img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: filter 0.4s ease, opacity 0.4s ease;
}



/* 🌙 Rodapé com o mesmo degradê da navbar no modo escuro */
body.dark-mode .footer,
body.dark-mode footer {
  background: linear-gradient(90deg, #1a2852 10%, #2141a3c2 50%, #5195e9) !important;
  border-top: 1px solid rgba(120, 160, 255, 0.2);
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.3);
  color: #dbe5ff !important;
  text-align: center;
  padding: 15px 0;
  transition: background 0.5s ease, color 0.3s ease;
}

/* ✨ Links e ícones no rodapé */
body.dark-mode .footer a {
  color: #a7c8ff !important;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

body.dark-mode .footer a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(150, 200, 255, 0.6);
}

/* 💠 Ícones */
body.dark-mode .footer i {
  color: #b5d2ff;
  transition: color 0.3s ease, transform 0.2s ease;
}

body.dark-mode .footer i:hover {
  color: #ffffff;
  transform: scale(1.1);
}

/* 🌙 Deixa o logo branco no modo escuro */
body.dark-mode .footer img,
body.dark-mode .navbar img,
body.dark-mode .logo img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

/* Suaviza o brilho ao passar o mouse */
body.dark-mode .footer img:hover,
body.dark-mode .navbar img:hover {
  filter: brightness(1.2) invert(1);
  opacity: 1;
}

/* 🔆 Botão do modo claro/escuro */
#theme-toggle {
  background: transparent !important;
  border: none;
  outline: none;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

/* 🟣 Remove o fundo branco quando ativo ou focado */
#theme-toggle:focus,
#theme-toggle:active {
  background: transparent !important;
  box-shadow: none !important;
}

/* 🌙 Ícone padrão */
#theme-toggle i {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

/* ☀️ Ícone do modo claro */
body:not(.dark-mode) #theme-toggle i {
  color: #586ee9 !important;
  text-shadow: 0 0 8px rgba(255, 220, 120, 0.7);
}

/* 🌸 Ícone do modo escuro (rosa neon) */
body.dark-mode #theme-toggle i {
  color: #ffa7c4 !important;
  text-shadow: 0 0 10px rgba(255, 150, 220, 0.8);
}

/* ✨ Animação de clique */
#theme-toggle:hover i {
  transform: scale(1.15) rotate(12deg);
}

/* 🌸 Cor dos ícones e títulos das seções no modo claro */
body:not(.dark-mode) .fa-graduation-cap,
body:not(.dark-mode) .fa-bullseye,
body:not(.dark-mode) .fa-link,
body:not(.dark-mode) h2,
body:not(.dark-mode) h3 {
  color: #ffb6d5 !important; /* rosa suave */
}

/* 🌸 Linha de separação também rosa */
body:not(.dark-mode) hr {
  border-color: #ffb6d5 !important;
  opacity: 0.6;
}

