/*
Theme Name: Manual do Carro Child
Template: astra
*/
/* Dark theme override - loaded AFTER Astra inline CSS */

/* === Astra Global Colors === */
:root {
    --ast-global-color-0: #e63946 !important;
    --ast-global-color-1: #c1121f !important;
    --ast-global-color-2: #e6edf3 !important;
    --ast-global-color-3: #8b949e !important;
    --ast-global-color-4: #0d1117 !important;
    --ast-global-color-5: #161b22 !important;
    --ast-global-color-6: #111111 !important;
    --ast-global-color-7: #0d1117 !important;
    --ast-global-color-8: #f0f6fc !important;
}

/* === Elementor Global Colors === */
:root {
    --e-global-color-astglobalcolor0: #e63946 !important;
    --e-global-color-astglobalcolor1: #c1121f !important;
    --e-global-color-astglobalcolor2: #e6edf3 !important;
    --e-global-color-astglobalcolor3: #8b949e !important;
    --e-global-color-astglobalcolor4: #0d1117 !important;
    --e-global-color-astglobalcolor5: #161b22 !important;
    --e-global-color-astglobalcolor6: #111111 !important;
    --e-global-color-astglobalcolor7: #0d1117 !important;
    --e-global-color-astglobalcolor8: #f0f6fc !important;
}

/* === Body & Container === */
body, #page { background: #0d1117 !important; }
.ast-separate-container,
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single,
.ast-separate-container .comment-respond,
.ast-separate-container .ast-article-inner,
.ast-separate-container .comments-title,
.ast-separate-container .ast-author-box,
.ast-separate-container .ast-404-layout-1,
.ast-separate-container .no-results { background-color: #161b22 !important; }
.ast-plain-container .ast-article-post,
.ast-plain-container .ast-article-inner { background-color: #161b22 !important; }
.site > .ast-single-related-posts-container { background: #161b22 !important; }
.ast-article-inner { background-color: #161b22 !important; }
.ast-blog-layout-4-grid .ast-article-inner { background-color: #161b22 !important; }
.ast-archive-description { background-color: #161b22 !important; }
.ast-page-builder-template .entry-header { background-color: transparent !important; }

/* === Widgets === */
.widget, .widget-area .widget, .ast-widget-area { background-color: #161b22 !important; }
.footer-widgets-wrapper { background-color: #161b22 !important; }
.footer-widgets-wrapper .widget { background-color: #1c2333 !important; }
.site-info { background-color: #0d1117 !important; }

/* === Mobile Popup - high specificity === */
.ast-mobile-popup-drawer.active .ast-mobile-popup-inner,
.ast-mobile-popup-drawer.active .ast-mobile-popup-content > * { background-color: #0d1117 !important; }
.ast-mobile-header-wrap .ast-mobile-header-content,
.ast-desktop-header-content { background-color: #0d1117 !important; }
.ast-mobile-popup-drawer.active .menu-toggle-close { color: #e6edf3 !important; }

/* === Header mobile menu === */
.ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item > .menu-link { color: #e6edf3 !important; }
.ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item > .ast-menu-toggle { color: #e6edf3 !important; }
.ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item .sub-menu .menu-link { color: #e6edf3 !important; }
.ast-builder-menu-mobile .main-navigation .main-header-menu > .menu-item:hover > .menu-link { color: #f4a261 !important; }
.ast-builder-menu-mobile .main-navigation .inline-on-mobile .menu-item:hover > .menu-link { color: #f4a261 !important; }
.ast-builder-menu-mobile .main-navigation .menu-item .sub-menu { background-color: #0d1117 !important; }

/* === Header bar === */
.ast-header-break-point .ast-primary-header-bar,
.ast-primary-header-bar { background-color: #0d1117 !important; }
.ast-header-break-point .ast-primary-header-bar { border-bottom-color: #30363d !important; }

/* === Forms & Inputs === */
input[type="text"], input[type="email"], input[type="url"],
input[type="password"], input[type="search"], input[type="date"],
input[type="tel"], input[type="number"], textarea, select,
.wp-block-search__input { background-color: #161b22 !important; color: #e6edf3 !important; border-color: #30363d !important; }
::placeholder { color: #8b949e !important; }
.ast-header-search .ast-search-menu-icon.ast-dropdown-active .search-field:focus { color: #e6edf3 !important; }
label, legend { color: #e6edf3 !important; }

/* === Comments === */
.ast-comment-inputs-background { background-color: #0d1117 !important; }
.ast-comment-list li.depth-1, .hentry { background-color: #161b22 !important; border-color: #30363d !important; }
.ast-comment-meta { color: #8b949e !important; }
.ast-comment-content { color: #c9d1d9 !important; }
.ast-comment-avatar-wrap img { border-color: #161b22 !important; }

/* === Misc === */
code, pre { background-color: #161b22 !important; border-color: #30363d !important; }
hr { background-color: #30363d !important; border-color: #30363d !important; }
blockquote { border-color: #30363d !important; }
table { background-color: #161b22 !important; }
th, td { border-color: #30363d !important; }
.entry-meta .cat-links a { color: #fff !important; }

/* === Scroll to top button === */
#ast-scroll-top { background-color: #e63946 !important; }
