/*
Theme Name: ShastaRobux Theme
Theme URI: https://shastarobux.com
Author: QuantumByte Technologies
Author URI: https://quantumbytetech.com
Description: A custom WooCommerce theme for ShastaRobux developed by QuantumByte Technologies.
Version: 6.0.0
Text Domain: shastarobux
*/

/* 
 * This theme uses Tailwind CSS via CDN for demonstration purposes. 
 * For production, you should set up a build process.
 */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #111827;
    color: #ffffff;
}

/* =========================================
   WooCommerce My Account Styling
   ========================================= */

/* General Layout - Enhanced Layout Spacing */
.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0; /* Added top margin for separation from header */
    padding-top: 2rem;
}

/* Sidebar Navigation */
.woocommerce-MyAccount-navigation {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .woocommerce-MyAccount-navigation {
        flex: 0 0 250px;
        max-width: 250px;
    }
    .woocommerce-MyAccount-content {
        flex: 1;
        min-width: 0; /* Fix flex overflow */
    }
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #1f2937; /* Gray 800 */
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: #9ca3af; /* Gray 400 */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 1.75rem; /* Slight slide effect */
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: linear-gradient(to right, rgba(168, 85, 247, 0.1), transparent); /* Purple tint */
    color: #d8b4fe; /* Purple 300 */
    border-left: 3px solid #a855f7; /* Purple 500 */
    padding-left: 1.3rem; /* Adjust for border */
}

/* Main Content Area */
.woocommerce-MyAccount-content {
    background: #1f2937;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #d1d5db; /* Gray 300 */
}

/* Typography */
.woocommerce-MyAccount-content h2, 
.woocommerce-MyAccount-content h3 {
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
}

.woocommerce-MyAccount-content a {
    color: #a855f7; /* Purple 500 */
    text-decoration: none;
}

.woocommerce-MyAccount-content a:hover {
    text-decoration: underline;
}

/* Forms & Inputs */
.woocommerce form .form-row {
    margin-bottom: 1.5rem;
}

.woocommerce form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 600;
}

.woocommerce form input.input-text,
.woocommerce form select,
.woocommerce form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #111827; /* Darker bg */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.woocommerce form input.input-text:focus,
.woocommerce form select:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2); /* Mimic Tailwind ring-4 */
    outline: none;
}

/* Buttons */
.woocommerce button.button {
    background-color: #242a35;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.woocommerce button.button:hover {
    background-color: #2c3340;
    transform: translateY(-1px);
}

.woocommerce button.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Orders Table - Enhanced */
table.woocommerce-orders-table,
table.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(255, 255, 255, 0.05); /* Softer border */
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
    background: #1f2937; /* Card background */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

table.woocommerce-orders-table th,
table.shop_table th {
    background: #111827; /* Darker header */
    padding: 1.25rem 1.5rem; /* More padding */
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    color: #9ca3af;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

table.woocommerce-orders-table td,
table.shop_table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #1f2937;
    color: #fff;
    vertical-align: middle;
}

table.woocommerce-orders-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02); /* Slight hover effect */
}

table.woocommerce-orders-table tr:last-child td {
    border-bottom: none;
}

/* Order Link */
.woocommerce-orders-table__cell-order-number a {
    color: #c084fc; /* Purple 400 */
    font-weight: 700;
    text-decoration: none;
}
.woocommerce-orders-table__cell-order-number a:hover {
    text-decoration: underline;
}

/* Order Status */
.woocommerce-orders-table__cell-order-status {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Order Totals */
.woocommerce-orders-table__cell-order-total .amount {
    font-weight: 700;
    color: #fff;
}

/* Action Buttons */
.woocommerce-orders-table__cell-order-actions {
    white-space: nowrap;
    text-align: right;
}

.woocommerce-orders-table__cell-order-actions a {
    display: inline-block !important; /* Force block behavior */
    padding: 0.5rem 1rem !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    border-radius: 0.5rem;
    margin: 0 0.25rem !important; /* Force margin on both sides */
    text-decoration: none !important;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #d1d5db !important;
}

.woocommerce-orders-table__cell-order-actions a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-1px);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Pay Button */
.woocommerce-orders-table__cell-order-actions a.pay {
    background: rgba(168, 85, 247, 0.1) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
    color: #d8b4fe !important;
}
.woocommerce-orders-table__cell-order-actions a.pay:hover {
    background: rgba(168, 85, 247, 0.2) !important;
    border-color: #a855f7 !important;
}

/* View Button */
.woocommerce-orders-table__cell-order-actions a.view {
    /* Default style */
}

/* Cancel Button */
.woocommerce-orders-table__cell-order-actions a.cancel {
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
}
.woocommerce-orders-table__cell-order-actions a.cancel:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
    color: #f87171 !important;
}

/* Messages / Alerts */
.woocommerce-message, 
.woocommerce-info, 
.woocommerce-error {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    background: rgba(168, 85, 247, 0.1); /* Purple tint */
    border-left: 4px solid #a855f7;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.woocommerce-error {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
}

.woocommerce-info {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
}

.woocommerce-message::before,
.woocommerce-info::before {
    display: none; /* Hide default icons if any */
}

/* Account specific addresses */
.woocommerce-Address-title h3 {
    font-size: 1.25rem;
    margin-top: 0;
}

.woocommerce-Address {
    background: #111827;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-style: normal;
}

