/* styles.css - VERSÃO CORRIGIDA */
/* Reset */

/* Definição da fonte local Bangers */
@font-face {
  font-family: 'Bangers'; /* Nome que você usará no CSS */
  src: url('/assets/fonts/Bangers-Regular.woff2') format('woff2'); /* Caminho para o arquivo COPIADO pelo Eleventy */
  font-weight: normal; /* Geralmente 400 para Regular */
  font-style: normal;
  font-display: swap; /* MUITO IMPORTANTE: Evita bloqueio de texto */
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f5f5f5;
    --text: #333;
    --primary: #007bff;
    --radius: 8px;
    --social-radius: 10px;
    --card-radius: 12px;
    --banner-bg: #ffffff;
    --banner-text: #555555;
    --card-bg: #ffffff;
    --card-border: #e0e0e0;
    --primary-dark: #0056b3;
    --bg-secondary: #6c757d;
    --bg-secondary-dark: #545b62;
    --text-secondary: #666;
    --bg-input: #fff;
    --border-color: #ccc;
}

body {
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    padding: 16px;
}

h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text);
}

/* --- Cabeçalho e Logo --- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto 30px;
  padding: 0 16px 20px 16px;
  border-bottom: 1px solid var(--card-border);
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon { height: 50px; width: 50px; }
.logo-text {
  font-family: 'Bangers', cursive;
  font-size: 40px;
  font-weight: normal;
  color: var(--text);
  display: none;
  position: relative;
  top: 3px;
}
@media (min-width: 768px) { .logo-text { display: inline; } }

/* --- Botões Header (Premium, Tema) --- */
.header-actions { display: flex; align-items: center; gap: 12px; }

@keyframes pulse-shadow { /* Animação Premium */
    0%, 100% { box-shadow: 0 4px 15px 0 rgba(30, 144, 255, 0.45); }
    50% { box-shadow: 0 6px 25px 0 rgba(30, 144, 255, 0.6); }
}
.premium-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 20px; border: none; border-radius: 6px;
    background: linear-gradient(45deg, #00BFFF, #1E90FF); color: white !important;
    font-weight: 500; text-decoration: none; cursor: pointer;
    animation: pulse-shadow 3s infinite ease-in-out; transition: all 0.3s ease;
}
.premium-btn:hover, .premium-btn:focus {
    animation: none; transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(30, 144, 255, 0.55);
    filter: brightness(1.1); outline: none;
}
.premium-btn svg { margin-left: 4px; }

#themeToggle {
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: var(--radius); color: var(--text);
}
#themeToggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* --- Banner Tutorial --- */
/* --- Banner Tutorial --- */
.quickstart-banner {
  display: block; /* Mantém cada step em uma linha */
  /* Removemos flex-wrap, justify-content, gap */

  /* --- ALTERAÇÕES AQUI --- */
  max-width: 600px; /* Mesma largura máxima da search-container */
  /* margin: 0 auto 1.5rem; já estava ok para centralizar e dar espaço abaixo */
  /* --- FIM DAS ALTERAÇÕES --- */
  background: var(--banner-bg);  border-radius: var(--radius);  padding: 0.75rem 1rem;  margin: 0 auto 1.5rem; /* Mantém centralização e margem inferior */  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Regras para .quickstart-step permanecem as mesmas (com margin-bottom) */
.quickstart-step {  display: flex;  align-items: center;  gap: 0.5rem;  font-size: 0.95rem;  color: var(--banner-text);  margin-bottom: 0.75rem;}
.quickstart-step:last-child {  margin-bottom: 0;}
.quickstart-step .qs-icon {  font-size: 1.2rem;  line-height: 1;}
.watch-video-link {  color: var(--primary);  text-decoration: underline;  cursor: pointer;}
/* --- Barra de Pesquisa --- */
.search-container { position: relative; width: 100%; max-width: 600px; margin: 0 auto 30px; }
.search-container input { width: 100%; padding: 10px 12px 10px 40px; border: 1px solid var(--border-color); border-radius: var(--radius); font-size: 16px; outline: none; background: var(--bg-input); color: var(--text); }
.search-container input:focus { border-color: var(--primary); }
.search-icon { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); pointer-events: none; fill: #888; }

/* --- Botão Filtro e Indicador --- */
.open-filters-button-wrapper { display: flex; justify-content: center; align-items: center; margin-bottom: 20px; }
#openFiltersBtn {
  padding: 10px 20px; font-size: 1em; background-color: var(--primary); color: white;
  border: none; border-radius: var(--radius); cursor: pointer; display: flex; align-items: center; gap: 8px;
}
#openFiltersBtn:hover { background-color: var(--primary-dark); }
.filter-icon { fill: currentColor; }

