/**
 * Complete Dark Theme - Main Stylesheet
 * Version: 1.0.0
 * Covers: Divi + WooCommerce + WordPress + Everything
 */

/* ========================================
   1. GLOBAL RESET - FORCE DARK EVERYWHERE
   ======================================== */

html,
body,
#page-container,
#et-main-area,
#main-content,
.et_pb_section,
.et_pb_row,
.et_pb_column,
.et_pb_module,
article,
.entry-content,
.post,
.page,
#content,
#content-area,
.site-content,
.hfeed,
#left-area,
#sidebar,
.widget-area,
.et-l,
.et_builder_inner_content,
.et_pb_with_background,
div[class*="et_pb"],
.container,
#et-boc,
.et-db,
#et-fb-app,
.et_pb_bg_layout_light {
    background: #0a0a0a !important;
    background-color: #0a0a0a !important;
    color: #cccccc !important;
}

/* Remove any lingering backgrounds */
* {
    background-color: transparent;
}

body {
    background: #0a0a0a !important;
}

/* ========================================
   2. TYPOGRAPHY - WHITE & GRAY
   ======================================== */

h1, h2, h3, h4, h5, h6,
.et_pb_text h1,
.et_pb_text h2,
.et_pb_text h3,
.et_pb_text h4,
.et_pb_module_header,
.et_pb_toggle_title,
.et_pb_slide_title,
.et_pb_tab_title {
    color: #ffffff !important;
}

p, span, div, li, td, th, dt, dd,
.et_pb_text,
.et_pb_module p {
    color: #cccccc !important;
}

a {
    color: #0066cc !important;
    text-decoration: none;
}

a:hover {
    color: #0099ff !important;
}

/* ========================================
   3. HEADER & NAVIGATION
   ======================================== */

#main-header,
.et-fixed-header,
#top-header,
.et_header_style_left #et-top-navigation,
.et_header_style_centered #et-top-navigation {
    background: #0a0a0a !important;
    border-bottom: 1px solid #333333;
}

/* Logo */
#logo,
.logo_container {
    background: transparent !important;
}

/* Navigation Menu */
#et-top-navigation nav > ul > li > a,
#et-top-navigation .et-menu li a,
.et_mobile_menu li a {
    color: #cccccc !important;
}

#et-top-navigation nav > ul > li > a:hover,
#et-top-navigation .et-menu li a:hover {
    color: #0066cc !important;
}

/* Active menu item */
#et-top-navigation nav > ul > li.current-menu-item > a,
#et-top-navigation nav > ul > li.current_page_item > a {
    color: #0066cc !important;
}

/* Dropdown menus */
#et-top-navigation nav > ul > li ul.sub-menu,
#et-top-navigation .et-menu li ul.sub-menu {
    background: #0f0f0f !important;
    border: 1px solid #333333;
}

#et-top-navigation nav > ul > li ul.sub-menu li a {
    color: #cccccc !important;
}

#et-top-navigation nav > ul > li ul.sub-menu li a:hover {
    background: #1a1a1a !important;
    color: #0066cc !important;
}

/* Mobile Menu */
.mobile_nav,
.mobile_menu_bar {
    background: #0a0a0a !important;
}

.et_mobile_menu {
    background: #0f0f0f !important;
}

.mobile_nav .mobile_menu_bar:before {
    color: #cccccc !important;
}

/* Search */
#et-top-navigation form input,
.et-search-form input {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
}

/* ========================================
   4. CONTENT SECTIONS
   ======================================== */

.et_pb_section {
    background: #0a0a0a !important;
}

.et_pb_row {
    background: transparent !important;
}

/* Text modules */
.et_pb_text {
    color: #cccccc !important;
}

/* Image modules */
.et_pb_image {
    background: transparent !important;
}

/* Call to action */
.et_pb_cta {
    background: #1a1a1a !important;
    border: 1px solid #333333;
}

/* Pricing tables */
.et_pb_pricing_table,
.et_pb_pricing {
    background: #1a1a1a !important;
    border: 1px solid #333333;
}

.et_pb_pricing_heading {
    background: #0066cc !important;
    color: #ffffff !important;
}

/* Testimonials */
.et_pb_testimonial {
    background: #1a1a1a !important;
    border: 1px solid #333333;
}

