/*
Theme Name: Elegant Email List Platform Theme
Theme URI: https://emaillists.net
Description: A premium, dark-mode WordPress theme built for the Elegant Email List Platform, integrated with WooCommerce and a custom Coins Virtual Currency system.
Version: 1.0.0
Author: Antigravity
Author URI: https://google.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elegant-email-theme
*/

/* Core Design System Custom Styles */
body {
    background-color: #0A0A0A;
    color: #e5e2e1;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.link-underline-animation {
    position: relative;
    display: inline-block;
}

.link-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.link-underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Material symbols vertical alignment */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* WooCommerce Dark Mode Overrides */
.woocommerce, .woocommerce-page {
    color: #e5e2e1;
}

.woocommerce-Message, .woocommerce-info, .woocommerce-error, .woocommerce-message {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e5e2e1 !important;
    border-top: 3px solid #ffffff !important;
    border-radius: 0.5rem;
    padding: 1.5rem !important;
}

.woocommerce-error {
    border-top-color: #ffb4ab !important;
}

.woocommerce-message a, .woocommerce-info a, .woocommerce-error a {
    color: #ffffff !important;
    text-decoration: underline;
    font-weight: 600;
}

/* My Account Navigation & Content (Forces 100% Full-Width Layout) */
.woocommerce-MyAccount-navigation {
    width: 100% !important;
    float: none !important;
    margin-bottom: 2rem !important;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.woocommerce-MyAccount-navigation li {
    display: inline-block;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e2e1;
    text-transform: uppercase;
    font-family: 'inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 2rem !important;
    border-radius: 0.75rem !important;
}

/* Forms and Inputs */
.woocommerce form input[type="text"],
.woocommerce form input[type="email"],
.woocommerce form input[type="tel"],
.woocommerce form input[type="password"],
.woocommerce form textarea,
.woocommerce form select,
.woocommerce-page form input[type="text"],
.woocommerce-page form input[type="email"],
.woocommerce-page form input[type="tel"],
.woocommerce-page form input[type="password"],
.woocommerce-page form textarea,
.woocommerce-page form select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
select.country_select, select#billing_state {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 0.375rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease-in-out !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce form input[type="text"]:focus,
.woocommerce form input[type="email"]:focus,
.woocommerce form input[type="tel"]:focus,
.woocommerce form input[type="password"]:focus,
.woocommerce form textarea:focus,
.woocommerce form select:focus,
.woocommerce-page form input[type="text"]:focus,
.woocommerce-page form input[type="email"]:focus,
.woocommerce-page form input[type="tel"]:focus,
.woocommerce-page form input[type="password"]:focus,
.woocommerce-page form textarea:focus,
.woocommerce-page form select:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05) !important;
}

.woocommerce form .form-row label,
.woocommerce-page form .form-row label {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.5rem !important;
    display: inline-block !important;
}

/* Buttons */
.woocommerce #respond input#submit, 
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button,
.woocommerce-page #respond input#submit, 
.woocommerce-page a.button, 
.woocommerce-page button.button, 
.woocommerce-page input.button {
    background-color: #ffffff !important;
    color: #0A0A0A !important;
    padding: 0.75rem 1.5rem !important;
    font-family: 'inter', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-radius: 0.25rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.woocommerce #respond input#submit:hover, 
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #0A0A0A !important;
    transform: translateY(-1px);
}

.woocommerce button.button:disabled, 
.woocommerce button.button:disabled[disabled] {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed !important;
}

/* Tables (Cart / Checkout) */
.woocommerce table.shop_table {
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 0.5rem !important;
    background: rgba(255, 255, 255, 0.01) !important;
    overflow: hidden;
}

.woocommerce table.shop_table th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-family: 'manrope', sans-serif !important;
    font-weight: 600 !important;
    padding: 1rem !important;
}

.woocommerce table.shop_table td {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 1.25rem 1rem !important;
    color: #e5e2e1 !important;
}

.woocommerce-cart-form__contents {
    background: rgba(255, 255, 255, 0.02);
}

.woocommerce table.shop_table_toggle {
    margin-top: 2rem;
}

/* Checkout styling */
.woocommerce-checkout #payment {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 0.75rem !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 1.5rem !important;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: #e5e2e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 0.375rem !important;
}

.woocommerce-checkout #payment div.place-order {
    padding: 1.5rem !important;
}

#add_payment_method #payment div.payment_box::before, 
.woocommerce-cart #payment div.payment_box::before, 
.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: rgba(255, 255, 255, 0.03) !important;
}

