/**
 * Villa de Tezontepec - Overrides globales dark mode
 * GeneratePress, WordPress core, formularios, GeoDirectory
 */

body.vdt-dark,
body.vdt-dark #page,
body.vdt-dark .site,
body.vdt-dark .site-content,
body.vdt-dark #content,
body.vdt-dark .content-area,
body.vdt-dark .inside-article,
body.vdt-dark .grid-container {
    background: var(--vdt-bg) !important;
    color: var(--vdt-text) !important;
}

body.vdt-dark .site-main {
    background: transparent !important;
}

/* Entradas y páginas fuera de plantillas VDT */
body.vdt-dark .entry-title,
body.vdt-dark .page-title,
body.vdt-dark .archive-description {
    color: var(--vdt-text-heading) !important;
}

body.vdt-dark .entry-content,
body.vdt-dark .entry-summary,
body.vdt-dark .geodir-post-content,
body.vdt-dark .geodir-tabs-content,
body.vdt-dark .geodir-entry-content {
    color: var(--vdt-text-secondary) !important;
}

body.vdt-dark .entry-content h1,
body.vdt-dark .entry-content h2,
body.vdt-dark .entry-content h3,
body.vdt-dark .entry-content h4,
body.vdt-dark .geodir-post-content h1,
body.vdt-dark .geodir-post-content h2,
body.vdt-dark .geodir-post-content h3 {
    color: var(--vdt-text-heading) !important;
}

body.vdt-dark .entry-content a,
body.vdt-dark .geodir-post-content a {
    color: var(--vdt-primary) !important;
}

body.vdt-dark .entry-content a:hover,
body.vdt-dark .geodir-post-content a:hover {
    color: var(--vdt-primary-hover) !important;
}

body.vdt-dark .entry-content blockquote,
body.vdt-dark .geodir-post-content blockquote {
    background: var(--vdt-bg-secondary) !important;
    border-left-color: var(--vdt-complement) !important;
    color: var(--vdt-text-secondary) !important;
}

body.vdt-dark .entry-meta,
body.vdt-dark .posted-on,
body.vdt-dark .byline,
body.vdt-dark .cat-links,
body.vdt-dark .tags-links {
    color: var(--vdt-text-muted) !important;
}

/* Formularios */
body.vdt-dark input[type="text"],
body.vdt-dark input[type="email"],
body.vdt-dark input[type="url"],
body.vdt-dark input[type="password"],
body.vdt-dark input[type="search"],
body.vdt-dark input[type="number"],
body.vdt-dark input[type="tel"],
body.vdt-dark textarea,
body.vdt-dark select {
    background: var(--vdt-bg-secondary) !important;
    color: var(--vdt-text) !important;
    border: 1px solid var(--vdt-border) !important;
    border-radius: var(--vdt-radius-sm) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.vdt-dark input::placeholder,
body.vdt-dark textarea::placeholder {
    color: var(--vdt-text-muted) !important;
}

body.vdt-dark input:focus,
body.vdt-dark textarea:focus,
body.vdt-dark select:focus {
    border-color: var(--vdt-primary) !important;
    box-shadow: 0 0 0 2px var(--vdt-primary-light) !important;
}

/* Comentarios */
body.vdt-dark .comment-list,
body.vdt-dark .comment-respond {
    color: var(--vdt-text-secondary) !important;
}

body.vdt-dark .comment-author,
body.vdt-dark .comment-meta {
    color: var(--vdt-text-muted) !important;
}

body.vdt-dark .comment-body {
    background: var(--vdt-bg-secondary) !important;
    border: 1px solid var(--vdt-border-light) !important;
    border-radius: var(--vdt-radius-md) !important;
}

/* Widgets genéricos */
body.vdt-dark .widget {
    color: var(--vdt-text-secondary) !important;
}

body.vdt-dark .widget-title {
    color: var(--vdt-text-heading) !important;
}

body.vdt-dark .widget a {
    color: var(--vdt-text-secondary) !important;
}

body.vdt-dark .widget a:hover {
    color: var(--vdt-primary) !important;
}

/* GeoDirectory tabs y meta */
body.vdt-dark .geodir-tabs .nav-tabs .nav-link {
    color: var(--vdt-text-muted) !important;
}

body.vdt-dark .geodir-tabs .nav-tabs .nav-link:hover {
    color: var(--vdt-primary) !important;
    background: var(--vdt-primary-light) !important;
}

body.vdt-dark .geodir-tabs .nav-tabs .nav-link.active {
    color: var(--vdt-primary) !important;
    border-bottom-color: var(--vdt-complement) !important;
}

body.vdt-dark .geodir_post_meta {
    color: var(--vdt-text-secondary) !important;
}

body.vdt-dark .geodir-page-title {
    color: var(--vdt-text-heading) !important;
}

/* WooCommerce básico */
body.vdt-dark .woocommerce-message,
body.vdt-dark .woocommerce-info,
body.vdt-dark .woocommerce-error {
    background: var(--vdt-bg-secondary) !important;
    color: var(--vdt-text) !important;
    border-top-color: var(--vdt-primary) !important;
}

body.vdt-dark .woocommerce table.shop_table,
body.vdt-dark .woocommerce .cart_totals,
body.vdt-dark .woocommerce-checkout-review-order {
    background: var(--vdt-bg-secondary) !important;
    color: var(--vdt-text-secondary) !important;
}

/* Selección de texto */
body.vdt-dark ::selection {
    background: var(--vdt-primary-light);
    color: var(--vdt-text-heading);
}
