/*
Theme Name: Roadhouse Professional
Theme URI: https://texasroadhousegaming.com
Author: Roadhouse Team
Description: Custom theme for Texas Roadhouse Gaming with Tailwind CSS
Version: 1.1.3
*/

:root {
    --roadhouse-dark: #0f172a;
    --roadhouse-light: #1e293b;
    --roadhouse-accent: #f59e0b;
    --roadhouse-accent-hover: #d97706;
}

body {
    background-color: var(--roadhouse-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--roadhouse-dark);
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--roadhouse-accent);
}

/* Clip Path */
.clip-path-slant {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* List Checkmarks */
ul.is-style-checkmarks {
    list-style: none;
    padding-left: 0;
}

ul.is-style-checkmarks li {
    position: relative;
    padding-left: 2rem;
    display: flex;
    align-items: center;
}

ul.is-style-checkmarks li::before {
    content: "";
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2310B981' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    left: 0;
}

/* Button Styles */
.wp-block-button__link {
    cursor: pointer;
    font-family: inherit;
}

.wp-block-button.btn-roadhouse-primary .wp-block-button__link,
.wp-block-button.btn-roadhouse-secondary .wp-block-button__link {
    padding: 0.875rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
}

.wp-block-button.btn-roadhouse-primary .wp-block-button__link {
    background-color: var(--roadhouse-accent);
    color: white;
}

.wp-block-button.btn-roadhouse-primary .wp-block-button__link:hover {
    background-color: var(--roadhouse-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.5);
}

.wp-block-button.btn-roadhouse-secondary .wp-block-button__link {
    background-color: #334155;
    color: white;
    border-color: #475569;
}

.wp-block-button.btn-roadhouse-secondary .wp-block-button__link:hover {
    background-color: #475569;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(51, 65, 85, 0.5);
}

/* Fix for Full Width Buttons */
.wp-block-button.has-custom-width.wp-block-button__width-100 {
    width: 100% !important;
}

.wp-block-button.has-custom-width.wp-block-button__width-100 .wp-block-button__link {
    width: 100% !important;
}


/* Full Width Support */
.alignfull {
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    width: 100vw;
    max-width: 100vw;
}

/* Global Form Fixes for Dark Mode */
select,
.woocommerce select,
.woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select,
form.woocommerce-ordering select {
    background-color: #0f172a !important;
    /* Force Match Dark BG */
    color: #ffffff !important;
    border: 1px solid #334155 !important;
    padding: 0.5rem 2rem 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

option {
    background-color: #0f172a !important;
    /* Hardcoded dark for browser consistency */
    color: #fff !important;
}

/* Ensure inputs in the theme are also dark */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea {
    background-color: var(--roadhouse-light);
    color: #fff;
    border: 1px solid #334155;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--roadhouse-accent);
    ring: 2px solid var(--roadhouse-accent);
}

.alignwide {
    margin-left: calc(50% - 600px);
    margin-right: calc(50% - 600px);
    width: auto;
    max-width: 1200px;
}

@media (max-width: 1200px) {
    .alignwide {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
}

/* Layout Fixes */
body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Global Menu Styling */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li a {
    text-decoration: none;
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: var(--roadhouse-accent);
}

.site-main {
    width: 100%;
    max-width: 100%;
}

/* WooCommerce Checkout Specifics - Increased Specificity */
html body .woocommerce-checkout input.input-text,
html body.woocommerce-checkout input.input-text,
html body .woocommerce form .form-row input.input-text,
html body .woocommerce-page form .form-row input.input-text {
    background-color: #1e293b !important;
    /* --roadhouse-light hardcoded */
    color: #ffffff !important;
    border: 1px solid #334155 !important;
    padding: 0.75rem !important;
    border-radius: 0.5rem !important;
}

html body .woocommerce-checkout label,
html body.woocommerce-checkout label,
.woocommerce form .form-row label {
    color: #e2e8f0 !important;
}

/* Select2 (Country/State Dropdowns) High Specificity Overrides */
body .select2-container--default .select2-selection--single,
.woocommerce body .select2-container--default .select2-selection--single {
    background-color: var(--roadhouse-light) !important;
    border: 1px solid #334155 !important;
    border-radius: 0.5rem !important;
    height: 48px !important;
    /* Match input height roughly */
    display: flex !important;
    align-items: center !important;
}

body .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
    padding-left: 12px !important;
    line-height: normal !important;
}

body .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    top: 1px !important;
}

/* Dropdown Menu */
body .select2-dropdown {
    background-color: var(--roadhouse-dark) !important;
    border: 1px solid #334155 !important;
    color: #fff !important;
    z-index: 99999 !important;
    /* Increased z-index */
}

body .select2-search__field {
    background-color: var(--roadhouse-light) !important;
    color: #fff !important;
    border: 1px solid #334155 !important;
}

body .select2-results__option {
    color: #cbd5e1 !important;
    background-color: var(--roadhouse-dark) !important;
}

body .select2-results__option--highlighted[aria-selected] {
    background-color: var(--roadhouse-accent) !important;
    color: #fff !important;
}

body .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #334155 !important;
}

/* Hide Add to Cart Button on Shop Loop for Pelican Products */
.post-type-archive-product .pelican-server-product .add_to_cart_button,
.product-category .pelican-server-product .add_to_cart_button,
.related.products .pelican-server-product .add_to_cart_button {
    display: none !important;
}

/* Force "Select options" button appearance if my filter added it */
a.button.product_type_variable.add_to_cart_button {
    background-color: var(--roadhouse-accent) !important;
    color: #ffffff !important;
}