/**
 * User Profiles Module Styles
 * 
 * @package DCM_Profile_Membership_Pro
 * @since 1.0.0
 */

/* User Profile Container */
.dcm-user-profile {
    margin: 2rem 0;
}

/* Profile Forms */
.dcm-profile-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.dcm-profile-form .dcm-form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.dcm-profile-form .dcm-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.dcm-profile-form .dcm-form-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.dcm-profile-form .dcm-form-group {
    margin-bottom: 1.5rem;
}

.dcm-profile-form .dcm-form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    color: #333;
}

.dcm-profile-form .dcm-form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.dcm-profile-form .dcm-form-control:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.dcm-profile-form .dcm-form-control.dcm-error {
    border-color: #dc3545;
}

.dcm-profile-form .dcm-form-help {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.dcm-profile-form .dcm-form-error {
    font-size: 0.85rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

/* Registration Form */
.dcm-registration-form {
    max-width: 600px;
    margin: 0 auto;
}

.dcm-registration-form .dcm-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.dcm-registration-form .dcm-form-group {
    margin-bottom: 1rem;
}

/* Login Form */
.dcm-login-form {
    margin: 0 auto;
}

.dcm-login-form .dcm-form-group {
    margin-bottom: 1.5rem;
}

.dcm-login-form .dcm-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.dcm-login-form .dcm-forgot-password {
    font-size: 0.9rem;
    color: #007cba;
    text-decoration: none;
}

.dcm-login-form .dcm-forgot-password:hover {
    text-decoration: underline;
}

/* Profile Display */
.dcm-profile-display {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dcm-profile-header {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.dcm-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 600;
    margin: 0 auto 1rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.dcm-profile-name {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dcm-profile-title {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.dcm-profile-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.dcm-profile-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.dcm-profile-content {
    padding: 2rem;
}

.dcm-profile-section {
    margin-bottom: 2rem;
}

.dcm-profile-section:last-child {
    margin-bottom: 0;
}

.dcm-profile-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.dcm-profile-field {
    display: flex;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.dcm-profile-field-label {
    font-weight: 500;
    color: #333;
    min-width: 150px;
    margin-right: 1rem;
}

.dcm-profile-field-value {
    color: #555;
    flex: 1;
}

.dcm-profile-field-value a {
    color: #007cba;
    text-decoration: none;
}

.dcm-profile-field-value a:hover {
    text-decoration: underline;
}

/* Profile Actions */
.dcm-profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.dcm-profile-actions .dcm-btn {
    flex: 1;
}

/* Field Manager */
.dcm-field-manager {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem 0;
}

.dcm-field-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.dcm-field-manager-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.dcm-field-list {
    margin-bottom: 2rem;
}

.dcm-field-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
}

.dcm-field-item:hover {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dcm-field-item.dcm-field-item-required {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.dcm-field-item.dcm-field-item-custom {
    background: #d1ecf1;
    border-color: #bee5eb;
}

.dcm-field-info {
    flex: 1;
    margin-right: 1rem;
}

.dcm-field-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.dcm-field-type {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
}

.dcm-field-actions {
    display: flex;
    gap: 0.5rem;
}

.dcm-field-actions .dcm-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Field Editor */
.dcm-field-editor {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem 0;
}

.dcm-field-editor-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.dcm-field-editor-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.dcm-field-editor-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dcm-field-editor-form .dcm-form-group {
    margin-bottom: 1rem;
}

.dcm-field-editor-form .dcm-form-group.full-width {
    grid-column: 1 / -1;
}

/* Form Validation */
.dcm-form-validation {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.dcm-form-validation.dcm-validation-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dcm-form-validation.dcm-validation-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.dcm-form-validation.dcm-validation-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Password Strength Indicator */
.dcm-password-strength {
    margin-top: 0.5rem;
}

.dcm-password-strength-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.dcm-password-strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.dcm-password-strength-fill.weak {
    background: #dc3545;
    width: 25%;
}

.dcm-password-strength-fill.fair {
    background: #ffc107;
    width: 50%;
}

.dcm-password-strength-fill.good {
    background: #28a745;
    width: 75%;
}

.dcm-password-strength-fill.strong {
    background: #20c997;
    width: 100%;
}

.dcm-password-strength-text {
    font-size: 0.8rem;
    color: #666;
}

/* Profile Completion */
.dcm-profile-completion {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.dcm-profile-completion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.dcm-profile-completion-title {
    font-weight: 600;
    color: #333;
}

.dcm-profile-completion-percentage {
    font-size: 1.2rem;
    font-weight: 700;
    color: #007cba;
}

.dcm-profile-completion-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.dcm-profile-completion-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba 0%, #005a87 100%);
    transition: width 0.3s ease;
}

.dcm-profile-completion-missing {
    font-size: 0.9rem;
    color: #666;
}

.dcm-profile-completion-missing ul {
    margin: 0.5rem 0 0 1rem;
    padding: 0;
}

.dcm-profile-completion-missing li {
    margin-bottom: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dcm-profile-form .dcm-form-row {
        grid-template-columns: 1fr;
    }
    
    .dcm-profile-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dcm-profile-field {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dcm-profile-field-label {
        min-width: auto;
        margin-right: 0;
    }
    
    .dcm-profile-actions {
        flex-direction: column;
    }
    
    .dcm-field-manager-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .dcm-field-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .dcm-field-info {
        margin-right: 0;
    }
    
    .dcm-field-editor-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dcm-profile-header {
        padding: 1.5rem;
    }
    
    .dcm-profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .dcm-profile-name {
        font-size: 1.5rem;
    }
    
    .dcm-profile-content {
        padding: 1.5rem;
    }
} 