/* Profile Page Styles - Persian Design with Radzen Components */

.profile-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    direction: rtl;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}

/* Profile Header */
.profile-header {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.profile-info h1 {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-email {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Profile Content */
.profile-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.profile-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.section-header h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Profile Sections */
.profile-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out;
}

.profile-section:last-child {
    margin-bottom: 0;
}

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

/* Info Grid (Read-only mode) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
}

.info-value {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Form Grid (Edit mode) */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.form-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
    display: block;
}

/* Radzen Component Customization */
.rz-textbox,
.rz-textarea {
    border-radius: 8px !important;
    border: 2px solid #e9ecef !important;
    transition: all 0.3s ease !important;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif !important;
}

.rz-textbox:focus,
.rz-textarea:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.rz-textbox[disabled],
.rz-textarea[disabled] {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
}

.rz-button {
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}

.rz-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.rz-button-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
}

.rz-button-light {
    background: #f8f9fa !important;
    border: 2px solid #e9ecef !important;
    color: #6c757d !important;
}

.rz-button-light:hover {
    background: #e9ecef !important;
    border-color: #6c757d !important;
}

.rz-badge {
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif !important;
    padding: 6px 15px !important;
}

.rz-badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.rz-badge-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%) !important;
}

.rz-badge-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
}

.rz-icon {
    color: #667eea !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        padding: 15px;
    }
    
    .profile-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .profile-info h1 {
        font-size: 1.6rem;
    }
    
    .profile-actions {
        justify-content: center;
        width: 100%;
    }
    
    .profile-content {
        padding: 20px;
    }
    
    .info-grid,
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .section-header h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 15px;
    }
    
    .profile-content {
        padding: 15px;
    }
    
    .info-item,
    .form-group {
        padding: 15px;
    }
    
    .profile-info h1 {
        font-size: 1.4rem;
    }
    
    .user-email {
        font-size: 1rem;
    }
}

/* Dark Theme Support */
[data-theme="dark"] .profile-container {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

[data-theme="dark"] .profile-header,
[data-theme="dark"] .profile-content {
    background: #34495e;
    color: #ecf0f1;
}

[data-theme="dark"] .profile-info h1 {
    color: #ecf0f1;
}

[data-theme="dark"] .user-email {
    color: #bdc3c7;
}

[data-theme="dark"] .section-header h3 {
    color: #ecf0f1;
}

[data-theme="dark"] .info-item {
    background: #2c3e50;
    border-color: #34495e;
    color: #ecf0f1;
}

[data-theme="dark"] .info-label {
    color: #bdc3c7;
}

[data-theme="dark"] .info-value {
    color: #ecf0f1;
}

[data-theme="dark"] .form-label {
    color: #ecf0f1;
}

[data-theme="dark"] .rz-textbox,
[data-theme="dark"] .rz-textarea {
    background: #2c3e50 !important;
    border-color: #34495e !important;
    color: #ecf0f1 !important;
}

[data-theme="dark"] .rz-textbox:focus,
[data-theme="dark"] .rz-textarea:focus {
    border-color: #667eea !important;
}

[data-theme="dark"] .rz-textbox[disabled],
[data-theme="dark"] .rz-textarea[disabled] {
    background-color: #34495e !important;
    color: #7f8c8d !important;
}

/* Loading States */
.profile-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.profile-loading .rz-spinner {
    color: #667eea;
}

/* Success/Error Messages */
.profile-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.profile-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.profile-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Animation for form transitions */
.profile-content {
    transition: all 0.3s ease;
}

.profile-content.editing {
    transform: scale(1.02);
}

/* Hover effects for interactive elements */
.info-item:hover .info-label {
    color: #667eea;
}

.info-item:hover .rz-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Custom scrollbar for textarea */
.rz-textarea textarea::-webkit-scrollbar {
    width: 8px;
}

.rz-textarea textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.rz-textarea textarea::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.rz-textarea textarea::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}