.active-filters-indicator-container {
  display: inline-flex; align-items: center; margin-left: 10px; background-color: var(--card-bg);
  color: var(--text); border: 1px solid var(--card-border);
  border-radius: 10px; font-size: 0.8em; font-weight: bold; padding: 2px 0 2px 8px;
}
.active-filters-indicator-container:empty { display: none; }
#activeFiltersIndicatorText { margin-right: 4px; }
.clear-filters-outside-btn {
  background: transparent; border: none; color: inherit; cursor: pointer;
  padding: 4px 8px 4px 4px; line-height: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 0 10px 10px 0;
}
.clear-filters-outside-btn:hover { background-color: rgba(0,0,0,0.08); }
.clear-filters-outside-btn svg { pointer-events: none; fill: currentColor; }

/* --- Social Cards --- */
.social-cards { display: flex; justify-content: center; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.social-card {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--social-radius);
  padding: 10px 16px; display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--text); font-weight: bold; transition: all 0.3s; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.social-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.social-card svg { width: 24px; height: 24px; }
.social-card.discord { color: #5865F2; }
.social-card.telegram svg { transform: scale(1.15); }
.social-card.telegram .social-text { color: var(--text); }

/* --- Modal Base --- */
.modal-overlay {
  position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s 0.3s linear;
}
.modal-overlay:not(.hidden) { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.modal-dialog {
  background-color: var(--card-bg); padding: 20px; border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3); width: 90%; max-width: 500px; max-height: 80vh;
  display: flex; flex-direction: column; transform: translateY(-20px); transition: transform 0.3s ease-out;
}
.modal-overlay:not(.hidden) .modal-dialog { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--card-border); padding-bottom: 10px; margin-bottom: 15px; }
.modal-header h2 { margin: 0; font-size: 1.5em; color: var(--text); }
.modal-close-button { background: none; border: none; font-size: 2em; cursor: pointer; line-height: 1; padding: 0 5px; color: var(--text-secondary); }
.modal-body { flex-grow: 1; overflow-y: auto; margin-bottom: 15px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--card-border); padding-top: 15px; }

/* --- Modal Filtros Conteúdo --- */
.modal-body .all-filters-container { display: flex; flex-direction: column; gap: 15px; }
.modal-body .filter-group { display: flex; flex-direction: row; align-items: center; justify-content: space-between; }
.modal-body .filter-group label { flex-basis: 30%; margin-right: 0; color: var(--text); font-size: 0.9em; }
.modal-body .filter-group .filter-select-wrapper { flex-basis: 65%; }
.custom-select {
  padding: 8px 12px; font-size: 0.9em; color: var(--text); background-color: var(--bg-input);
  border: 1px solid var(--border-color); border-radius: var(--radius); cursor: pointer; min-width: 150px;
  outline: none; appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat; background-position: right 10px center; background-size: 9px 9px; padding-right: 30px;
  width: 100%;
}
.custom-select:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25); }

/* --- Botões Genéricos --- */
.button-styled { padding: 10px 15px; background-color: var(--primary); color: white; border: none; border-radius: var(--radius); cursor: pointer; font-size: 1em; }
.button-styled:hover { background-color: var(--primary-dark); }
.button-styled-secondary { padding: 10px 15px; background-color: var(--bg-secondary); color: white; border: none; border-radius: var(--radius); cursor: pointer; font-size: 1em; }
.button-styled-secondary:hover { background-color: var(--bg-secondary-dark); }

/* --- Grid de Cards --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 20px auto 0;
}

/* --- Card Individual --- */
.card {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 4/5;
    display: block;
    background-color: var(--card-bg);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards;
    /* --- CORREÇÃO PARA LAYOUT QUEBRADO NA BUSCA --- */
    max-width: 360px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    /* ------------------------------------------- */
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.card.hidden {
    display: none; /* Esconde completamente o card */
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.card .card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.card:hover .card-image { transform: scale(1.05); }

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    z-index: 2;
}

.card-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
    text-align: center;
    width: 100%;
    color: #FFF;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.card-content .card-title-link {  color: inherit; /* Herda a cor do .card-content (geralmente branco no tema escuro) */  text-decoration: none; /* Remove sublinhado */  display: block; /* Opcional: garante que o link ocupe a área do título */  margin-bottom: 8px; /* Mantém a margem que o .card-title tinha */}
.card-content .card-title-link .card-title { margin-bottom: 0; /* Remove a margem do div interno, já que o link a tem */}
/* Opcional: Adiciona um leve efeito no hover */
.card-content .card-title-link:hover .card-title {
  text-decoration: underline;
}

/* --- Badge NEW --- */
.new-badge-container {
  position: absolute; top: 8px; left: 8px; width: 32px; height: 32px;
  z-index: 3;
  background-color: rgba(255, 255, 255, 0.4); border-radius: 15%;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  animation: neonLightningPulse 1.8s infinite ease-in-out;
}
.new-badge-icon { width: 75%; height: 75%; }
@keyframes neonLightningPulse {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 4px rgba(79, 195, 247, 0.6)) drop-shadow(0 0 6px rgba(189, 53, 233, 0.4)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 7px rgba(79, 195, 247, 0.8)) drop-shadow(0 0 12px rgba(189, 53, 233, 0.6)); transform: scale(1.08); }
}

