/*
Theme Name: Vórtex
Theme URI: https://example.com/vortex
Author: Vórtex Team
Author URI: https://example.com
Description: Tema dark, responsivo e moderno para WordPress. Com painel de personalização via Customizer, design elegante e botões de compartilhamento em posts.
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vortex
Domain Path: /languages
Tags: dark, responsive-layout, custom-colors, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   VÓRTEX — TEMA WORDPRESS
   Dark Theme | Responsive | Customizable
   ============================================ */

/* CSS Variables — Cores customizáveis via Customizer */
:root {
    --vtx-bg-primary: #0a0a0f;
    --vtx-bg-secondary: #12121a;
    --vtx-bg-card: #1a1a25;
    --vtx-bg-hover: #222230;
    --vtx-text-primary: #e8e8f0;
    --vtx-text-secondary: #a0a0b0;
    --vtx-text-muted: #6a6a7a;
    --vtx-accent: #6366f1;
    --vtx-accent-hover: #818cf8;
    --vtx-border: #2a2a3a;
    --vtx-border-light: #333344;
    --vtx-success: #22c55e;
    --vtx-warning: #f59e0b;
    --vtx-danger: #ef4444;
    --vtx-radius-sm: 6px;
    --vtx-radius-md: 10px;
    --vtx-radius-lg: 16px;
    --vtx-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --vtx-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --vtx-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --vtx-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --vtx-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --vtx-header-height: 70px;
}

/* ============================================
   RESET & BASE — FORÇAR TEMA DARK
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
body.vtx-body,
body.wp-admin #wpwrap,
body.wp-admin {
    font-family: var(--vtx-font-body) !important;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--vtx-text-primary) !important;
    background-color: var(--vtx-bg-primary) !important;
    overflow-x: hidden;
}

/* Sobrescrever estilos padrão do WordPress/Gutenberg */
body .wp-site-blocks,
body .is-root-container,
body .wp-block-group,
body .wp-block-group__inner-container,
body .wp-block-post-template,
body .wp-block-query,
.wp-block-post,
.wp-block-post-content,
.wp-block-group.has-background,
.wp-block-group.is-layout-flow,
.wp-block-group.is-layout-constrained {
    background-color: transparent !important;
    color: inherit !important;
}

/* Forçar fundo escuro em todos os elementos do tema */
.vtx-page-wrapper,
.vtx-main,
.vtx-primary,
.vtx-content-area,
.vtx-posts-grid,
.vtx-single-post,
.vtx-archive-header,
.vtx-search-header,
.vtx-no-results,
.vtx-hero {
    background-color: transparent !important;
    color: var(--vtx-text-primary) !important;
}

a {
    color: var(--vtx-accent);
    text-decoration: none;
    transition: var(--vtx-transition);
}

a:hover {
    color: var(--vtx-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--vtx-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--vtx-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--vtx-text-muted);
}

/* ============================================
   HEADER
   ============================================ */
.vtx-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--vtx-header-height);
    background: rgba(10, 10, 15, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--vtx-border);
    z-index: 1000;
    transition: var(--vtx-transition);
}

.vtx-header.scrolled {
    background: rgba(10, 10, 15, 0.98) !important;
    box-shadow: var(--vtx-shadow);
}

.vtx-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vtx-logo {
    font-family: var(--vtx-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--vtx-text-primary) !important;
    letter-spacing: -0.5px;
}

.vtx-logo span {
    color: var(--vtx-accent);
}

.vtx-logo:hover {
    color: var(--vtx-text-primary) !important;
}

/* Navigation */
.vtx-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtx-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

.vtx-nav a {
    display: block;
    padding: 8px 16px;
    color: var(--vtx-text-secondary) !important;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--vtx-radius-sm);
    transition: var(--vtx-transition);
}

.vtx-nav a:hover,
.vtx-nav .current-menu-item a {
    color: var(--vtx-text-primary) !important;
    background: var(--vtx-bg-hover);
}

