/*
Theme Name:   RoyalTech Neon
Theme URI:    https://www.royaltechhardware.com
Description:  Premium neon child theme for RoyalTech with Electric Blue and Vibrant Gold design
Author:       RoyalTech Team
Author URI:   https://www.royaltechhardware.com
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-royaltech
*/

/* Import parent theme styles */
@import url('../astra/style.css');

/* Neon Design System - RoyalTech */
:root {
    /* Primary Neon Colors */
    --neon-blue: #1e38ef;
    --neon-blue-dark: #0d2db5;
    --neon-blue-light: #4361ee;
    --neon-gold: #f8bb2f;
    --neon-gold-light: #ffd60a;

    /* Dark Backgrounds */
    --bg-dark: #0f172a;
    --bg-dark-alt: #1e293b;
    --bg-dark-card: #1e293b;

    /* Text Colors */
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;
    --text-white: #ffffff;

    /* Gradients */
    --gradient-neon: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-gold) 100%);
    --gradient-blue: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-blue-light) 100%);
    --gradient-gold: linear-gradient(135deg, var(--neon-gold) 0%, var(--neon-gold-light) 100%);

    /* Shadows & Glows */
    --glow-blue: 0 0 20px rgba(30, 56, 239, 0.5);
    --glow-gold: 0 0 20px rgba(248, 187, 47, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Global Neon Styles */
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
}

/* Global Paragraph Typography */
p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5em;
    max-width: 75ch;
}

/* Strong Text Emphasis */
strong,
b {
    color: var(--text-white);
    font-weight: 700;
}

/* Neon Text Effect */
.neon-text {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--glow-blue);
}

/* Neon Glow Effect */
.neon-glow {
    box-shadow: var(--glow-blue);
    transition: box-shadow 0.3s ease;
}

.neon-glow:hover {
    box-shadow: var(--glow-gold);
}

/* ----------------------------------------------------
   SliceWP Affiliate Page Styling (Dark Neon)
   ---------------------------------------------------- */
/* Force Card Layout for Forms */
.slicewp-wrapper,
#slicewp-login-form,
#slicewp-registration-form,
#slicewp-lost-password-form,
.slicewp-form {
    max-width: 500px !important;
    /* Force constraint */
    width: 90% !important;
    margin: 60px auto !important;
    padding: 40px !important;
    background: #1e293b;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    color: #cbd5e1;
}

.slicewp-wrapper h2,
.slicewp-wrapper h3 {
    color: #fff;
    margin-bottom: 20px;
}