/* Accordions & Toggles */
.et_pb_toggle,
.et_pb_accordion .et_pb_toggle {
    background: #1a1a1a !important;
    border: 1px solid #333333;
}

.et_pb_toggle_title {
    background: #222222 !important;
    color: #ffffff !important;
}

.et_pb_toggle_title:hover,
.et_pb_toggle_open .et_pb_toggle_title {
    background: #0066cc !important;
}

.et_pb_toggle_content {
    background: #1a1a1a !important;
    color: #cccccc !important;
}

/* Tabs */
.et_pb_tabs {
    background: #1a1a1a !important;
}

.et_pb_tabs_controls {
    background: #0f0f0f !important;
    border-bottom: 2px solid #333333;
}

.et_pb_tabs_controls li {
    background: #0f0f0f !important;
}

.et_pb_tabs_controls li a {
    color: #999999 !important;
}

.et_pb_tabs_controls li.et_pb_tab_active a,
.et_pb_tabs_controls li a:hover {
    color: #ffffff !important;
    background: #0066cc !important;
}

.et_pb_tab {
    background: #1a1a1a !important;
    color: #cccccc !important;
}

/* Counters & Numbers */
.et_pb_counter_container,
.et_pb_number_counter {
    background: #1a1a1a !important;
}

/* Gallery */
.et_pb_gallery_item {
    background: #1a1a1a !important;
}

/* Blog & Posts */
.et_pb_blog_grid article,
.et_pb_post {
    background: #1a1a1a !important;
    border: 1px solid #333333;
}

.et_pb_post_title,
.entry-title {
    color: #ffffff !important;
}

.post-meta,
.et_pb_post_meta {
    color: #999999 !important;
}

/* ========================================
   5. SIDEBAR & WIDGETS
   ======================================== */

#sidebar,
.sidebar,
.widget-area,
#right-area {
    background: #0a0a0a !important;
}

.widget,
.et_pb_widget {
    background: #1a1a1a !important;
    border: 1px solid #333333;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.widgettitle,
.widget-title,
.et_pb_widget .widgettitle {
    color: #ffffff !important;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #333333;
}

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

.widget ul li a {
    color: #cccccc !important;
}

.widget ul li a:hover {
    color: #0066cc !important;
}

/* Search widget */
.widget_search form,
.et_pb_widget .widget_search form {
    display: flex;
}

.widget_search input[type="search"],
.widget_search input[type="text"] {
    background: #0f0f0f !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
    padding: 10px 15px;
    flex: 1;
}

.widget_search input[type="submit"] {
    background: #0066cc !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px;
}

/* Calendar widget */
#wp-calendar {
    background: #0f0f0f !important;
    color: #cccccc !important;
}

#wp-calendar caption {
    color: #ffffff !important;
    background: #0066cc !important;
    padding: 10px;
}

#wp-calendar th,
#wp-calendar td {
    color: #cccccc !important;
    border: 1px solid #333333;
}

/* Recent posts */
.widget_recent_entries li {
    color: #cccccc !important;
}

.widget_recent_entries .post-date {
    color: #999999 !important;
}

/* ========================================
   6. COMMENTS
   ======================================== */

#comments,
.comments-area,
#respond,
.comment-respond {
    background: #0a0a0a !important;
}

.comment,
.comment-body {
    background: #1a1a1a !important;
    border: 1px solid #333333;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.comment-author,
.comment-metadata {
    color: #cccccc !important;
}

.comment-author .fn {
    color: #ffffff !important;
}

.comment-content {
    color: #cccccc !important;
}

.comment-reply-link {
    background: #0066cc !important;
    color: #ffffff !important;
    padding: 8px 15px;
    border-radius: 6px;
}

/* Comment form */
#commentform {
    background: #1a1a1a !important;
    padding: 30px;
    border-radius: 8px;
}

#commentform label {
    color: #ffffff !important;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    background: #0f0f0f !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
    padding: 12px 15px;
    width: 100%;
}

#commentform input:focus,
#commentform textarea:focus {
    border-color: #0066cc !important;
    outline: none;
}

/* ========================================
   7. FORMS
   ======================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
    border-radius: 6px;
    padding: 12px 15px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #0066cc !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2) !important;
}

input::placeholder,
textarea::placeholder {
    color: #666666 !important;
}

/* Checkboxes and radios */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #0066cc;
}