/* Mobile Menu Toggle */
.vtx-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.vtx-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--vtx-text-primary);
    border-radius: 2px;
    transition: var(--vtx-transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.vtx-hero {
    padding: calc(var(--vtx-header-height) + 80px) 24px 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--vtx-bg-secondary) 0%, var(--vtx-bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.vtx-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.vtx-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    color: var(--vtx-text-primary) !important;
}

.vtx-hero-title span {
    background: linear-gradient(135deg, var(--vtx-accent), var(--vtx-accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vtx-hero-desc {
    font-size: 1.15rem;
    color: var(--vtx-text-secondary) !important;
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.vtx-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px;
    background: transparent !important;
}

.vtx-content-area {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    background: transparent !important;
}

/* ============================================
   POST CARDS (Blog / Archive)
   ============================================ */
.vtx-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    background: transparent !important;
}

.vtx-post-card {
    background: var(--vtx-bg-card) !important;
    border: 1px solid var(--vtx-border) !important;
    border-radius: var(--vtx-radius-lg);
    overflow: hidden;
    transition: var(--vtx-transition);
}

.vtx-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--vtx-shadow-lg);
    border-color: var(--vtx-border-light) !important;
}

.vtx-post-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.vtx-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vtx-post-card:hover .vtx-post-thumb img {
    transform: scale(1.05);
}

.vtx-post-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--vtx-accent) !important;
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vtx-post-body {
    padding: 20px;
    background: transparent !important;
}

.vtx-post-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--vtx-text-primary) !important;
}

.vtx-post-title a {
    color: var(--vtx-text-primary) !important;
}

.vtx-post-title a:hover {
    color: var(--vtx-accent) !important;
}

.vtx-post-excerpt {
    font-size: 0.9rem;
    color: var(--vtx-text-secondary) !important;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vtx-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--vtx-text-muted) !important;
}

.vtx-post-meta svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
}

/* ============================================
   SINGLE POST
   ============================================ */
.vtx-single-post {
    max-width: 800px;
    margin: 0 auto;
    background: transparent !important;
}

.vtx-single-header {
    margin-bottom: 40px;
    background: transparent !important;
}

.vtx-single-category {
    display: inline-block;
    background: var(--vtx-accent) !important;
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.vtx-single-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--vtx-text-primary) !important;
}

.vtx-single-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--vtx-text-muted) !important;
    font-size: 0.9rem;
}

.vtx-single-meta .author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vtx-single-meta .author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--vtx-border);
}

.vtx-single-featured {
    width: 100%;
    border-radius: var(--vtx-radius-lg);
    margin-bottom: 40px;
    overflow: hidden;
}

.vtx-single-featured img {
    width: 100%;
    border-radius: var(--vtx-radius-lg);
}

/* Post Content */
.vtx-post-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--vtx-text-secondary) !important;
}

.vtx-post-content h2,
.vtx-post-content h3,
.vtx-post-content h4 {
    color: var(--vtx-text-primary) !important;
    margin: 40px 0 20px;
    font-weight: 700;
}

.vtx-post-content h2 {
    font-size: 1.6rem;
}

.vtx-post-content h3 {
    font-size: 1.3rem;
}

.vtx-post-content p {
    margin-bottom: 20px;
    color: var(--vtx-text-secondary) !important;
}

.vtx-post-content a {
    color: var(--vtx-accent) !important;
    border-bottom: 1px solid transparent;
}

.vtx-post-content a:hover {
    border-bottom-color: var(--vtx-accent);
}

.vtx-post-content blockquote {
    border-left: 4px solid var(--vtx-accent);
    padding: 20px 24px;
    margin: 30px 0;
    background: var(--vtx-bg-card) !important;
    border-radius: 0 var(--vtx-radius-md) var(--vtx-radius-md) 0;
    font-style: italic;
    color: var(--vtx-text-primary) !important;
}

.vtx-post-content ul,
.vtx-post-content ol {
    margin: 20px 0;
    padding-left: 24px;
    color: var(--vtx-text-secondary) !important;
}

.vtx-post-content li {
    margin-bottom: 8px;
    color: var(--vtx-text-secondary) !important;
}

.vtx-post-content img {
    border-radius: var(--vtx-radius-md);
    margin: 30px 0;
}

.vtx-post-content code {
    background: var(--vtx-bg-hover) !important;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    color: var(--vtx-accent-hover) !important;
}

.vtx-post-content pre {
    background: var(--vtx-bg-card) !important;
    padding: 20px;
    border-radius: var(--vtx-radius-md);
    overflow-x: auto;
    margin: 30px 0;
    border: 1px solid var(--vtx-border);
}

