/* User Profile Page Styles */

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
}

.profile-header {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #e9ecef;
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #e9ecef;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #6c757d;
}

.profile-name {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.profile-username {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
}

.profile-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    border: none;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
}

.btn-edit-profile {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.btn-edit-profile:hover {
    transform: translateY(-2px);
    color: white;
}

/* Unified card style for all sections */
.profile-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 100%; /* Make all section cards same height */
    display: flex;
    flex-direction: column;
}

.profile-section h5 {
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.profile-section h5 i {
    margin-right: 0.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.activity-item {
    padding: 1rem;
    border-left: 3px solid #667eea;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 0 0.5rem 0.5rem 0;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-date {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Review header styles */
.review-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.review-header h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.review-header h6 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.review-header h6 a:hover {
    color: #667eea;
}

.no-data {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
    flex-grow: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.back-button {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.back-button .btn {
    background: white;
    border: 1px solid #e9ecef;
    color: #6c757d;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.back-button .btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
    text-decoration: none;
}

.btn-edit-profile-inline {
    background: white !important;
    border: 1px solid #e9ecef !important;
    color: #6c757d !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.btn-edit-profile-inline:hover {
    background: #f8f9fa !important;
    border-color: #667eea !important;
    color: #667eea !important;
    text-decoration: none !important;
}

/* Profile info styles */
.profile-info {
    flex-grow: 1;
}

.profile-info .mb-3 {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem !important;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-info .mb-3:hover {
    background: #e9ecef;
    border-left-color: #667eea;
    transform: translateX(4px);
}

.profile-info .mb-3:last-child {
    margin-bottom: 0 !important;
}

.profile-info .form-label {
    color: #6c757d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 0;
    flex-shrink: 0;
}

.profile-info p {
    font-weight: 600;
    color: #333;
    margin: 0;
    font-size: 0.95rem;
    text-align: right;
    flex-shrink: 0;
}

.profile-info .badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 1rem;
}

.profile-info .badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.profile-info em {
    font-style: italic;
    color: #6c757d;
    font-weight: normal;
}



/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        padding: 1rem;
    }
    
    .back-button {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .back-button .btn,
    .btn-edit-profile-inline {
        text-align: center;
        width: 100%;
    }
    
    .profile-header {
        padding: 1.5rem;
    }
    
    .profile-header-content {
        text-align: center;
    }
    
    .profile-left {
        margin-bottom: 1rem;
    }
    
    .profile-right {
        text-align: center;
    }
    
    .profile-badges {
        justify-content: center;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-actions {
        justify-content: center;
    }
    
    .btn-edit-profile {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .back-button {
        flex-direction: column;
    }
    
    .back-button .btn,
    .btn-edit-profile-inline {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .back-button {
        flex-direction: row;
    }
    
    .profile-header-content {
        flex-direction: row;
    }
    
    .profile-badges {
        justify-content: flex-start;
    }
    
    .profile-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Equal height rows */
.row-equal-height {
    display: flex;
    flex-wrap: wrap;
}

.row-equal-height > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.row-equal-height .profile-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Wallet specific styles */
.wallet-balance {
    color: #28a745 !important;
    font-size: 2.5rem !important;
}

.wallet-stats {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Reviews list */
.reviews-list {
    flex-grow: 1;
}

.reviews-list .activity-item:last-child {
    margin-bottom: 0;
}
