/*
Theme Name: Vectalk Blog
Theme URI: https://vectalk.com.br/blog/
Author: Vectalk
Author URI: https://vectalk.com.br/
Description: Tema do blog da Vectalk, filho do Twenty Twenty-Five, com a identidade visual do site vectalk.com.br.
Template: twentytwentyfive
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vectalk-blog
*/

/* Títulos com o gradiente da marca */
.vt-gradient {
	background: linear-gradient(90deg, #7C5CFF, #9CF92D);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Cabeçalho fixo com desfoque, igual ao site */
.vt-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.vt-header .vt-nav a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.vt-header .vt-nav a:hover { color: #ffffff; }
.vt-header .vt-logo img { height: 36px; width: auto; }

/* Cards da listagem */
.vt-card {
	background: #151B2D;
	border: 1px solid rgba(124, 92, 255, 0.2);
	border-radius: 1rem;
	transition: border-color 0.3s, transform 0.3s;
	height: 100%;
}
.vt-card:hover { border-color: #7C5CFF; transform: translateY(-4px); }
.vt-card .wp-block-post-title a { color: #ffffff; text-decoration: none; }
.vt-card .wp-block-post-title a:hover { color: #9CF92D; }
.vt-card .wp-block-post-excerpt__more-link { color: #9CF92D; font-weight: 600; text-decoration: none; }

/* Leitura dos artigos */
.wp-block-post-content a { color: #9CF92D; text-underline-offset: 3px; }
.wp-block-post-content a:hover { color: #ffffff; }
.wp-block-post-content :where(h2, h3) { scroll-margin-top: 90px; }

/* Tabelas: rolam no celular em vez de estourar a tela */
.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wp-block-table table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.95rem; }
.wp-block-table th { background: rgba(124, 92, 255, 0.15); color: #ffffff; text-align: left; }
.wp-block-table th, .wp-block-table td { border: 1px solid rgba(255, 255, 255, 0.1); padding: 0.7rem 0.9rem; vertical-align: top; }
.wp-block-table tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }

/* Blocos de código escuros */
.wp-block-code {
	background: #0A0F1A;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.75rem;
	padding: 1.25rem;
	overflow-x: auto;
	font-size: 0.875rem;
	line-height: 1.6;
	color: #d6deeb;
}
:not(pre) > code { background: rgba(124, 92, 255, 0.15); color: #e4dcff; padding: 0.1em 0.35em; border-radius: 0.3em; font-size: 0.9em; }

/* Caixa de CTA no fim dos artigos */
.vt-cta {
	background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(156, 249, 45, 0.08));
	border: 1px solid rgba(124, 92, 255, 0.35);
	border-radius: 1rem;
}

/* Botões */
.wp-element-button, .wp-block-button__link { transition: opacity 0.2s, transform 0.2s; }
.wp-element-button:hover, .wp-block-button__link:hover { opacity: 0.9; transform: translateY(-2px); }
.vt-btn-outline .wp-block-button__link { background: transparent !important; color: #7C5CFF !important; border: 2px solid #7C5CFF; }

/* Rodapé */
.vt-footer a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.vt-footer a:hover { color: #ffffff; }

.vt-header .wp-block-button__link { white-space: nowrap; }

@media (max-width: 781px) {
	.vt-header .vt-nav { display: none !important; }
	.vt-header .vt-logo img { height: 30px; }
	.vt-header { padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* CTAs de cadastro (functions.php) */
.vt-cta-end { margin-top: 3.5rem; padding: 2.25rem 2rem; }
.vt-cta-end h2 { margin-top: 0; font-size: 1.6rem; }
.vt-cta-mid {
	margin: 2rem 0; padding: 1rem 1.25rem; border-left: 3px solid #7C5CFF;
	background: rgba(124, 92, 255, 0.10); border-radius: 0 0.6rem 0.6rem 0; font-size: 0.98rem;
}
.vt-cta-mid a { font-weight: 600; white-space: nowrap; }
.vt-cta-bar { display: none; }
@media (max-width: 781px) {
	.vt-cta-end { padding: 1.75rem 1.25rem; }
	.vt-cta-bar:not([hidden]) {
		display: flex; align-items: center; gap: 0.75rem; position: fixed; z-index: 50;
		left: 0; right: 0; bottom: 0;
		padding: 0.7rem max(1rem, env(safe-area-inset-right, 0px)) calc(0.7rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
		background: rgba(14, 19, 33, 0.96); border-top: 1px solid rgba(124, 92, 255, 0.35); color: #fff; font-size: 0.85rem;
	}
	.vt-cta-bar span { flex: 1; min-width: 0; }
	.vt-cta-bar-btn { background: #7C5CFF; color: #fff !important; text-decoration: none; font-weight: 600; padding: 0.55rem 0.9rem; border-radius: 0.5rem; white-space: nowrap; }
	.vt-cta-bar-x { background: none; border: 0; color: rgba(255, 255, 255, 0.6); font-size: 1.4rem; line-height: 1; padding: 0.25rem; cursor: pointer; }
}