/* ========================================
   8. BUTTONS
   ======================================== */

button,
.button,
.et_pb_button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.wp-block-button__link,
.et_pb_promo_button,
.et_pb_newsletter_button {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px 35px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

button:hover,
.button:hover,
.et_pb_button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4) !important;
}

/* ========================================
   9. FOOTER
   ======================================== */

#main-footer,
.et_pb_section_bottom,
footer,
#footer-bottom,
#footer-widgets {
    background: #0a0a0a !important;
    border-top: 1px solid #333333;
}

#footer-widgets .widget,
#main-footer .widget {
    background: #1a1a1a !important;
}

#footer-info,
#footer-bottom {
    color: #999999 !important;
}

#footer-info a,
#footer-bottom a {
    color: #0066cc !important;
}

/* ========================================
   10. WOOCOMMERCE - COMPLETE DARK THEME
   ======================================== */

/* Shop/Archive Pages */
.woocommerce,
.woocommerce-page {
    background: #0a0a0a !important;
    color: #cccccc !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: #1a1a1a !important;
    border: 1px solid #333333 !important;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    border-color: #0066cc !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

.woocommerce ul.products li.product img {
    background: #0f0f0f !important;
    border-radius: 6px;
    padding: 10px;
}

.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #ffffff !important;
}

.woocommerce ul.products li.product .price {
    color: #0066cc !important;
    font-weight: 700;
}

.woocommerce span.onsale {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%) !important;
    color: #ffffff !important;
}

/* Single Product */
.woocommerce div.product {
    background: #0a0a0a !important;
}

.woocommerce div.product .product_title {
    color: #ffffff !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #0066cc !important;
    font-size: 32px;
    font-weight: 700;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    background: #1a1a1a !important;
    border-left: 4px solid #0066cc;
    padding: 20px;
    border-radius: 6px;
    color: #cccccc !important;
}

/* Product tabs */
.woocommerce div.product .woocommerce-tabs {
    background: #1a1a1a !important;
    padding: 30px;
    border-radius: 8px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #333333;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    background: #0f0f0f !important;
    color: #999999 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    background: #0066cc !important;
    color: #ffffff !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
    color: #cccccc !important;
}

/* Variations */
.woocommerce div.product form.cart {
    background: #1a1a1a !important;
    padding: 30px;
    border: 1px solid #333333;
    border-radius: 8px;
}

.woocommerce div.product form.cart .variations label {
    color: #ffffff !important;
}

.woocommerce div.product form.cart .variations select {
    background: #0f0f0f !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
}

.woocommerce .quantity .qty {
    background: #0f0f0f !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
}

/* Add to cart button */
.woocommerce div.product form.cart .button,
.woocommerce ul.products li.product .button {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%) !important;
    color: #ffffff !important;
}

/* Cart page */
.woocommerce table.shop_table {
    background: #1a1a1a !important;
    border: 1px solid #333333 !important;
    color: #cccccc !important;
}

.woocommerce table.shop_table th {
    background: #0066cc !important;
    color: #ffffff !important;
}

.woocommerce table.shop_table td {
    background: #1a1a1a !important;
    border-top: 1px solid #333333 !important;
}

.woocommerce table.shop_table .product-name a {
    color: #ffffff !important;
}

/* Cart totals */
.woocommerce .cart-collaterals .cart_totals {
    background: #1a1a1a !important;
    border: 1px solid #333333 !important;
    padding: 30px;
    border-radius: 8px;
}

.woocommerce .cart-collaterals .cart_totals h2 {
    color: #ffffff !important;
}

/* Checkout */
.woocommerce form .form-row label {
    color: #ffffff !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
}

.woocommerce .woocommerce-billing-fields,
.woocommerce .woocommerce-shipping-fields,
.woocommerce .woocommerce-additional-fields {
    background: #1a1a1a !important;
    padding: 30px;
    border: 1px solid #333333;
    border-radius: 8px;
}

#order_review {
    background: #1a1a1a !important;
    padding: 30px;
    border: 1px solid #333333;
    border-radius: 8px;
}

.woocommerce #payment {
    background: #1a1a1a !important;
    padding: 30px;
    border-radius: 8px;
}

.woocommerce #payment ul.payment_methods {
    background: #0f0f0f !important;
    border: 1px solid #333333 !important;
}