/* Forms (Login/Register) - ULTRA FORCE VISIBILITY */
form .slicewp-field-wrapper label,
.slicewp-form .slicewp-field-label,
label.slicewp-field-label {
    color: #f8bb2f !important;
    /* Gold */
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    font-size: 1rem !important;
    margin-bottom: 5px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Add Registration Prompt Styling */
.rtc-register-prompt {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rtc-register-prompt a {
    color: #4361ee;
    font-weight: 700;
    text-decoration: none;
}

.rtc-register-prompt a:hover {
    text-decoration: underline;
    color: #f8bb2f;
}

.slicewp-field-wrapper input[type="text"],
.slicewp-field-wrapper input[type="email"],
.slicewp-field-wrapper input[type="password"],
.slicewp-field-wrapper input[type="url"] {
    width: 100%;
    padding: 12px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.slicewp-field-wrapper input:focus {
    border-color: #1e38ef;
    box-shadow: 0 0 10px rgba(30, 56, 239, 0.3);
}

/* Submit Button */
.slicewp-form-submit button,
.slicewp-btn {
    background: linear-gradient(135deg, #1e38ef, #4361ee);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: inline-block;
}

.slicewp-form-submit button:hover,
.slicewp-btn:hover {
    box-shadow: 0 0 20px rgba(30, 56, 239, 0.6);
    transform: translateY(-2px);
}

/* Dashboard Cards */
.slicewp-card {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
}

.slicewp-card-title {
    color: #f8bb2f !important;
}

.slicewp-card-value {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Affiliate Links */
.slicewp-nav-tab-wrapper a {
    color: #cbd5e1 !important;
    background: transparent !important;
    border-bottom: 2px solid transparent !important;
}

.slicewp-nav-tab-wrapper a.slicewp-active {
    color: #f8bb2f !important;
    border-bottom-color: #f8bb2f !important;
}

/* --- FORCE MOBILE GRID (User Requested Update) --- */
@media (max-width: 768px) {

    /* Force 1-Column Grid on Mobile for ALL Products */
    body .ast-woocommerce-container ul.products,
    body .woocommerce ul.products,
    body ul.products {
        display: grid !important;
        grid-template-columns: 1fr !important;
        /* Single Card on Mobile */
        gap: 20px !important;
    }

    /* Force products to fit in 2 columns */
    body ul.products li.product,
    body .ast-woocommerce-container ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
        min-height: auto !important;
    }

    /* Resize Images for Mobile to save space */
    body ul.products li.product.product-category a img,
    body ul.products li.product a.woocommerce-loop-product__link img {
        height: 140px !important;
        /* Smaller mobile image */
    }

    /* Resize Titles */
    body .woocommerce-loop-product__title,
    body .woocommerce-loop-category__title {
        font-size: 0.9rem !important;
    }

    /* Adjust Button/Action size */
    body .button.add_to_cart_button,
    body .rtc-btn,
    body ul.products li.product.product-category a::after {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
        margin: 10px auto !important;
    }
}

/* =========================================
   GLOBAL FORM INPUT FIX (HIGH PRIORITY)
   Force visibility on all Forms
   ========================================= */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
textarea,
select,
.woocommerce input.input-text,
.affwp-form input,
#loginform input {
    background-color: #0f172a !important;
    /* Dark Navy */
    color: #ffffff !important;
    /* White Text */
    border: 1px solid #334155 !important;
    /* Blue-Grey Border */
    border-radius: 6px !important;
    padding: 12px !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    font-family: inherit !important;
}

/* Focus State */
input:focus,
textarea:focus,
select:focus {
    border-color: #f8bb2f !important;
    /* Gold */
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(248, 187, 47, 0.2) !important;
}

/* Placeholder */
::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* Fix Labels */
label {
    color: #cbd5e1 !important;
    font-weight: 600 !important;
}

/* 
=====================================================
   NUCLEAR FIX: FORCE RECTANGULAR CATEGORY IMAGES
   Overrides ALL Theme/Elementor "Arch" or "Circle" Styles
===================================================== 
*/

/* Target 1: Standard WooCommerce Category Images */
body .woocommerce ul.products li.product.product-category img,
body ul.products li.product.product-category img,
.woocommerce-loop-category__title+img,
.card-image img,
.category-card img,
.rtc-dynamic-cats-slider img,
.elementor-widget-wc-categories img,
.wc-block-product-categories-list-item__image {
    border-radius: 12px !important;
    /* Force Round Rectangle */
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;

    /* Reset any clip-paths or masks */
    clip-path: none !important;
    -webkit-clip-path: none !important;
    mask: none !important;
    -webkit-mask: none !important;

    /* Ensure sizing */
    width: 100% !important;
    object-fit: cover !important;
    aspect-ratio: auto !important;
    /* Reset if forced specific ratio */
}

/* Target 2: Specific Elements that might be causing Arch */
.elementor-element .woocommerce ul.products li.product a img {
    border-radius: 12px !important;
}

/* Hard Reset for any "Round" containers */
.round-shape,
.circle-shape,
.arch-shape {
    border-radius: 12px !important;
}

/* 
   NUCLEAR FIX V2: TARGET CONTAINERS 
   The Arch shape is likely on the BACKGROUND card, not just the image.
*/
body .woocommerce ul.products li.product.product-category,
body ul.products li.product.product-category,
.category-card,
.product-category,
li.product.product-category a {
    border-radius: 12px !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;

    /* Reset clip-paths on containers */
    clip-path: none !important;
    -webkit-clip-path: none !important;
    mask: none !important;
    overflow: hidden !important;
    /* Ensure children don't overflow */
}