/*
Theme Name: BeliTicket 2.0
Description: High-conversion, ultra-light ticketing theme (GeneratePress Child)
Author: Antigravity
Template: generatepress
Version: 1.1.0
*/

/* --- CORE UI ARCHITECTURE --- */
:root {
    --primary-brand: #FF5500; /* Exact match to BeliTicket Logo Orange */
    --primary-brand-glow: rgba(255, 85, 0, 0.4);
    --dark-bg: #0D0D0D;
    --surface: #1A1A1A;
    --text-light: #F5F5F5;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Inter', -apple-system, sans-serif;
}

/* --- GENERATEPRESS DARK MODE FORCING --- */
.site, .site-content, .inside-article, .sidebar .widget, .site-info, .site-footer, .comments-area {
    background-color: var(--dark-bg) !important;
    color: var(--text-light) !important;
}

.inside-article, .sidebar .widget {
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

h1, h2, h3, h4, h5, h6, .widget-title, .entry-title a {
    color: var(--text-light) !important;
}

.entry-meta, .entry-meta a {
    color: var(--primary-brand) !important;
}

/* --- GLOBAL LAYOUT & HEADER (GeneratePress Overrides) --- */
.site-header {
    background-color: var(--surface);
    border-bottom: 3px solid var(--primary-brand);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.main-navigation {
    background-color: var(--surface);
}

/* Link Resets */
a {
    color: var(--primary-brand);
}

a:hover {
    color: #FF7733;
}

/* Site Title styling as fallback before logo upload */
.main-title a, .main-navigation .main-nav ul li a {
    color: var(--text-light);
    font-weight: 700;
}
.main-title a { color: var(--primary-brand) !important; font-size: 2.2rem; letter-spacing: -1px; }
.main-navigation .main-nav ul li a:hover { color: var(--primary-brand); }

/* --- HOMEPAGE SPECIFICS --- */
h1.wp-block-heading {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--primary-brand);
    text-shadow: 0 2px 10px var(--primary-brand-glow);
    margin-bottom: 10px;
    margin-top: 40px;
}

.products ul, ul.products {
    margin-top: 40px !important;
}

ul.products li.product {
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid #333;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

ul.products li.product:hover {
    transform: translateY(-5px);
    border-color: var(--primary-brand);
}

ul.products li.product .woocommerce-loop-product__title {
    color: var(--text-light) !important;
    font-weight: 800;
}

ul.products li.product .price {
    color: var(--primary-brand) !important;
    font-weight: bold;
}

/* --- WOOCOMMERCE TICKET PRODUCT PAGE --- */
.single-product .product {
    background: var(--surface) !important;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    margin-top: 40px;
    border: 1px solid var(--primary-brand);
    color: var(--text-light) !important; /* Fix unreadable dark text */
}

/* Force all text elements inside WooCommerce product to be light and readable */
.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product .woocommerce-product-details__short-description p,
.woocommerce div.product .product_meta,
.woocommerce div.product .woocommerce-Tabs-panel,
.woocommerce div.product .woocommerce-Tabs-panel h2,
.woocommerce div.product form.cart {
    color: var(--text-light) !important;
    font-size: 1.1rem;
    line-height: 1.6;
}

.single-product .product_title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-light) !important;
    margin-bottom: 15px;
}

.single-product .price {
    font-size: 2.2rem !important;
    font-weight: bold;
    color: var(--primary-brand) !important;
    margin-bottom: 25px;
}

button.single_add_to_cart_button {
    background-color: var(--primary-brand) !important;
    color: white !important;
    padding: 15px 30px !important;
    font-size: 1.2rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    border-radius: 8px !important;
    width: 100%;
    border: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.single_add_to_cart_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--primary-brand-glow) !important;
}

@media (max-width: 768px) {
    .single-product .product { grid-template-columns: 1fr; }
    h1.wp-block-heading { font-size: 2.5rem; }
}

/* --- WOOCOMMERCE FORM INPUT FIXES (CHECKOUT/DARK MODE) --- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce div.product form.cart .variations select,
.woocommerce select,
.select2-container .select2-selection--single {
    background-color: #1A1A1A !important;
    color: #FFFFFF !important;
    border: 1px solid #444 !important;
    padding: 10px 15px !important;
    border-radius: 6px !important;
}

/* Fix invisible placeholder text */
.woocommerce form .form-row input.input-text::placeholder,
.woocommerce form .form-row textarea::placeholder,
::-webkit-input-placeholder {
    color: #999999 !important;
    opacity: 1 !important;
}

/* Fix Google Chrome Autofill turning inputs white */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1A1A1A inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}