.vtx-post-content pre code {
    background: none !important;
    padding: 0;
    color: var(--vtx-text-primary) !important;
}

/* ============================================
   SHARE BUTTONS
   ============================================ */
.vtx-share-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--vtx-border);
}

.vtx-share-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--vtx-text-muted) !important;
    margin-bottom: 16px;
}

.vtx-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vtx-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--vtx-radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff !important;
    transition: var(--vtx-transition);
    border: none;
    cursor: pointer;
    text-decoration: none !important;
}

.vtx-share-btn svg {
    width: 16px;
    height: 16px;
}

.vtx-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #fff !important;
}

.vtx-share-facebook { background: #1877f2 !important; }
.vtx-share-facebook:hover { background: #166fe5 !important; }

.vtx-share-twitter { background: #1da1f2 !important; }
.vtx-share-twitter:hover { background: #1a91da !important; }

.vtx-share-whatsapp { background: #25d366 !important; }
.vtx-share-whatsapp:hover { background: #1ebe57 !important; }

.vtx-share-telegram { background: #0088cc !important; }
.vtx-share-telegram:hover { background: #0077b3 !important; }

.vtx-share-linkedin { background: #0a66c2 !important; }
.vtx-share-linkedin:hover { background: #0958a8 !important; }

.vtx-share-copy {
    background: var(--vtx-bg-hover) !important;
    color: var(--vtx-text-secondary) !important;
    border: 1px solid var(--vtx-border) !important;
}

.vtx-share-copy:hover {
    background: var(--vtx-border) !important;
    color: var(--vtx-text-primary) !important;
}

/* ============================================
   SIDEBAR
   ============================================ */
.vtx-sidebar {
    position: sticky;
    top: calc(var(--vtx-header-height) + 40px);
    height: fit-content;
}

.vtx-widget {
    background: var(--vtx-bg-card) !important;
    border: 1px solid var(--vtx-border) !important;
    border-radius: var(--vtx-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.vtx-widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--vtx-border);
    color: var(--vtx-text-primary) !important;
}

.vtx-widget ul {
    list-style: none;
}

.vtx-widget li {
    padding: 10px 0;
    border-bottom: 1px solid var(--vtx-border);
}

.vtx-widget li:last-child {
    border-bottom: none;
}

.vtx-widget a {
    color: var(--vtx-text-secondary) !important;
    font-size: 0.9rem;
    display: block;
}

.vtx-widget a:hover {
    color: var(--vtx-accent) !important;
    padding-left: 4px;
}

.vtx-widget .post-date {
    font-size: 0.75rem;
    color: var(--vtx-text-muted) !important;
    margin-top: 4px;
}

/* Search Widget */
.vtx-search-form {
    display: flex;
    gap: 8px;
}

.vtx-search-form input {
    flex: 1;
    padding: 10px 14px;
    background: var(--vtx-bg-hover) !important;
    border: 1px solid var(--vtx-border) !important;
    border-radius: var(--vtx-radius-sm);
    color: var(--vtx-text-primary) !important;
    font-size: 0.9rem;
    outline: none;
    transition: var(--vtx-transition);
}

.vtx-search-form input:focus {
    border-color: var(--vtx-accent) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.vtx-search-form input::placeholder {
    color: var(--vtx-text-muted);
}

.vtx-search-form button {
    padding: 10px 16px;
    background: var(--vtx-accent) !important;
    color: #fff !important;
    border: none;
    border-radius: var(--vtx-radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--vtx-transition);
}

.vtx-search-form button:hover {
    background: var(--vtx-accent-hover) !important;
}

/* ============================================
   FOOTER
   ============================================ */
.vtx-footer {
    background: var(--vtx-bg-secondary) !important;
    border-top: 1px solid var(--vtx-border);
    padding: 60px 24px 30px;
    margin-top: 80px;
}

.vtx-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.vtx-footer-brand .vtx-logo {
    margin-bottom: 16px;
    display: inline-block;
}

.vtx-footer-brand p {
    color: var(--vtx-text-muted) !important;
    font-size: 0.9rem;
    line-height: 1.7;
}

.vtx-footer-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--vtx-text-primary) !important;
    margin-bottom: 20px;
}

.vtx-footer-links {
    list-style: none;
}

.vtx-footer-links li {
    margin-bottom: 12px;
}

.vtx-footer-links a {
    color: var(--vtx-text-muted) !important;
    font-size: 0.9rem;
    transition: var(--vtx-transition);
}

.vtx-footer-links a:hover {
    color: var(--vtx-accent) !important;
    padding-left: 4px;
}

.vtx-footer-bottom {
    max-width: 1280px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--vtx-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.vtx-footer-bottom p {
    color: var(--vtx-text-muted) !important;
    font-size: 0.85rem;
}

.vtx-social-links {
    display: flex;
    gap: 12px;
}

.vtx-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--vtx-bg-hover) !important;
    border-radius: 50%;
    color: var(--vtx-text-muted) !important;
    transition: var(--vtx-transition);
}

.vtx-social-links a:hover {
    background: var(--vtx-accent) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ============================================
   PAGINATION
   ============================================ */
.vtx-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.vtx-pagination a,
.vtx-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--vtx-bg-card) !important;
    border: 1px solid var(--vtx-border) !important;
    border-radius: var(--vtx-radius-sm);
    color: var(--vtx-text-secondary) !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--vtx-transition);
}

.vtx-pagination a:hover {
    background: var(--vtx-bg-hover) !important;
    border-color: var(--vtx-accent) !important;
    color: var(--vtx-accent) !important;
}

.vtx-pagination .current {
    background: var(--vtx-accent) !important;
    border-color: var(--vtx-accent) !important;
    color: #fff !important;
}

/* ============================================
   COMMENTS
   ============================================ */
.vtx-comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--vtx-border);
}

.vtx-comments-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--vtx-text-primary) !important;
}

.comment-list {
    list-style: none;
}

.comment {
    background: var(--vtx-bg-card) !important;
    border: 1px solid var(--vtx-border) !important;
    border-radius: var(--vtx-radius-md);
    padding: 24px;
    margin-bottom: 20px;
}

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

.comment-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--vtx-border);
}