/* Select2 Custom Dark Styling */
.select2-container--default .select2-selection--single {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    height: 46px !important;
    padding: 8px 12px !important;
    border-radius: 0.375rem !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s ease-in-out !important;
    box-sizing: border-box !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
    font-size: 0.875rem !important;
    line-height: normal !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    position: absolute !important;
    top: 1px !important;
    right: 8px !important;
    width: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: rgba(255, 255, 255, 0.4) transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent rgba(255, 255, 255, 0.4) transparent !important;
    border-width: 0 4px 5px 4px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.select2-dropdown {
    background-color: #131313 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 0.375rem !important;
    overflow: hidden !important;
    z-index: 99999 !important;
}

/* Style the Select2 lists (ul) and options (li) */
.select2-container--default .select2-results > .select2-results__options {
    background-color: #131313 !important;
    color: #ffffff !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 250px !important;
}

.select2-container--default .select2-results__option {
    padding: 10px 14px !important;
    font-size: 0.875rem !important;
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.8) !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    list-style: none !important;
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option--selected {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected], 
.select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option[aria-disabled="true"] {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Style Select2 Dropdown search input */
.select2-search--dropdown {
    background-color: #131313 !important;
    padding: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
    border-radius: 0.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Checkout and My Account Form Containers Premium Glassmorphism */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
#order_review,
#customer_login .col-1,
#customer_login .col-2 {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 2rem !important;
    border-radius: 0.75rem !important;
    margin-bottom: 2rem !important;
    box-sizing: border-box !important;
}

/* Fix registration form alignment on My Account page */
.woocommerce-form-register .form-row-first,
.woocommerce-form-register .form-row-last {
    width: 48% !important;
    float: left !important;
    clear: none !important;
}

.woocommerce-form-register .form-row-last {
    float: right !important;
}

@media (max-w-767px) {
    .woocommerce-form-register .form-row-first,
    .woocommerce-form-register .form-row-last {
        width: 100% !important;
        float: none !important;
    }
}

/* WooCommerce Gutenberg Blocks Cart & Checkout Styling with High Specificity */
body.woocommerce-page .wc-block-checkout .wc-block-components-combobox,
body.woocommerce-page .wc-block-checkout .wc-block-components-combobox__input-container,
body.woocommerce-page .wc-block-checkout .wc-block-components-select-control__control,
body.woocommerce-page .wc-block-checkout .wc-block-components-select-control__select,
body.woocommerce-page .wc-block-checkout .wc-block-components-text-input input,
body.woocommerce-page .wc-block-checkout .wc-block-components-text-input textarea,
body.woocommerce-page .wc-block-checkout .wc-block-components-textarea textarea,
body.woocommerce-page .wc-block-checkout select,
body.woocommerce-page .wc-block-checkout textarea,
body.woocommerce-page .wc-block-cart .wc-block-components-combobox,
body.woocommerce-page .wc-block-cart .wc-block-components-combobox__input-container,
body.woocommerce-page .wc-block-cart .wc-block-components-select-control__control,
body.woocommerce-page .wc-block-cart .wc-block-components-select-control__select,
body.woocommerce-page .wc-block-cart .wc-block-components-text-input input,
body.woocommerce-page .wc-block-cart select {
    background-color: rgba(255, 255, 255, 0.02) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 0.375rem !important;
    transition: all 0.2s ease-in-out !important;
    height: 48px !important;
}

/* Remove forced height for textareas to allow standard heights */
body.woocommerce-page .wc-block-checkout .wc-block-components-text-input textarea,
body.woocommerce-page .wc-block-checkout .wc-block-components-textarea textarea,
body.woocommerce-page .wc-block-checkout textarea {
    height: auto !important;
    min-height: 100px !important;
}

/* Transparent inner elements */
body.woocommerce-page .wc-block-checkout .wc-block-components-combobox__input,
body.woocommerce-page .wc-block-cart .wc-block-components-combobox__input {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    height: 100% !important;
    width: 100% !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Style Select options dropdown */
body.woocommerce-page .wc-block-checkout select option,
body.woocommerce-page .wc-block-cart select option {
    background-color: #131313 !important;
    color: #ffffff !important;
}

/* Labels visibility and layout in blocks */
body.woocommerce-page .wc-block-checkout .wc-block-components-text-input label,
body.woocommerce-page .wc-block-checkout .wc-block-components-textarea label,
body.woocommerce-page .wc-block-checkout .wc-block-components-select-control label,
body.woocommerce-page .wc-block-checkout .wc-block-components-combobox label,
body.woocommerce-page .wc-block-cart .wc-block-components-text-input label,
body.woocommerce-page .wc-block-cart .wc-block-components-select-control label {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.875rem !important;
    transform: translateY(0) scale(1) !important;
    transition: all 0.2s ease-in-out !important;
    pointer-events: none !important;
}

/* Floating labels adjustments for Gutenberg blocks when active/focused */
body.woocommerce-page .wc-block-checkout .wc-block-components-text-input.is-active label,
body.woocommerce-page .wc-block-checkout .wc-block-components-textarea.is-active label,
body.woocommerce-page .wc-block-checkout .wc-block-components-select-control.is-active label,
body.woocommerce-page .wc-block-checkout .wc-block-components-combobox.is-active label,
body.woocommerce-page .wc-block-cart .wc-block-components-text-input.is-active label,
body.woocommerce-page .wc-block-cart .wc-block-components-select-control.is-active label {
    transform: translateY(-24px) scale(0.75) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    background-color: #0A0A0A !important;
    padding: 0 6px !important;
    z-index: 10 !important;
}

/* WooCommerce Blocks Combobox Dropdown List */
.wc-block-components-combobox__list {
    background-color: #131313 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 0.375rem !important;
    padding: 0 !important;
    list-style: none !important;
    z-index: 99999 !important;
}

.wc-block-components-combobox__option {
    padding: 10px 14px !important;
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.8) !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
}

.wc-block-components-combobox__option:hover,
.wc-block-components-combobox__option--focused,
.wc-block-components-combobox__option[aria-selected="true"] {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

