/**
 * Frontend Styles - K-Beauty Wholesale Core
 * Styling for wholesale application forms, price displays, and user interface
 */

/* ===== WHOLESALE REGISTRATION SECTION ===== */
.kbeauty-wholesale-registration-section {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kbeauty-wholesale-registration-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.kbeauty-wholesale-registration-section .description {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.kbeauty-wholesale-registration-section .form-row {
    margin-bottom: 15px;
}

.kbeauty-wholesale-registration-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.kbeauty-wholesale-registration-section input[type="text"],
.kbeauty-wholesale-registration-section input[type="email"],
.kbeauty-wholesale-registration-section input[type="url"],
.kbeauty-wholesale-registration-section input[type="tel"],
.kbeauty-wholesale-registration-section select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.kbeauty-wholesale-registration-section input:focus,
.kbeauty-wholesale-registration-section select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* ===== WHOLESALE SAVINGS DISPLAY ===== */
.wholesale-savings {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white !important;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    animation: savings-pulse 2s infinite;
}

@keyframes savings-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== WHOLESALE-ONLY PRODUCTS ===== */
.wholesale-only-price {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529 !important;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    border: 2px solid #fd7e14;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(253,126,20,0.3);
}

.login-for-price {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
    color: white !important;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(111,66,193,0.3);
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.status-badge.status-pending {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border-color: #ffeaa7;
}

.status-badge.status-approved {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-color: #c3e6cb;
}

.status-badge.status-rejected {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-color: #f5c6cb;
}

/* ===== WHOLESALE APPLICATION FORM ===== */
.wholesale-application-form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.wholesale-application-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.wholesale-application-form .form-row {
    margin-bottom: 20px;
}

.wholesale-application-form .form-row-first {
    width: 48%;
    float: left;
    margin-right: 4%;
}

.wholesale-application-form .form-row-last {
    width: 48%;
    float: right;
}

.wholesale-application-form .form-row-wide {
    width: 100%;
    clear: both;
}

.wholesale-application-form .required {
    color: #dc3545;
    font-weight: bold;
}

/* ===== WHOLESALE STATUS INDICATORS ===== */
.wholesale-status {
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    border-left: 5px solid;
}

.wholesale-status.approved {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-left-color: #28a745;
    color: #155724;
}

.wholesale-status.pending {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left-color: #ffc107;
    color: #856404;
}

.wholesale-status.rejected {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-left-color: #dc3545;
    color: #721c24;
}

.wholesale-status h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}

/* ===== CART & CHECKOUT ENHANCEMENTS ===== */
.wholesale-cart-note {
    color: #28a745;
    font-weight: 600;
    font-style: italic;
}

.wholesale-price-display {
    position: relative;
}

.wholesale-price-display .original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9em;
}

.wholesale-price-display .wholesale-price {
    color: #28a745;
    font-weight: 700;
    font-size: 1.1em;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .kbeauty-wholesale-registration-section {
        margin: 15px 0;
        padding: 15px;
    }
    
    .wholesale-application-form {
        padding: 20px;
    }
    
    .wholesale-application-form .form-row-first,
    .wholesale-application-form .form-row-last {
        width: 100%;
        float: none;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .wholesale-savings {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
    
    .wholesale-only-price,
    .login-for-price {
        font-size: 13px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .kbeauty-wholesale-registration-section {
        margin: 10px 0;
        padding: 12px;
    }
    
    .wholesale-application-form {
        padding: 15px;
    }
    
    .status-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* ===== ANIMATION UTILITIES ===== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-down {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 500px; }
}

/* ===== ACCESSIBILITY ===== */
.wholesale-application-form input:focus,
.wholesale-application-form select:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.wholesale-application-form .error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.wholesale-application-form .success {
    color: #28a745;
    font-size: 12px;
    margin-top: 5px;
}

/* ===== LOADING STATES ===== */
.wholesale-loading {
    position: relative;
    overflow: hidden;
}

.wholesale-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}