/* Profile page styles */
/* Common styles (.title-bar.relative, .hidden, .user-menu, etc.) moved to mousescoring.css */

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}

.profile-card h2 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    color: #111;
    border-bottom: 2px solid #eee;
    padding-bottom: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #333;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #111;
}

.form-group input:disabled,
.form-group select:disabled {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.readonly-badge {
    display: inline-block;
    background: #e0e0e0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 8px;
    color: #666;
}

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

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: #111;
    color: #fff;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: #fff;
    color: #111;
    border: 2px solid #111;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}
/* Link from the read-only membership fields to My Membership. */
.membership-link {
    font-weight: 600;
    color: var(--trim-color, #2563eb);
    text-decoration: none;
}

.membership-link:hover {
    text-decoration: underline;
}
