/*
Theme Name: Arturia Custom Theme
Theme URI: http://arturia.pe
Author: Antigravity
Author URI: http://arturia.pe
Description: A custom theme for Arturia.pe with Tailwind CSS and WooCommerce support.
Version: 1.0
Text Domain: arturia
*/

/* Basic Reset / Tailwind base will go here or be enqueued */
body {
    font-family: 'Inter', sans-serif;
    background-color: #111827;
    /* New primary dark background */
    color: #e5e7eb;
    /* A light gray for default text */
}

/* Comment Form Styles */
.comment-form {
    background-color: #1e293b;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-notes,
.logged-in-as {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    color: #e5e7eb;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #0f172a;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.form-submit .submit {
    background-color: #2563eb;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.form-submit .submit:hover {
    background-color: #1d4ed8;
}

/* Comments List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-body {
    background-color: #1e293b;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.comment-author img {
    border-radius: 9999px;
    width: 40px;
    height: 40px;
}

.fn {
    font-weight: 700;
    color: white;
    font-style: normal;
}

.comment-metadata a {
    color: #9ca3af;
    font-size: 0.875rem;
    text-decoration: none;
}

.comment-content {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.6;
}

.reply a {
    display: inline-block;
    margin-top: 1rem;
    color: #60a5fa;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.reply a:hover {
    text-decoration: underline;
}

/* =========================================
   SIDEBAR WIDGET STYLES
   ========================================= */

/* Generic Widget Container */
.widget {
    background-color: #1e293b;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

/* Widget Titles */
.widget h2.widget-title,
.widget h3.widget-title,
.widget h3 {
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    /* 18px */
    margin-bottom: 1.5rem;
    display: block;
}

/* Search Widget */
.widget_search form {
    position: relative;
}

.widget_search input[type="search"] {
    width: 100%;
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #d1d5db;
    outline: none;
    transition: border-color 0.2s;
}

.widget_search input[type="search"]:focus {
    border-color: #3b82f6;
}

.widget_search button[type="submit"] {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
}

.widget_search button[type="submit"]:hover {
    color: white;
}

/* Categories Widget */
.widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_categories li {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_categories li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.widget_categories li a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Category Count */
.widget_categories li .count {
    background-color: rgba(0, 0, 0, 0.3);
    color: #6b7280;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    margin-left: auto;
}

.widget_categories li a:hover .count {
    color: #60a5fa;
}

/* Custom Widgets (No extra padding if they have their own containers) */
.widget.widget_arturia_author_widget,
.widget.widget_arturia_newsletter_widget,
.widget.widget_arturia_product_widget,
.widget.widget_arturia_banner_widget {
    background: transparent;
    border: none;
    padding: 0;
}

/* =========================================
   MOVED FROM HEADER.PHP (OPTIMIZATION)
   ========================================= */

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

/* Fix for invisible text on selection/hover */
::selection {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

::-moz-selection {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

/* Hide reCAPTCHA Badge (Legal text in footer) */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* WooCommerce Button Styling - Dark Mode Premium - ULTRA REINFORCED */
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-cart a.button.checkout,
body.woocommerce-cart a.button.checkout:hover,
body.woocommerce-checkout #place_order,
body.woocommerce-checkout #place_order:hover,
body.woocommerce-cart input[name="update_cart"],
body.woocommerce-cart button[name="update_cart"] {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
    color: white !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    padding: 1.25rem 2rem !important;
    border-radius: 0.75rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-checkout #place_order:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5) !important;
    filter: brightness(1.1) !important;
}

/* Apply Coupon Button - Specific Targeting */
body.woocommerce-cart button[name="apply_coupon"],
body.woocommerce-cart input[name="apply_coupon"],
body.woocommerce-cart .coupon button,
body.woocommerce-cart .coupon input[type="submit"] {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #e2e8f0 !important;
    /* Slate 200 */
    font-weight: 700 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.2s !important;
    backdrop-filter: blur(5px) !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 0.875rem !important;
    height: auto !important;
    width: auto !important;
    display: inline-block !important;
}

body.woocommerce-cart button[name="apply_coupon"]:hover,
body.woocommerce-cart input[name="apply_coupon"]:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1) !important;
}

/* Invoice Style Layout - WooCommerce Blocks Support */
.wc-block-cart-items,
.woocommerce-cart table.shop_table {
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin-bottom: 3rem !important;
    width: 100% !important;
}

.wc-block-cart-items thead,
.woocommerce-cart table.shop_table thead {
    background-color: #111827 !important;
}

.wc-block-cart-items th,
.wc-block-cart-items__header th,
.woocommerce-cart table.shop_table th {
    color: #94a3b8 !important;
    /* Slate 400 */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    padding: 1.25rem 1rem !important;
    border-bottom: 2px solid white !important;
    /* Force White */
}

.wc-block-cart-items td,
.wc-block-cart-items__row td,
.woocommerce-cart table.shop_table td {
    border-bottom: 1px solid white !important;
    /* Force White */
    padding: 1.5rem 1rem !important;
    color: #e2e8f0 !important;
    /* Slate 200 */
    vertical-align: middle !important;
}

.wc-block-cart-items tr:last-child td,
.woocommerce-cart table.shop_table tr:last-child td {
    border-bottom: none !important;
}

/* Cart Totals - Receipt Look */
.wc-block-cart__totals,
.cart-collaterals {
    border-top: 1px dashed white !important;
    /* Force White */
    padding-top: 3rem !important;
    margin-top: 2rem !important;
}

.cart_totals {
    background-color: rgba(15, 23, 42, 0.6) !important;
    /* Darker inner bg */
    padding: 2rem !important;
    border-radius: 1rem !important;
    border: 1px solid white !important;
    /* Force White */
    width: 100% !important;
    float: none !important;
    max-width: 500px !important;
    margin-left: auto !important;
}

.wc-block-cart__totals-title,
.cart_totals h2 {
    color: white !important;
    font-size: 1.25rem !important;
    margin-bottom: 1.5rem !important;
    border-bottom: 1px solid white !important;
    /* Force White */
    padding-bottom: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.cart_totals table.shop_table {
    margin-bottom: 1.5rem !important;
    border: none !important;
}

.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
    padding: 1rem 0 !important;
    border-bottom: 1px dashed white !important;
    /* Force White */
}

.cart_totals table.shop_table tr.order-total th,
.cart_totals table.shop_table tr.order-total td {
    border-bottom: none !important;
    border-top: 2px solid white !important;
    /* Force White */
    padding-top: 1.5rem !important;
    font-size: 1.25rem !important;
    color: white !important;
}

/* Distraction Free Header for Checkout */
body.woocommerce-checkout header nav,
body.woocommerce-checkout header .flex.items-center.space-x-6 {
    display: none !important;
}

body.woocommerce-checkout header .container {
    justify-content: center !important;
}

/* Form Styling (Inputs) */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout textarea,
.wc-block-components-text-input input {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    color: white !important;
    padding: 1rem !important;
    border-radius: 0.5rem !important;
    font-size: 1rem !important;
}

.woocommerce-checkout input:focus,
.wc-block-components-text-input input:focus {
    border-color: #3b82f6 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

/* Labels */
.woocommerce-checkout label,
.wc-block-components-text-input label {
    color: #94a3b8 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

/* Order Summary Styling */
.woocommerce-checkout #order_review table th,
.woocommerce-checkout #order_review table td,
.wc-block-components-order-summary-item {
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.woocommerce-checkout #order_review .order-total {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: white !important;
}