/* =======================================
   FITNESS CLUB WOOCOMMERCE ACCOUNT PAGE
   ======================================= */

/* ===== MAIN CONTENT AREA STYLING ===== */
.site-main.content-area.space {
    background: linear-gradient(180deg, #0f0f0f 0%, #202020 50%, #0f0f0f 100%) !important;
    min-height: 100vh;
    padding: 0 !important;
    position: relative;
}

/* خلفية بسيطة */
.site-main.content-area.space::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(93, 214, 44, 0.02) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* ===== CONTAINER ENHANCEMENTS ===== */
.container.full-width {
    max-width: 100% !important;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

/* ===== PAGE LAYOUT ===== */
.page-layout {
    background: #202020;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(93, 214, 44, 0.3);
    max-width: 1400px;
    margin: 0 auto;
}

/* إضافة عنوان للصفحة */
.woocommerce::before {
    content: 'My Account';
    display: block;
    text-align: center;
    color: #5DD62C;
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

/* ===== WOOCOMMERCE CONTAINER ===== */
.woocommerce {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* ===== ACCOUNT NAVIGATION ===== */
.woocommerce-MyAccount-navigation {
    background: #0f0f0f;
    border-radius: 12px;
    padding: 0;
    border: 1px solid rgba(93, 214, 44, 0.4);
    flex: 0 0 300px;
    min-height: 400px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-MyAccount-navigation-link {
    border-bottom: 1px solid rgba(93, 214, 44, 0.2);
}

.woocommerce-MyAccount-navigation-link:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation-link a {
    display: block !important;
    padding: 15px 20px !important;
    color: #f8f8f8 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
    position: relative;
}

.woocommerce-MyAccount-navigation-link a:hover {
    background: rgba(93, 214, 44, 0.1) !important;
    color: #5DD62C !important;
    padding-left: 25px !important;
}

.woocommerce-MyAccount-navigation-link.is-active a {
    background: #5DD62C !important;
    color: #0f0f0f !important;
    font-weight: 600 !important;
}

/* إضافة أيقونات للقائمة */
.woocommerce-MyAccount-navigation-link--dashboard a::before { content: '🏠 '; }
.woocommerce-MyAccount-navigation-link--orders a::before { content: '📦 '; }
.woocommerce-MyAccount-navigation-link--downloads a::before { content: '📥 '; }
.woocommerce-MyAccount-navigation-link--edit-address a::before { content: '🏠 '; }
.woocommerce-MyAccount-navigation-link--edit-account a::before { content: '👤 '; }
.woocommerce-MyAccount-navigation-link--subscriptions a::before { content: '📋 '; }
.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: '🚪 '; }

/* ===== ACCOUNT CONTENT ===== */
.woocommerce-MyAccount-content {
    background: #0f0f0f;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(93, 214, 44, 0.4);
    flex: 1;
    min-height: 400px;
}

/* ===== FORM STYLING ===== */
.woocommerce-EditAccountForm {
    background: transparent;
}

/* حقول النموذج */
.woocommerce-form-row {
    margin-bottom: 25px !important;
    position: relative;
}

.woocommerce-form-row label {
    display: block !important;
    color: #f8f8f8 !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
}

.woocommerce-form-row .required {
    color: #5DD62C !important;
    font-size: 16px;
}

/* حقول الإدخال */
.woocommerce-Input {
    width: 100% !important;
    padding: 12px 16px !important;
    background: #202020 !important;
    border: 1px solid rgba(93, 214, 44, 0.4) !important;
    border-radius: 8px !important;
    color: #f8f8f8 !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease;
}

.woocommerce-Input:focus {
    outline: none !important;
    border-color: #5DD62C !important;
}

.woocommerce-Input:hover {
    border-color: #5DD62C !important;
}

/* ===== PASSWORD SECTION ===== */
fieldset {
    background: rgba(93, 214, 44, 0.05);
    border: 1px solid rgba(93, 214, 44, 0.3) !important;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

fieldset legend {
    color: #5DD62C !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    padding: 0 15px;
    background: #0f0f0f;
    border-radius: 20px;
}

/* Password input container */
.password-input {
    position: relative;
    display: block;
}

.show-password-input {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    color: #5DD62C !important;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

.show-password-input:hover {
    color: #337418 !important;
}

.show-password-input::before {
    content: '👁️';
}

/* ===== FORM LAYOUT ===== */
.form-row-first {
    width: 48% !important;
    float: left !important;
}

.form-row-last {
    width: 48% !important;
    float: right !important;
}

.form-row-wide {
    width: 100% !important;
    clear: both !important;
}

.clear {
    clear: both !important;
    height: 20px;
}

/* ===== DESCRIPTION TEXT ===== */
#account_display_name_description {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(248, 248, 248, 0.7) !important;
    font-style: italic;
}

/* ===== SAVE BUTTON ===== */
.woocommerce-Button.button {
    background: #5DD62C !important;
    color: #0f0f0f !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 20px;
}

.woocommerce-Button.button:hover {
    background: #337418 !important;
    color: #f8f8f8 !important;
}

/* ===== NOTICES ===== */
.woocommerce-notices-wrapper {
    margin-bottom: 20px;
}

.woocommerce-message,
.woocommerce-error {
    background: rgba(93, 214, 44, 0.1);
    border: 1px solid #5DD62C;
    color: #f8f8f8;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.woocommerce-error {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
}

/* ===== LOADING ANIMATIONS ===== */
.woocommerce-form-row {
    opacity: 0;
    transform: translateY(20px);
    animation: field-slide-in 0.6s ease-out forwards;
}

.woocommerce-form-row:nth-child(1) { animation-delay: 0.1s; }
.woocommerce-form-row:nth-child(2) { animation-delay: 0.15s; }
.woocommerce-form-row:nth-child(3) { animation-delay: 0.2s; }
.woocommerce-form-row:nth-child(4) { animation-delay: 0.25s; }
.woocommerce-form-row:nth-child(5) { animation-delay: 0.3s; }

fieldset {
    opacity: 0;
    transform: translateY(30px);
    animation: fieldset-slide-in 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

/* ===== ANIMATIONS ===== */
@keyframes field-slide-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fieldset-slide-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container.full-width {
        padding: 30px 15px;
    }
    
    .page-layout {
        padding: 25px;
    }
    
    .woocommerce {
        gap: 20px;
    }
    
    .woocommerce-MyAccount-navigation {
        flex: 0 0 250px;
    }
}

@media (max-width: 768px) {
    .container.full-width {
        padding: 20px 10px;
    }
    
    .page-layout {
        padding: 20px;
        border-radius: 8px;
    }
    
    .woocommerce::before {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .woocommerce {
        flex-direction: column;
        gap: 20px;
    }
    
    .woocommerce-MyAccount-navigation {
        flex: none;
        width: 100%;
        min-height: auto;
    }
    
    .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }
    
    .woocommerce-MyAccount-navigation-link {
        flex: 1;
        min-width: 120px;
        border-bottom: none;
        border-right: 1px solid rgba(93, 214, 44, 0.2);
    }
    
    .woocommerce-MyAccount-navigation-link:last-child {
        border-right: none;
    }
    
    .woocommerce-MyAccount-navigation-link a {
        padding: 12px 10px !important;
        text-align: center;
        font-size: 12px;
    }
    
    .form-row-first,
    .form-row-last {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px !important;
    }
    
    fieldset {
        padding: 20px;
        margin: 25px 0;
    }
}

@media (max-width: 480px) {
    .woocommerce::before {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .woocommerce-MyAccount-content {
        padding: 20px;
    }
    
    .woocommerce-MyAccount-navigation-link a {
        padding: 10px 8px !important;
        font-size: 11px;
    }
    
    .woocommerce-Input {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    
    .woocommerce-Button.button {
        width: 100%;
        padding: 12px !important;
    }
    
    fieldset {
        padding: 15px;
    }
}

/* ===== ACCESSIBILITY & PERFORMANCE ===== */
.woocommerce-form-row,
.woocommerce-Button.button,
.woocommerce-MyAccount-navigation-link a {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .woocommerce-form-row,
    fieldset,
    .woocommerce-MyAccount-navigation-link a,
    .site-main.content-area.space::before {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== FOCUS INDICATORS ===== */
.woocommerce-Input:focus,
.woocommerce-Button.button:focus,
.show-password-input:focus {
    outline: 2px solid rgba(93, 214, 44, 0.5) !important;
    outline-offset: 2px;
}

/* ===== FORM VALIDATION ===== */
.woocommerce-Input:valid {
    border-color: #5DD62C !important;
}

.woocommerce-Input:invalid:not(:placeholder-shown) {
    border-color: rgba(220, 53, 69, 0.6) !important;
}

/* ===== ADDITIONAL ENHANCEMENTS ===== */

/* إضافة تأثير للحقول النشطة */
.woocommerce-form-row:focus-within {
    transform: translateX(5px);
}

/* تحسين عرض النص الوصفي */
.woocommerce-form-row em {
    background: rgba(93, 214, 44, 0.1);
    padding: 5px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
}

/* تمييز الحقول المطلوبة بصرياً */
.woocommerce-form-row:has(.required) {
    border-left: 3px solid rgba(93, 214, 44, 0.3);
    padding-left: 15px;
}