.comment-author .fn {
    font-weight: 700;
    color: var(--vtx-text-primary) !important;
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--vtx-text-muted) !important;
}

.comment-content {
    color: var(--vtx-text-secondary) !important;
    line-height: 1.7;
    margin-left: 52px;
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
}

.comment-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vtx-text-secondary) !important;
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--vtx-bg-hover) !important;
    border: 1px solid var(--vtx-border) !important;
    border-radius: var(--vtx-radius-sm);
    color: var(--vtx-text-primary) !important;
    font-size: 0.95rem;
    margin-bottom: 16px;
    outline: none;
    transition: var(--vtx-transition);
    font-family: var(--vtx-font-body);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--vtx-accent) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background: var(--vtx-accent) !important;
    color: #fff !important;
    border: none;
    padding: 12px 28px;
    border-radius: var(--vtx-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--vtx-transition);
}

.comment-form input[type="submit"]:hover {
    background: var(--vtx-accent-hover) !important;
    transform: translateY(-1px);
}

/* ============================================
   ARCHIVE & SEARCH HEADERS
   ============================================ */
.vtx-archive-header,
.vtx-search-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--vtx-border);
    background: transparent !important;
}

.vtx-archive-title,
.vtx-search-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--vtx-text-primary) !important;
    margin-bottom: 12px;
}

.vtx-archive-title span,
.vtx-search-title span {
    color: var(--vtx-accent) !important;
}

.vtx-archive-desc {
    color: var(--vtx-text-secondary) !important;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ============================================
   NO RESULTS
   ============================================ */
.vtx-no-results {
    text-align: center;
    padding: 60px 0;
    background: transparent !important;
}

.vtx-no-results h2 {
    color: var(--vtx-text-primary) !important;
    margin-bottom: 16px;
}

.vtx-no-results p {
    color: var(--vtx-text-muted) !important;
    margin-bottom: 30px;
}

/* ============================================
   POST NAVIGATION
   ============================================ */
.post-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--vtx-border);
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    background: var(--vtx-bg-card) !important;
    border: 1px solid var(--vtx-border) !important;
    border-radius: var(--vtx-radius-md);
    padding: 20px;
    transition: var(--vtx-transition);
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    border-color: var(--vtx-accent) !important;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.8rem;
    color: var(--vtx-text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.post-navigation .nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vtx-text-primary) !important;
}

