/*
Theme Name: SAS Remote App
Description: Custom theme for SAS Remote App with glassmorphism design
Version: 4.0
*/

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #00d4ff;
}

/* Main Content */
.site-main {
    margin-top: 80px;
    padding: 20px;
    min-height: calc(100vh - 160px);
}

/* Desktop Horizontal Checkout Layout */
.woocommerce-checkout {
    max-width: 1200px;
    margin: 0 auto;
}

.woocommerce-checkout .col2-set {
    display: grid !important;
    grid-template-columns: 1fr 400px !important;
    gap: 30px !important;
    width: 100% !important;
}

.woocommerce-checkout .col-1 {
    width: 100% !important;
    float: none !important;
}

.woocommerce-checkout .col-2 {
    width: 100% !important;
    float: none !important;
}

/* SaaS Signup Container (Left Column) */
.sas-signup-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideInUp 0.8s ease;
    height: fit-content;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Signup Header */
.sas-signup-header {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(118, 75, 162, 0.2));
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sas-signup-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.sas-signup-header h2 i {
    color: #00d4ff;
    font-size: 24px;
}

.sas-signup-header p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Security Badges */
.sas-security-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0 0 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sas-security-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
}

.sas-security-badge i {
    color: #4ecdc4;
    font-size: 14px;
}

.sas-security-badge.ssl i {
    color: #00d4ff;
}

.sas-security-badge.encryption i {
    color: #ffd700;
}

/* Billing Fields */
.woocommerce-billing-fields {
    padding: 30px;
}

.woocommerce-billing-fields .form-row {
    margin-bottom: 20px;
    position: relative;
}

.woocommerce-billing-fields .form-row-first,
.woocommerce-billing-fields .form-row-last {
    width: 48%;
    float: left;
}

.woocommerce-billing-fields .form-row-last {
    float: right;
}

.woocommerce-billing-fields .form-row-wide {
    width: 100%;
    clear: both;
}

.woocommerce-billing-fields label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.woocommerce-billing-fields input[type="text"],
.woocommerce-billing-fields input[type="email"],
.woocommerce-billing-fields input[type="tel"] {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.woocommerce-billing-fields input:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: translateY(-1px);
}

.woocommerce-billing-fields input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Validation States */
.woocommerce-billing-fields input.sas-error {
    border-color: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
    background: rgba(255, 107, 107, 0.1);
}

.woocommerce-billing-fields input.sas-success {
    border-color: #4ecdc4;
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.4);
    background: rgba(78, 205, 196, 0.1);
}

/* Clear floats */
.woocommerce-billing-fields::after,
.form-row::after {
    content: "";
    display: table;
    clear: both;
}

/* Right Column - Order Summary, Coupon, Payment */
.checkout-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

/* Order Review (Right Column) */
.woocommerce-checkout-review-order {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px;
}

.woocommerce-checkout-review-order h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.woocommerce-checkout-review-order h3::before {
    content: "\f07a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #00d4ff;
}

.woocommerce-checkout-review-order-table {
    background: transparent;
    border: none;
    width: 100%;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woocommerce-checkout-review-order-table .order-total {
    font-weight: 700;
    font-size: 18px;
    color: #00d4ff;
}

/* Compact Coupon Section */
.sas-coupon-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px;
}

.sas-coupon-section h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sas-coupon-section h4::before {
    content: "\f3ff";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #4ecdc4;
    font-size: 14px;
}

.sas-coupon-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.sas-coupon-form input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sas-coupon-form input[type="text"]:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
}

.sas-coupon-form button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Payment Section */
#payment {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

#payment::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00d4ff, #4ecdc4, #00d4ff);
    border-radius: 18px;
    z-index: -1;
    opacity: 0.2;
}

#payment h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#payment h3::before {
    content: "\f09d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #00d4ff;
}

#payment h3::after {
    content: " - Secure Payment";
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Payment method security info */
.sas-payment-security {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    margin: 15px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sas-payment-security i {
    color: #00d4ff;
    font-size: 16px;
}

/* Trust indicators */
.sas-trust-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.sas-trust-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sas-trust-indicator i {
    color: #4ecdc4;
}

/* Place Order Button */
#place_order {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

#place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.4);
    background: linear-gradient(135deg, #00b8e6, #0077aa);
}

/* Mobile Responsive - Vertical Layout */
@media (max-width: 768px) {
    .site-main {
        padding: 15px;
    }
    
    .woocommerce-checkout {
        max-width: 100%;
    }
    
    .woocommerce-checkout .col2-set {
        display: block !important;
        grid-template-columns: none !important;
        gap: 15px !important;
    }
    
    .checkout-right-column {
        position: static;
        top: auto;
    }
    
    .sas-signup-container {
        margin: 0 0 15px 0;
        border-radius: 16px;
    }
    
    .sas-signup-header {
        padding: 25px 20px;
    }
    
    .sas-signup-header h2 {
        font-size: 22px;
        flex-direction: column;
        gap: 8px;
    }
    
    .woocommerce-billing-fields {
        padding: 25px 20px;
    }
    
    .woocommerce-billing-fields .form-row-first,
    .woocommerce-billing-fields .form-row-last {
        width: 100%;
        float: none;
        margin-bottom: 15px;
    }
    
    .sas-security-badges {
        flex-direction: column;
        gap: 10px;
    }
    
    .sas-trust-indicators {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .sas-coupon-form {
        flex-direction: column;
        gap: 8px;
    }
    
    .woocommerce-checkout-review-order,
    .sas-coupon-section,
    #payment {
        padding: 20px;
        margin: 15px 0;
    }
}

/* Shop Page Styling */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 30px 0 !important;
}

.woocommerce ul.products li.product {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 30px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    animation: slideInUp 0.6s ease !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(0, 212, 255, 0.5) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 20px 0 15px 0 !important;
}

.woocommerce ul.products li.product .price {
    color: #00d4ff !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 15px 0 !important;
}

.woocommerce ul.products li.product .add_to_cart_button {
    background: linear-gradient(135deg, #00d4ff, #0099cc) !important;
    color: #ffffff !important;
    padding: 15px 30px !important;
    border-radius: 12px !important;
    border: none !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin-top: 20px !important;
    display: inline-block !important;
}

.woocommerce ul.products li.product .add_to_cart_button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4) !important;
}

/* Hide unnecessary elements */
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
.woocommerce-account-fields {
    display: none !important;
}

/* Success Messages */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    padding: 15px 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.woocommerce-error {
    border-color: rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.1);
}

/* Footer */
.site-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
