/* Profile Shortcode Styles */
/* Styles for user profile page ([vrc_profile] shortcode) */

.vrc-profile {
    max-width: 1000px;
    margin: 0 auto;
    min-height: 50vw;
    padding: 32px;
}

.vrc-connected-app {
}

.vrc-connected-app-header {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--color-border-light);
}

.vrc-connected-app-logo > img {
    width: 30px;
}

.vrc-connected-app-details {
    width: 100%;
    padding: 0px 10px;
}

/* User Profile Form */
.vrc-user-profile-form,
.vrc-password-change-form,
.vrc-avatar-form {
}

/* Avatar Preview */
.vrc-avatar-preview {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.vrc-avatar-preview img.avatar {
    border-radius: 50%;
    border: 3px solid #ddd;
    display: block;
}

/* Avatar form specific styles */
.vrc-avatar-form .avatar {
    margin-bottom: 15px;
}

/* Avatar message styling (matching profile/password message patterns) */
.vrc-avatar-message .vrc-success,
.vrc-avatar-message .vrc-error {
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    animation: vrc-fade-in 0.3s ease;
}

.vrc-avatar-message .vrc-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.vrc-avatar-message .vrc-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Field Notes / Helper Text - Enhanced styling */
.vrc-field-note {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.vrc-field-note.vrc-warning {
    color: #856404;
    font-weight: 500;
}

/* Form Actions - Better spacing and visual separation */
.vrc-form-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e3eded;
}

/* Override button width for profile forms */
.vrc-user-profile-form .vrc-btn-primary,
.vrc-password-change-form .vrc-btn-primary {
    width: auto;
    min-width: 180px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    min-height: 48px;
}

/* Profile Messages - Enhanced UX feedback */
.vrc-profile-message .vrc-message,
.vrc-password-message .vrc-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    animation: vrc-fade-in 0.3s ease;
}

@keyframes vrc-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vrc-profile-message .vrc-message .dashicons,
.vrc-password-message .vrc-message .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.vrc-profile-message .vrc-message-success,
.vrc-password-message .vrc-message-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.vrc-profile-message .vrc-message-error,
.vrc-password-message .vrc-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Disabled Input Styling - More prominent */
.vrc-input-disabled {
    background-color: var(--color-cell-disabled) !important;
    border-color: var(--color-border-light) !important;
    color: var(--color-vrc-text-medium) !important;
    cursor: not-allowed !important;
}

/* Accessibility - Keyboard focus indicator */
.vrc-form-group input:focus-visible,
.vrc-form-group select:focus-visible,
.vrc-form-group textarea:focus-visible {
    outline: 3px solid var(--color-orange-600);
    outline-offset: 2px;
}

/* Collapsible Sections */
.vrc-collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin: 0;
    padding: 0;
    transition: opacity 0.2s ease;
}

.vrc-collapsible-header:hover {
    opacity: 0.8;
}

.vrc-collapsible-header h4 {
    margin: 0;
    flex: 1;
}

.vrc-collapsible-header .vrc-chevron {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--color-text-light, #6c757d);
    transition: transform 0.3s ease;
    transform: rotate(0deg);
    flex-shrink: 0;
}

/* When section is collapsed, rotate chevron */
.vrc-profile-container.vrc-collapsed .vrc-chevron {
    transform: rotate(-90deg);
}

.vrc-collapsible-content {
    padding-top: 20px;
}

@media (max-width: 768px) {
    .vrc-profile {
        padding: 12px;
    }
}