.post-navigation a:hover .nav-title {
    color: var(--vtx-accent) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .vtx-content-area {
        grid-template-columns: 1fr;
    }

    .vtx-sidebar {
        position: static;
        margin-top: 40px;
    }

    .vtx-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .vtx-menu-toggle {
        display: flex;
    }

    .vtx-nav {
        position: fixed;
        top: var(--vtx-header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.98) !important;
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .vtx-nav.active {
        transform: translateX(0);
    }

    .vtx-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .vtx-nav a {
        font-size: 1.1rem;
        padding: 12px 16px;
    }

    .vtx-posts-grid {
        grid-template-columns: 1fr;
    }

    .vtx-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .vtx-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .vtx-share-buttons {
        justify-content: center;
    }

    .vtx-single-meta {
        gap: 12px;
    }

    .comment-content {
        margin-left: 0;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .vtx-hero {
        padding: calc(var(--vtx-header-height) + 40px) 16px 40px;
    }

    .vtx-main {
        padding: 40px 16px;
    }

    .vtx-post-card {
        border-radius: var(--vtx-radius-md);
    }

    .vtx-share-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .vtx-share-btn span {
        display: none;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vtx-post-card {
    animation: fadeInUp 0.5s ease forwards;
}

.vtx-post-card:nth-child(1) { animation-delay: 0.05s; }
.vtx-post-card:nth-child(2) { animation-delay: 0.1s; }
.vtx-post-card:nth-child(3) { animation-delay: 0.15s; }
.vtx-post-card:nth-child(4) { animation-delay: 0.2s; }
.vtx-post-card:nth-child(5) { animation-delay: 0.25s; }
.vtx-post-card:nth-child(6) { animation-delay: 0.3s; }

/* ============================================
   WORDPRESS DEFAULTS
   ============================================ */
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }

.wp-caption {
    max-width: 100%;
    background: var(--vtx-bg-card) !important;
    padding: 10px;
    border-radius: var(--vtx-radius-sm);
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--vtx-text-muted) !important;
    text-align: center;
    margin-top: 8px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.gallery-item img {
    border-radius: var(--vtx-radius-sm);
}

/* Screen Reader Text */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   SOBRESCREVER ESTILOS DO WORDPRESS/GUTENBERG
   ============================================ */

/* Forçar fundo escuro em elementos do editor de blocos */
.wp-block-post-content,
.wp-block-post-excerpt,
.wp-block-post-title a,
.wp-block-post-date,
.wp-block-post-author,
.wp-block-post-terms {
    color: inherit !important;
}

/* Sobrescrever cores de links do tema padrão */
.entry-content a,
.entry-summary a,
.widget a,
.comment-content a {
    color: var(--vtx-accent) !important;
}

.entry-content a:hover,
.entry-summary a:hover,
.widget a:hover,
.comment-content a:hover {
    color: var(--vtx-accent-hover) !important;
}

/* Forçar fundo escuro em widgets padrão */
.widget {
    background: var(--vtx-bg-card) !important;
    border: 1px solid var(--vtx-border) !important;
    border-radius: var(--vtx-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title,
.widget h2,
.widget h3 {
    color: var(--vtx-text-primary) !important;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--vtx-border);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid var(--vtx-border);
}

.widget li:last-child {
    border-bottom: none;
}

.widget li a {
    color: var(--vtx-text-secondary) !important;
}

.widget li a:hover {
    color: var(--vtx-accent) !important;
}

/* Forçar fundo escuro em formulários */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
    background: var(--vtx-bg-hover) !important;
    border: 1px solid var(--vtx-border) !important;
    color: var(--vtx-text-primary) !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--vtx-accent) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Botões padrão do WordPress */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-button__link {
    background: var(--vtx-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--vtx-radius-sm);
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vtx-transition);
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    background: var(--vtx-accent-hover) !important;
}

/* Tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

th, td {
    padding: 12px 16px;
    border: 1px solid var(--vtx-border);
    text-align: left;
}

th {
    background: var(--vtx-bg-hover) !important;
    color: var(--vtx-text-primary) !important;
    font-weight: 600;
}

td {
    background: var(--vtx-bg-card) !important;
    color: var(--vtx-text-secondary) !important;
}

/* Forçar fundo escuro no body em todos os contextos */
body.custom-background,
body.custom-background .site,
body.custom-background .site-content,
body.custom-background .content-area {
    background-color: var(--vtx-bg-primary) !important;
}