/* --- Botão Share --- */
.share-button {
  position: absolute; top: 8px; right: 8px;
  z-index: 3; background-color: rgba(44, 44, 44, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1); width: 32px; height: 32px;
  border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center;
  color: white; cursor: pointer; transition: background-color 0.2s, transform 0.2s;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.share-button:hover { background-color: rgba(64, 64, 64, 0.8); transform: scale(1.1); }
.share-button svg { width: 16px; height: 16px; fill: currentColor; }

/* --- Menu Download Moderno --- */
.download-menu { position: relative; display: inline-block; }
.download-btn {
  border: none; border-radius: var(--radius); color: #fff; font-weight: 600;
  letter-spacing: 0.5px; padding: 8px 16px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; cursor: pointer; background: linear-gradient(45deg, #e60012, #c00000);
  box-shadow: 0 4px 15px rgba(220, 0, 10, 0.4); transition: all 0.3s ease;
}
.download-btn:hover { transform: translateY(-3px); filter: brightness(1.1); box-shadow: 0 7px 20px rgba(192, 0, 0, 0.5); }
.download-btn .icon { transition: transform 0.3s ease; fill: currentColor; }

.download-options {
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  display: flex; flex-direction: column; min-width: 140px; border-radius: 10px; z-index: 10;
  background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px) scale(0.95);
  transform-origin: bottom center; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.download-options.visible { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
.download-options .option-link {
  padding: 10px 15px; color: #1a1a1a; text-decoration: none; font-weight: 500;
  display: flex; align-items: center; gap: 8px; transition: background-color 0.2s ease, color 0.2s ease;
}
.download-options .option-link:hover { background-color: rgba(255, 255, 255, 0.5); color: #000; }
.download-options .option-link:first-child { border-top-left-radius: 10px; border-top-right-radius: 10px; }
.download-options .option-link:last-child { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }

/* --- Separador Discreto para Links de Download no Card --- */
.download-options .option-link + .option-link {
  /* Isso seleciona qualquer .option-link que venha
    logo após outro .option-link (ou seja, todos, exceto o primeiro)
    e adiciona uma borda sutil no topo.
  */
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-theme .download-options .option-link + .option-link {
  /* No tema escuro, a borda precisa ser clara para aparecer
    no fundo escuro do popup.
  */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Load More e Scroll Top --- */
.load-more-container { text-align: center; margin-top: 30px; }
#loadMoreButton { padding: 12px 25px; font-size: 1em; border: none; border-radius: var(--radius); background: var(--primary); color: #fff; cursor: pointer; transition: background-color 0.2s; }
#loadMoreButton:hover { background-color: var(--primary-dark); }

#scrollToTopBtn {
    position: fixed; bottom: 20px; right: 20px; z-index: 99; border: none; outline: none;
    background-color: rgba(44, 44, 44, 0.8); color: #fff; cursor: pointer;
    padding: 12px; border-radius: var(--radius); box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s, background-color 0.3s;
    display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
#scrollToTopBtn svg { width: 24px; height: 24px; fill: currentColor; }
#scrollToTopBtn:hover { background-color: rgba(20, 20, 20, 0.9); }
#scrollToTopBtn.show { opacity: 1; visibility: visible; }

/* --- Tema Escuro --- */
body.dark-theme {
    --bg: #121212;
    --text: #e0e0e0;
    --primary: #64b5f6;
    --primary-dark: #2196f3;
    --banner-bg: #1e1e1e;
    --banner-text: #bdbdbd;
    --text-secondary: #9e9e9e;
    --card-bg: #1e1e1e;
    --card-border: #333;
    --bg-input: #2c2c2c;
    --border-color: #444;
    --bg-secondary: #424242;
    --bg-secondary-dark: #303030;
}
body.dark-theme a { color: var(--text-secondary); }
body.dark-theme .search-container input { background: var(--bg-input); color: var(--text); border-color: var(--border-color); }
body.dark-theme .search-icon { fill: var(--text-secondary); }
body.dark-theme .custom-select { background: var(--bg-input); color: var(--text); border-color: var(--border-color); }
body.dark-theme .social-card:hover { background: #3c3c3c; }
body.dark-theme .active-filters-indicator-container { background-color: var(--card-bg); color: var(--text); border-color: var(--card-border); }
body.dark-theme .clear-filters-outside-btn:hover { background-color: rgba(255,255,255,0.08); }
body.dark-theme .modal-dialog { background-color: var(--card-bg); }
body.dark-theme .modal-header h2, body.dark-theme .modal-body .filter-group label { color: var(--text); }
body.dark-theme .modal-close-button { color: var(--text-secondary); }
body.dark-theme .modal-header, body.dark-theme .modal-footer { border-color: var(--card-border); }
body.dark-theme .download-options {
    background: rgba(30, 30, 30, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
body.dark-theme .download-options .option-link { color: #f0f0f0; }
body.dark-theme .download-options .option-link:hover { background-color: rgba(255, 255, 255, 0.1); color: #fff; }

/* --- Onboarding e Modal Vídeo --- */
.overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear;
}

.overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s 0.3s linear;
}

#onboardingOverlay .overlay-content {
    background: var(--card-bg);
    color: var(--text);
    padding: 25px;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
#onboardingOverlay .overlay-content h2 { margin-bottom: 15px; }
#onboardingOverlay .overlay-content ol { margin-left: 20px; margin-bottom: 15px; color: var(--text-secondary); line-height: 1.6; }
#onboardingOverlay .overlay-content li { margin-bottom: 8px; }
#onboardingOverlay .overlay-content label { display: block; margin-bottom: 15px; color: var(--text-secondary); cursor: pointer; }
#onboardingOverlay .overlay-content input[type="checkbox"] { margin-right: 8px; vertical-align: middle; accent-color: var(--primary); }
#onboardingOverlay .overlay-content button {
    background: var(--primary); color: #fff; border: none; padding: 10px 20px;
    border-radius: var(--radius); cursor: pointer; font-size: 1em; width: 100%;
}
#onboardingOverlay .overlay-content button:hover { background: var(--primary-dark); }


.modal { position: fixed; inset: 0; z-index: 1000; }
.modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.75); z-index: 1; }
.modal-content {
    position: relative; z-index: 2; margin: auto; top: 5%; max-width: 90%; width: 560px;
    background: var(--card-bg); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden; padding-top: 40px; /* Espaço para botão fechar */
}
.modal-close {
    position: absolute; top: 8px; right: 8px; background: none; border: none;
    font-size: 1.8rem; /* Aumentado */ color: var(--text-secondary); cursor: pointer; z-index: 3; line-height: 1;
    padding: 5px; /* Área de clique maior */
}
.modal-close:hover { color: var(--text); }
.modal-content video { display: block; width: 100%; max-height: 80vh; object-fit: contain; }

.card-image {
  display: block;
}

/* --- Estilos para Tags de Post (Versão Discreta) --- */
/* --- Estilos para Tags de Post (Versão Discreta CORRIGIDA) --- */
a.post-tag { 
  display: inline-block;
  padding: 3px 8px; /* Padding vertical e horizontal */
  margin: 0; /* Espaço entre as tags */
  border-radius: 6px; /* Borda um pouco menos arredondada */
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease; /* Adiciona transição suave */

  /* Usando suas variáveis de CSS para o estilo discreto.
    Isto agora irá sobrescrever a regra 'body.dark-theme a'
  */
  color: var(--text-secondary); /* Cor de texto "dimmed" */
  background: var(--bg-input);  /* Fundo sutil (cor de input) */
  border: 1px solid var(--border-color); /* Borda discreta */
}

a.post-tag:hover {
  color: var(--text); /* Texto principal no hover */
  background: var(--card-bg); /* Fundo do card no hover */
  border-color: var(--primary); /* Destaca com cor primária */
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Sombra sutil */
}

.tag-icon {
  width: 14px;
  height: 14px;
  /* Define a cor para combinar com o texto da tag */
  color: var(--text-secondary);
  /* O 'gap' do container pai cuidará do espaçamento */
}

/* --- Estilo para a data (fora das tags) --- */
.post-date-meta {
  /* Alinha o texto e o ícone de relógio */
  display: inline-flex;
  align-items: center;
  gap: 6px; /* Espaço entre a data e o relógio */

  /* Estilo do texto */
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);

  /* "Bom espaçamento" entre a data e o ícone de tag */
  margin-right: 15px; 
}

/* --- Estilo para o ícone de Relógio --- */
.clock-icon {
  width: 14px;
  height: 14px;
  /* Herda a cor do .post-date-meta (var(--text-secondary)) */
  color: currentColor; 
}
#searchResultCount {  text-align: center; /* Centraliza o texto */  margin-top: 20px; /* Adiciona espaço acima (opcional) */  margin-bottom: 20px; /* Adiciona espaço abaixo, antes do grid */  font-weight: bold; /* Opcional: Torna o texto mais destacado */  color: var(--text-secondary); /* Opcional: Muda a cor se desejar */}

/* --- Estilos para Posts Relacionados --- 
.related-posts-section {
   Espaçamento já definido inline, pode mover para cá 
}*/

.related-posts-carousel {
  /* O Swiper adiciona overflow: hidden por padrão */
  padding-bottom: 40px; /* Espaço para paginação */
}

/*.related-post-slide {
   O Swiper cuida da largura 
} */

.related-post-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: var(--card-bg); /* Fundo similar ao card */
  border-radius: var(--radius); /* Borda arredondada */
  overflow: hidden; /* Garante que a imagem não vaze */
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-post-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.related-post-image {
  display: block;
  width: 100%;
  aspect-ratio: 10 / 16; /* Proporção da imagem, ajuste se necessário */
  object-fit: cover;
}

.related-post-title {
  font-size: 0.9em;
  font-weight: bold;
  padding: 10px;
  text-align: center;
  white-space: nowrap; /* Impede quebra de linha */
  overflow: hidden; /* Esconde texto que transborda */
  text-overflow: ellipsis; /* Adiciona "..." */
  color: var(--text);
}

/* Ajustes nos botões/paginação do Swiper (opcional, pode usar padrão) */
.related-posts-carousel .swiper-button-next,
.related-posts-carousel .swiper-button-prev {
  color: var(--primary); /* Cor dos botões de navegação */
  top: 45%; /* Ajusta posição vertical */
}
.related-posts-carousel .swiper-pagination-bullet-active {
  background-color: var(--primary); /* Cor da bolinha ativa */
}

/* --- Estilos para Informações de Arquivo na Página do Post --- */
.file-info-container {
  text-align: center;
  margin-bottom: 25px; /* Espaço antes dos links de download */
  padding: 12px 15px;
  background-color: rgba(128, 128, 128, 0.08); /* Fundo sutil */
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  display: flex; /* Alinha itens horizontalmente */
  justify-content: center; /* Centraliza os itens */
  align-items: center; /* Alinha verticalmente */
  flex-wrap: wrap; /* Permite quebrar linha em telas pequenas */
  gap: 15px; /* Espaço entre os itens */
  color: var(--text-secondary); /* Cor mais suave */
}

.file-info-item {
  font-size: 0.9em;
  display: inline-flex; /* Para alinhar ícone e texto */
  align-items: center;
}

.file-info-item svg {
  vertical-align: middle;
  margin-right: 5px;
  opacity: 0.7; /* Ícone um pouco mais suave */
  fill: currentColor; /* Usa a cor do texto do .file-info-container */
}

.file-info-item strong {
  color: var(--text); /* Destaca o número */
  margin-left: 3px;
}

/* Ajuste no tema escuro se necessário (se o rgba não ficar bom) */
body.dark-theme .file-info-container {
  background-color: rgba(255, 255, 255, 0.05);
}

/* --- Estilos para o Carrossel de Miniaturas (Preview Swiper) --- */
.preview-swiper {
  /* Garante que o swiper tenha alguma altura baseada nas thumbs */
  /* A largura é controlada pelo container .preview-gallery-container */
  padding-bottom: 5px; /* Pequeno espaço abaixo se usar paginação por bullets */
  position: relative; /* Necessário para os botões de navegação */
}

.preview-swiper .swiper-slide {
  width: 80px; /* Largura explícita para cada slide (igual à thumb) */
  height: 100px; /* Altura explícita (igual à thumb) */
  cursor: pointer;
  opacity: 0.7; /* Thumbs não ativas ficam levemente esmaecidas */
  transition: opacity 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
  border: 2px solid transparent; /* Borda para indicar o estado ativo */
  border-radius: calc(var(--radius) / 2); /* Borda acompanha a imagem */
  overflow: hidden; /* Garante que a imagem não saia da borda */
  transition: opacity 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}

.preview-swiper .preview-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* border-radius já está no slide */
}

.preview-swiper .swiper-slide:hover {
  opacity: 1;
  transform: scale(1.03); /* Leve zoom no hover */
}

/* Estilo para a miniatura ativa */
.preview-swiper .preview-slide-active {
  opacity: 1;
  border-color: var(--primary); /* Destaca a thumb ativa com a cor primária */
}

/* Estilo para os botões de navegação do preview (se usados) */
.preview-swiper .swiper-button-prev,
.preview-swiper .swiper-button-next {
  color: var(--primary); /* Cor dos botões */
  width: 25px; /* Tamanho menor */
  height: 25px;
  top: 50%; /* Centraliza verticalmente */
  transform: translateY(-50%);
  background-color: rgba(var(--card-bg-rgb, 255, 255, 255), 0.7); /* Fundo semi-transparente */
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.preview-swiper .swiper-button-prev::after,
.preview-swiper .swiper-button-next::after {
  font-size: 12px; /* Tamanho do ícone da seta */
  font-weight: bold;
}
/* Esconder botões se não houver slides suficientes para navegar */
.preview-swiper .swiper-button-disabled {
    opacity: 0;
    cursor: auto;
    pointer-events: none;
}
/* Ajuste para tema escuro se o fundo dos botões ficar ruim */
body.dark-theme .preview-swiper .swiper-button-prev,
body.dark-theme .preview-swiper .swiper-button-next {
    background-color: rgba(var(--card-bg-rgb, 30, 30, 30), 0.7);
}
/* Adicione esta variável se não existir, para o background dos botões */
:root { --card-bg-rgb: 255, 255, 255; }
body.dark-theme { --card-bg-rgb: 30, 30, 30; }


/* --- Fim dos Estilos --- */
/* Adiciona transição à imagem principal */
#mainPostImage {
    /* ... seus estilos existentes como max-width, margin, border-radius ... */
    transition: opacity 0.3s ease-in-out; /* <-- Adiciona esta linha */
    /* Adiciona cursor grab/grabbing (se não estiver sendo feito via JS) */
    cursor: grab;
}

#mainPostImage:active { /* Quando está sendo clicada/arrastada */
    cursor: grabbing;
}

/* --- Estilos Adicionais para Modal de Report --- */
#errorReportModal textarea {
  /* Estilos para o textarea se os inline não bastarem */
  resize: vertical; /* Permite redimensionar só na vertical */
  min-height: 80px;
}

#reportStatus {
  /* Estilos para a mensagem de status */
  margin-top: 10px;
  font-weight: 500;
  min-height: 1.2em; /* Garante espaço mesmo vazio */
}

/* Garante espaçamento no footer do modal */
#errorReportModal .modal-footer {
  gap: 10px; /* Ou ajuste conforme necessário */
}

