/* Profile Page Styles */

.profile-page {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, #debcb0 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e0e0e0;
}

.profile-avatar {
    position: relative;
    display: inline-block;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #797870;
    border: 2px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

[dir="rtl"] .avatar-edit-btn {
    right: auto;
    left: 5px;
}

.avatar-edit-btn:hover {
    background: #5e624e;
    transform: scale(1.1);
}

.profile-name {
    font-family: 'Ferly', var(--heading-font);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

/* Profile Sidebar */
.profile-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.profile-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.profile-nav .nav-link svg {
    margin-left: 0.75rem;
    color: #797870;
    transition: all 0.3s ease;
}

[dir="rtl"] .profile-nav .nav-link svg {
    margin-left: 0;
    margin-right: 0.75rem;
}

.profile-nav .nav-link:hover {
    background: #f8f9fa;
    color: #797870;
    transform: translateX(-5px);
}

[dir="rtl"] .profile-nav .nav-link:hover {
    transform: translateX(5px);
}

.profile-nav .nav-link.active {
    background: linear-gradient(135deg, #8C907E 0%, #797870 100%);
    color: #fff;
    border-color: #797870;
}

.profile-nav .nav-link.active svg {
    color: #fff;
}

/* Profile Card */
.profile-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease-out;
}

.profile-card h3 {
    font-family: 'Ferly', var(--heading-font);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    letter-spacing: 0.05em;
}

/* Stats Cards */
.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #797870;
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #8C907E 0%, #797870 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.stat-number {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 700;
    color: #797870;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Info Items */
.info-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #e9ecef;
}

.info-item label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    color: #333;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.order-item:hover {
    border-color: #797870;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.order-item h5 {
    font-family: var(--heading-font);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.order-item img {
    border-radius: 8px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Wishlist Items */
.wishlist-item {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.wishlist-item:hover {
    border-color: #797870;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.wishlist-item img {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.wishlist-item:hover img {
    transform: scale(1.05);
}

.wishlist-item h5 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.wishlist-item .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #797870;
    margin-bottom: 1rem;
}

.remove-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    color: #dc3545;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir="rtl"] .remove-wishlist {
    right: auto;
    left: 10px;
}

.remove-wishlist:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
    transform: rotate(90deg);
}

/* Form Controls */
.profile-card .form-control,
.profile-card .form-select,
.profile-card textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.profile-card .form-control:focus,
.profile-card .form-select:focus,
.profile-card textarea:focus {
    border-color: #797870;
    box-shadow: 0 0 0 0.2rem rgba(121, 120, 112, 0.15);
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Buttons */
.btn-outline-dark {
    border: 2px solid #333;
    color: #333;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-outline-danger {
    border: 2px solid #dc3545;
    color: #dc3545;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .profile-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .profile-nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
    }

    .profile-nav .nav-link {
        display: inline-flex;
        margin-right: 0.5rem;
        margin-bottom: 0;
    }

    [dir="rtl"] .profile-nav .nav-link {
        margin-right: 0;
        margin-left: 0.5rem;
    }
}

@media (max-width: 767px) {
    .profile-name {
        font-size: 2rem;
    }

    .profile-avatar img {
        width: 80px;
        height: 80px;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .profile-card {
        padding: 1.5rem;
    }

    .order-item {
        padding: 1rem;
    }

    .order-item .row>div {
        margin-bottom: 1rem;
    }

    .order-item .text-end {
        text-align: start !important;
    }
}

/* Tab Animation */
.tab-pane {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}