.woocommerce #payment div.payment_box {
    background: #0f0f0f !important;
    color: #cccccc !important;
}

/* Widgets */
.woocommerce .widget_price_filter .price_slider_wrapper {
    background: #1a1a1a !important;
    padding: 20px;
}

.woocommerce .widget_price_filter .ui-slider {
    background: #333333 !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    background: #0066cc !important;
}

/* Messages */
.woocommerce-message,
.woocommerce-info {
    background: rgba(0, 204, 102, 0.1) !important;
    border-left: 4px solid #00cc66 !important;
    color: #ffffff !important;
}

.woocommerce-error {
    background: rgba(255, 51, 51, 0.1) !important;
    border-left: 4px solid #ff3333 !important;
    color: #ffffff !important;
}

/* ========================================
   11. BREADCRUMBS
   ======================================== */

.woocommerce .woocommerce-breadcrumb,
.et_pb_breadcrumbs,
#crumbs {
    background: #1a1a1a !important;
    padding: 15px 20px;
    border-radius: 6px;
    color: #999999 !important;
}

.woocommerce .woocommerce-breadcrumb a,
.et_pb_breadcrumbs a {
    color: #0066cc !important;
}

/* ========================================
   12. PAGINATION
   ======================================== */

.pagination,
.wp-pagenavi,
.woocommerce-pagination {
    background: transparent !important;
}

.pagination a,
.pagination span,
.wp-pagenavi a,
.wp-pagenavi span {
    background: #1a1a1a !important;
    color: #cccccc !important;
    border: 1px solid #333333 !important;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 6px;
}

.pagination a:hover,
.wp-pagenavi a:hover {
    background: #0066cc !important;
    color: #ffffff !important;
}

.pagination .current,
.wp-pagenavi .current {
    background: #0066cc !important;
    color: #ffffff !important;
}

/* ========================================
   13. MODALS & POPUPS
   ======================================== */

.et_pb_lightbox_overlay {
    background: rgba(0, 0, 0, 0.95) !important;
}

.mfp-bg {
    background: #000000 !important;
}

.mfp-container {
    background: #0a0a0a !important;
}

.mfp-content,
.et-pb-lightbox-message {
    background: #1a1a1a !important;
    color: #cccccc !important;
}

/* ========================================
   14. RESPONSIVE
   ======================================== */

@media (max-width: 980px) {
    #main-header,
    #et-top-navigation,
    .et_mobile_menu {
        background: #0a0a0a !important;
    }
}

@media (max-width: 768px) {
    body,
    #page-container,
    .et_pb_section {
        background: #0a0a0a !important;
    }
    
    .widget {
        margin-bottom: 20px;
    }
}

/* ========================================
   15. DIVI BUILDER ELEMENTS
   ======================================== */

.et_pb_column_1_2,
.et_pb_column_1_3,
.et_pb_column_1_4,
.et_pb_column_2_3,
.et_pb_column_3_4 {
    background: transparent !important;
}

.et_pb_contact_form {
    background: #1a1a1a !important;
    padding: 30px;
    border-radius: 8px;
}

.et_pb_contact_field label {
    color: #ffffff !important;
}

.et_pb_contact_field input,
.et_pb_contact_field textarea,
.et_pb_contact_field select {
    background: #0f0f0f !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
}

.et_pb_newsletter {
    background: #1a1a1a !important;
    padding: 30px;
    border-radius: 8px;
}

.et_pb_newsletter_form input {
    background: #0f0f0f !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
}

/* Blurbs */
.et_pb_blurb {
    background: #1a1a1a !important;
    padding: 30px;
    border: 1px solid #333333;
    border-radius: 8px;
}

/* Team members */
.et_pb_team_member {
    background: #1a1a1a !important;
    border: 1px solid #333333;
    border-radius: 8px;
}

/* ========================================
   16. UTILITIES
   ======================================== */

.text-white {
    color: #ffffff !important;
}

.bg-dark {
    background: #0a0a0a !important;
}

.bg-dark-card {
    background: #1a1a1a !important;
}

.border-dark {
    border-color: #333333 !important;
}

/* ========================================
   17. SMOOTH TRANSITIONS
   ======================================== */

a,
button,
.button,
input,
.et_pb_button {
    transition: all 0.3s ease !important;
}

/* ========================================
   18. PRINT STYLES
   ======================================== */

@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
}