/* Ajusta botões de ação na página de post */
.post-actions-container .button-group {
    display: flex;
    justify-content: center;
    align-items: center; /* Alinha verticalmente se quebrar linha */
    gap: 15px; /* Espaço entre botões */
    flex-wrap: wrap; /* Permite quebrar linha em telas pequenas */
}

/* Ajustes nos ícones dos botões de ação */
.post-actions-container .button-group button svg,
.post-actions-container .button-group a svg {
    margin-right: 8px;
    width: 16px; /* Garante tamanho consistente */
    height: 16px;
    fill: currentColor; /* Herda cor do botão */
}
/* No caso do premium-btn, a cor do SVG pode precisar ser ajustada */
.post-actions-container .premium-btn svg {
   stroke: currentColor; /* Usa stroke em vez de fill para ícones outline */
   fill: none; /* Garante que não haja preenchimento */
}

/* --- Estilos para o Acordeão de SEO (Versão Discreta) --- */
.seo-accordion {
  /* Fundo e borda mais sutis, combinando com seus file-info-container */
  background-color: rgba(128, 128, 128, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Tema escuro */
body.dark-theme .seo-accordion {
  background-color: rgba(255, 255, 255, 0.05);
}

/* O título clicável (header) - Menor e mais discreto */
.seo-accordion summary {
  padding: 10px 15px; /* Padding reduzido */
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove o triângulo padrão */
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

.seo-accordion summary:hover {
  background-color: rgba(128, 128, 128, 0.1);
}

body.dark-theme .seo-accordion summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Remove o triângulo padrão no Webkit (Chrome, Safari) */
.seo-accordion summary::-webkit-details-marker {
  display: none;
}

/* Estilo do Título h3 (agora discreto) */
.seo-accordion-title {
  display: inline;
  font-size: 1em; /* Tamanho da fonte bem menor */
  font-weight: 500; /* Mais fino (não-bold) */
  margin: 0;
  color: var(--text); /* Cor principal, mas não gritante */
}

/* Ícone '+' menor e mais fino */
.seo-accordion summary::after {
  content: '+';
  font-size: 1.3em; /* Tamanho do ícone reduzido */
  font-weight: 300; /* Peso da fonte fino */
  color: var(--text-secondary);
  transition: transform 0.2s, content 0.2s;
  margin-left: 10px; /* Garante espaço */
}

/* Gira o '+' para '–' (sinal de menos) quando aberto */
.seo-accordion[open] summary::after {
  content: '\2013'; /* Sinal de menos (–) */
  transform: rotate(90deg);
}

/* Adiciona um separador quando aberto */
.seo-accordion[open] summary {
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 10px;
}

/* O conteúdo que é revelado */
.seo-accordion-content {
  padding: 15px 20px 20px 20px; /* Padding ajustado */
  font-size: 0.95em; /* Texto do conteúdo um pouco menor */
}

/* --- Container do Botão "Back to Home" --- */
.back-home-container {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

/* --- Novo Botão Outline (Ghost Button) --- */
.button-styled-outline {
  display: inline-flex; /* Alinha o ícone e o texto */
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 0.95em; /* Um pouco mais sutil */
  font-weight: 500;
  text-decoration: none;
  background-color: transparent;
  color: var(--primary); /* Texto na cor primária do site */
  border: 2px solid var(--primary); /* Borda na cor primária */
  border-radius: var(--radius); /* Usa seu radius padrão */
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Efeito Hover: Preenche o botão */
.button-styled-outline:hover,
.button-styled-outline:focus {
  background-color: var(--primary);
  color: #fff; /* Texto fica branco no hover */
  text-decoration: none;
  /* Sombra sutil para "levantar" o botão */
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.25);
}

/* Garante que o SVG herde a cor */
.button-styled-outline svg {
  fill: currentColor;
  transition: transform 0.3s ease;
}

/* Efeito de hover sutil no ícone */
.button-styled-outline:hover svg {
  transform: translateX(-3px);
}

/* --- Classe Utilitária de SEO para Ocultar Visualmente --- */
/* Permite que o Google e leitores de tela leiam o conteúdo,
   mas o esconde visualmente do usuário. */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; /* Impede quebra de linha */
}

/* --- Estilização dos Botões de Download (Post Page) --- */

/* Estilo Base (Padrão / Mirror 1) - Vermelho */
.download-link-item {
    /* Mantém o gradiente vermelho como padrão para Mirror 1 e outros */
    background: linear-gradient(45deg, #e60012, #c00000); 
    color: white !important; /* Garante texto branco */
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    /* Garante alinhamento do ícone */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Efeito Hover Genérico */
.download-link-item:hover {
    filter: brightness(1.1); /* Clareia levemente ao passar o mouse */
    transform: translateY(-2px); /* Levanta o botão */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* --- Cores Específicas por Mirror --- */

/* Mirror 2 (Linkvertise) - Laranja */
/* O seletor procura qualquer link que tenha o nome exato "Mirror 2" */
.download-link-item[data-mirror="Mirror 2"] {
    background: linear-gradient(45deg, #FF8C00, #FF4500); /* Gradiente Laranja Vibrante */
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3); /* Sombra alaranjada */
}

/* Mirror 3 (Work.ink) - Verde */
/* O seletor procura qualquer link que tenha o nome exato "Mirror 3" */
.download-link-item[data-mirror="Mirror 3"] {
    background: linear-gradient(45deg, #2ecc71, #27ae60); /* Gradiente Verde Esmeralda */
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3); /* Sombra esverdeada */
}

/* Opcional: Mirror 1 explícito (caso queira mudar o padrão no futuro) */
.download-link-item[data-mirror="Mirror 1"] {
    background: linear-gradient(45deg, #e60012, #c00000);
    box-shadow: 0 4px 15px rgba(230, 0, 18, 0.3);
}

/* --- INÍCIO DA CORREÇÃO DE UX --- */

/* Garante que a página role suavemente ao clicar no link âncora */
html {
  scroll-behavior: smooth;
}

/* Transforma os itens de estatística em botões visuais */
.clickable-stat {
  text-decoration: none; /* Remove o sublinhado padrão de links */
  color: var(--text-secondary); /* Mantém a cor cinza original */
  cursor: pointer; /* Mostra a mãozinha do mouse */
  transition: all 0.2s ease; /* Suaviza a animação */
  border-bottom: 2px solid transparent; /* Prepara uma borda invisível */
  padding-bottom: 2px;
}

/* Efeito ao passar o mouse (Hover) */
.clickable-stat:hover {
  color: var(--primary); /* Muda para a cor principal (azul) */
  border-bottom-color: var(--primary); /* Mostra a borda azul embaixo */
  transform: translateY(-2px); /* Pula levemente para cima */
}

/* Garante que o ícone mude de cor junto */
.clickable-stat:hover svg {
  fill: currentColor;
  opacity: 1;
}

/* Garante que o número em negrito mude de cor junto */
.clickable-stat strong {
  color: inherit;
}

/* --- FIM DA CORREÇÃO DE UX --- */

/* --- ESTILO DO PLAYER DE VÍDEO --- */

/* Espaçamento e Alinhamento do Player */
.video-wrapper {
    width: 100%;
    max-width: 600px; /* Mantém o limite de largura */
    margin: 0 auto;
    background: #000; /* Fundo preto elegante */
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Centraliza o vídeo dentro do bloco preto */
    display: flex;
    justify-content: center; 
    align-items: center;
}

.main-video-player {
    width: 100%;
    height: auto; /* Altura automática baseada no vídeo */
    max-height: 80vh; /* O vídeo nunca vai ser maior que 80% da altura da tela */
    object-fit: contain; /* Garante que o vídeo apareça inteiro sem cortar nada */
}

/* Ajuste fino para os controles nativos ficarem mais bonitos no Chrome */
video::-webkit-media-controls-panel {
    background-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

/* --- PAUSE AD OVERLAY (Estilo Youtube/Pornhub) --- */

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Fundo escuro transparente */
    backdrop-filter: blur(3px); /* Desfoque moderno */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* Fica acima do vídeo */
    animation: fadeIn 0.2s ease-in-out;
}

.overlay-content-box {
    background: rgba(255, 255, 255, 0.1); /* Vidro fosco */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 80%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.overlay-content-box h4 {
    color: #ff0080; /* Rosa CrakRevenue */
    margin-bottom: 15px;
    font-size: 1.2em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.overlay-cta-btn {
    background: linear-gradient(90deg, #ff00cc 0%, #333399 100%);
    color: white !important;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    width: 100%;
    margin-bottom: 10px;
}

.overlay-cta-btn:hover {
    transform: scale(1.05);
}

.overlay-subtext {
    color: #ccc;
    font-size: 0.8em;
    margin-bottom: 15px;
}

.resume-text-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.resume-text-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* Botão X de fechar no canto */
.close-overlay-x {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
}

.close-overlay-x:hover {
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- No Results Container --- */
.no-results-wrapper {
    grid-column: 1 / -1; /* Faz ocupar a largura toda do grid */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    border: 1px dashed var(--border-color);
    margin-top: 20px;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.no-results-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 10px;
}

.no-results-text {
    color: var(--text-secondary);
    margin-bottom: 25px;
    max-width: 400px;
    line-height: 1.5;
}

.no-results-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Estilização do Modal de Requisição (Moderno) --- */

/* 1. Container Principal do Modal */
#contentRequestModal .modal-content {
    background-color: var(--card-bg); /* Usa a cor do seu tema */
    border-radius: 16px; /* Bordas mais arredondadas */
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); /* Sombra suave */
    width: 90%;
    max-width: 480px;
    position: relative; /* Para posicionar o X */
    border: 1px solid var(--card-border);
}

/* 2. Botão de Fechar (X) */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px; /* Move para a direita */
    font-size: 28px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    background: transparent;
    border: none;
}
.close-modal:hover {
    color: var(--primary); /* Cor de destaque ao passar o mouse */
}

/* 3. Títulos e Textos */
#contentRequestModal h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--text);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

#contentRequestModal p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 4. Inputs do Formulário */
#contentRequestModal input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px; /* Espaço extra abaixo do input */
}

#contentRequestModal input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* 5. Botão do Telegram (Estilo Específico) */
.telegram-btn-style {
    background: #0088cc !important;
    color: white !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 25px; /* Espaço antes do rodapé */
    transition: transform 0.2s ease;
}
.telegram-btn-style:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Centralizar botões do Modal de Requisição */
#contentRequestModal .modal-footer {
    display: flex;
    justify-content: center; /* <--- ISSO CENTRALIZA */
    gap: 15px; /* Espaço entre os botões */
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 10px;
}

/* 7. Estilo dos Botões do Rodapé */
#contentRequestModal .button-styled,
#contentRequestModal .button-styled-secondary {
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

/* Botão Enviar (Primário) */
#contentRequestModal .button-styled {
    background-color: var(--primary);
    color: white;
}
#contentRequestModal .button-styled:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Botão Cancelar (Secundário) */
#contentRequestModal .button-styled-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
#contentRequestModal .button-styled-secondary:hover {
    background-color: rgba(128, 128, 128, 0.1);
    color: var(--text);
}